All php files showing as 500 Internal Server Error - php

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.

Related

Joomla giving blank screen after http error 500

I had Joomla site giving an HTTP error 500 on both the frontend and backend.
I changed the permissions on index.php to 755 but no luck.
I noticed it was running PHP 5.6 so I upgraded to PHP 7 and now it's just giving me a blank screen. I checked the error log and I'm receiving the following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/php/54/usr/lib64/php/modules/uploadprogress.so' -
/usr/php/54/usr/lib64/php/modules/uploadprogress.so: undefined symbol:
zend_ini_string_ex in Unknown on line 0
I was also getting this error beforehand. Any ideas on what module I can / should disable to fix this?
The warning that you're seeing has likely nothing to do with the blank page. Assuming you already set the $error_reporting to maximum in your configuration.php file and you didn't see the error, then try disabling system plugins one by one (disable the last ones installed first) until the problem is fixed.
Now, if you still see the error, then it is possible that you didn't install the PHP MySQL module when you updated to PHP 7. This issue is common when you have WHM, essentially, you will need to install the module through EasyApache. See this post about this.

Configure error logging - path broken

Configure error logging.
I'm working with PHP, and I'm on the support side, but I do not know the error system. Is there any material I can read to help me?
My biggest problem is this, many errors are written to the log this way:
PHP Fatal error: require_once(): Failed opening required 'vc-icon-element.php' (include_path='.;C:\php\pear') in D:\home\site\wwwroot\wp-content\plugins\js_composer\config\conte on line 6
But it seems the path is not complete and I do not know which file made the request for vc-icon-element.php. How would I do to find out which file or page that generated this log? Is it normal that the path does not reach a .php file?

MediaWiki 1.27 warning requiring SpecialUserLogin.php

I've updated my mediawiki from 1.26.2 to 1.27, the installation process finished ok, but when I try to access I received this error:
Warning:
require(/var/app/current/includes/specials/SpecialUserLogin.php):
failed to open stream: No such file or directory in
/var/app/current/includes/AutoLoader.php on line 81 Fatal error:
require(): Failed opening required
'/var/app/current/includes/specials/SpecialUserLogin.php'
(include_path='/var/app/current/vendor/pear/pear_exception:/var/app/current/vendor/pear/console_getopt:/var/app/current/vendor/pear/pear-core-minimal/src:/var/app/current/vendor/pear/mail_mime:/var/app/current/vendor/pear/mail_mime-decode:/var/app/current/vendor/pear/net_socket:/var/app/current/vendor/pear/net_smtp:/var/app/current/vendor/pear/mail:.:/usr/share/pear:/usr/share/php')
in /var/app/current/includes/AutoLoader.php on line 81
I have no idea why is this happening. If I check the files in my server they're there. I'm also having template issues if I choose vector I only get a messed up template, without styling.
I'm using PHP 5.6.
I hope someone can help me.
I just stumbled across this same exact error after upgrading to MW 1.27.
In my case, the SpecialUserlogin.php existed and all of the permissions were right BUT the word login was written in lowercase so the system thought this file didn't exist. So I just renamed the SpecialUserlogin.php to SpecialUserLogin.php and b00m, it worked!
As for your templating issues, check the common.css file. Copy paste everything out of there, so it's empty, if you don't use it. And check that you're calling your style files correctly in your template.

PHP Startup: Unable to load dynamic library

I have notice I started getting this error message in my error log:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php
/extensions/no-debug-non-zts-20060613/pdf.so' - /usr/local/lib/php/extensions
/no-debug-non-zts-20060613/pdf.so: cannot open shared object file: No such file
or directory in Unknown on line 0
The error goes into the log every time you open the main page but everything seems to be working. Does anyone have any ideas what might cause this error to occur, I have been change the code in the past few days but when read back though I can't find anything that could be the cause.
there's nothing on the page that I have changed for when it initially loads but i have changed things in areas where I have if (isset...etc.
Any possible suggestions are appreciated. what type of command might this error message be caused by?
It appears your PHP installation is configured to load http://www.php.net/manual/en/intro.pdf.php and cannot find it.
Remove its respective extension entry in php.ini or fix the path or ensure the file exists if you require it.

PHP error log problem 'Unable to load dynamic library'

My PHP error logs are filling up extremely rapidly with the following line:
[28-Apr-2011 13:03:00] PHP Warning:
PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/'
- /usr/local/lib/php/extensions/no-debug-non-zts-20060613/:
cannot read file data: Is a directory
in Unknown on line 0
I've googled the issue and found several results, but all involving something after the last / where this error appears to be something to do with the path itself.
The site(s) are running on cPanel/WHM on CentOS.
You will need to check your php.ini. One of the entries there does not specify a correct filename, but probably something like this:
extension = .
; or the raw pathname as shown in your error.log
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
That's why the error says Is a directory.
The in Unknown on line 0 refers to your php.ini (it does not have a __FILE__ or __LINE__ number, so leads to that mysterious location hint.)

Categories