Solved

Getting error 500 after php update

Posted on 2014-11-26
7
95 Views
Last Modified: 2014-12-11
Hello,

So i updated PHP from 5.4.20 to 5.4.35, this is on a windows box so i basically replaced all the old php files with the new ones as advised. I ensured the ini file remained untouched. The location hasn't changed either.

The webpage no longer loads, just a blank page. Looking in the error log for apache it states error 500.

Not really sure were else to look for trouble shooting so any help would be great. It's only on a test env so no big rush,
 

Thanks.
0
Comment
Question by:gman
  • 3
  • 3
7 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40467551
Add error reporting to the top of your php pages, you can't debug a 500 error - it just means something went wrong somewhere but we're not telling you.

<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);

Open in new window

0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 40467598
A missing extension can cause that.  Check your 'php.ini' against the extensions in your 'ext' directory and make sure that they are all there.  Things like this is why I save the old PHP directory when I 'upgrade' my PHP on Windows.
0
 

Author Comment

by:gman
ID: 40473721
I'm getting this in the error log.

PHP Fatal error:  Call to undefined function mysql_connect() in D:apache2\\htdocs\\core\\adodb\\drivers\\adodb-mysql.inc.php on line 364

Any idea's on how to fix this? Seems to be related to the php_mysql extension

thanks,
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 58

Expert Comment

by:Gary
ID: 40474077
Could be a number of things, use phpinfo() to verify MySQL is installed
Chances are the paths to MySQL in the .ini file are not correct.

p.s.
You shouldn't be using the old mysql library anymore, it is deprecated
0
 

Author Comment

by:gman
ID: 40474767
Thanks Gary but thats not the issue, php.ini file wasn't wasn't replaced. I tried replacing the mysql ext dll file with the old one (one from the version i upgraded with) The system now seems functional however when I run php -v I get a compatibility warning.  Any suggestions?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40474927
Maybe the dll was corrupt.
The error means it couldn't find the function ergo wasn't loaded
0
 

Author Closing Comment

by:gman
ID: 40493924
Spot on, re-downloaded it. All working!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now