I've been stuck with setting wordpress multisite for hours and found out I had probably issues with .htaccess configuration... though I followed the instructions from a manual , I kept getting 500 error when accessing the sites administration...
I googled for hours how to modify the wp-config and .htaccess, nothing worked... so I tried to find out if the mod_rewrite is even active...
<?php print_r(apache_get_modules()); ?>
But this gives me HTTP 500 error... what could be the problem? There is possibly something wrong with the server settings, but what should I look for?
(I deleted the .htaccess and everything from a root directory except the php file with this line, so wrong .htaccess configuration is surely not causing this issue...)
Thanks for a help! :)
apache_get_modules() will only work if php is installed under apache. If you want to list the extensions you can use:
print_r(get_loaded_extensions());
This will work under CLI too, it will print something like:
Array
(
[0] => Core
[1] => date
[2] => libxml
[3] => openssl
[4] => pcre
[5] => zlib
[6] => filter
[7] => hash
[8] => pcntl
....
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.