简体   繁体   中英

All php files showing as 500 Internal Server Error

Problem: Any php file we attempt to access on our website shows up as a 500 internal server error. I'm not sure if this is related but I have had a look in the error logs and the below error appears:

    [08-Nov-2013 12:41:51 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so: 
cannot open shared object file: No such file or directory in Unknown on line 0

Attempt: Some of the things I have tried to do is delete the over size error log and renamed the htaccess file to see if that was causing the problem.

Page: You can see the problem at this page: http://science.org.au/support-us/donate-now.html (Half way down in the iframe)

Question: Does anyone have any ideas on how to fix this? Things to try?

Did you try this ?

edit the file /etc/php5/cli/php.ini:

and remove the lines:

[htscanner] Extension = “htscanner.so” 
config_file = “.htaccess”
default_docroot = “/var/www”

You should pay more attention to what your error log says. According to it, you should either install htscanner.so PHP extension, or remove reference to it from your php.ini .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM