Support

Admin Tools

#9778 500 error after changing php.ini -

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Monday, 14 March 2011 13:18 CDT

slashsplat
This is not an ATPro issue, but, Nicholas may know this right off. I run several J! sites and edited php.ini in cPanel to set the upload_tmp_dir which was blank. I was unable to upload in another component.

I tried several values, and do NOT think I touched anything else in the "Advanced Mode" editor in cPanel. At some point, SOMETHING changed and MOST of the J! sites and also some other PHP scripted apps get 500 errors. The php.ini value is now blank for that, but I screwed up something else. Attached is php.ini...

I am certain that was what busted everything, as they all worked before. Strange that ALL of the /administrator pages are dead, but one or two base Joomla! sites still work. And other PHP apps (mantisbt.org and sugarcrm) are down.

Boy did I SCREW UP.
Any thoughts on a deadly setting in php.ini would be appreciated. A solution will generate a 50E contribution to the Akeeba cause!!! (Especially since this is not caused by Akeeba code, but by a loose nut on the keyboard.)

nicholas
Akeeba Staff
Manager
I tried to clean your php.ini file a bit. There are some sections I am not sure about, because I don't know the specifics of your particular server:
- If you don't have / don't need Zend Optimizer (used to run encrypted Joomla! extensions) you can comment out everything in the Zend section on the bottom of the file by placing a semicolon in front of the lines
- I have no idea if /tmp, your session save path, is writable.
- Likewise, the upload path... I don't know. /usr/tmp doesn't sound like a valid path - but cPanel servers have a lot of non-standard path. Make sure it's writable or use another globally writable directory like /tmp
- I have turned off errors display and set the error reporting to E_ERROR. If you do get 500 Internal Server Error check the error_log file for the exact error message. Pasting it here will allow us to figure out what went awry.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

slashsplat
I updated all the settings to no avail.

The session path /tmp is writable and working fine for sessions, though the upload issue may be something else yet...

Your quick response and willingness to assist is yet another sign of the high level of professionalism that you offer in your software and services.


I made another contribution to Akeeba (paypal) in honor of your great support. I will post when the resolution is complete. The hosting provider is now involved, as it does not seem to be an individual setting in the php.ini file...

nicholas
Akeeba Staff
Manager
Thank you for your donation!

Regarding your issue, I'd also take a look at the error_log of an effected site, just right after receiving a 500 error, to see what's going on. Most of the times the error message from the log will tell you what is disabled/not working and allow you to pinpoint the issue.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

slashsplat
The PHP.INI editor in cPanel bit me in the butt. I didn't want to bother finding the master php.ini so I just used the menu option editor that cPanel has. It shows each parm with description and a field to key values. I wanted to study the values anyway...

The last parm is the Zend setting for loading Zend Guard and it can only exist once. The editor ADDED to the correct location with a comma, EACH TIME I edited the file, though I never touched that parm.

To add insult to injury, once I figured that out and blanked the field, so it added it ONCE, it wrote the file with the name"php.ini,p". Once I saw that, and renamed it without the ,p, the darn thing worked perfectly immediately.

This is absolutely a problem in the latest version of cPanel, as we keep the server updated daily.

nicholas
Akeeba Staff
Manager
That certainly earns a place in my "Impossible Things That Can Go Wrong" hall of fame, along with hosts where gethostbyname() returns an IP, but cURL can't resolve the address :) I am glad you got it fixed now!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!