While installing a 3rd party application on one my client's sites today, I needed to change the PHP config settings.
No problem, I'll just upload a .htaccess file, right? Wrong, when I did that, I ended up with a 500 Error - the reason why is described here.
I noticed there was a ini.php in the top level directory of the user account. However, when I made changes to it, nothing happened.
Turns out - php.ini is for configuring PHP 4. To configure PHP 5, you need to upload php5.ini. This is described here.
D'oh - I was so close, yet so far away.
Thank you for posting this. I've been fighting with them for about 8 hours over 2 weeks. "php.ini is for adjusting your settings. If it's not working, it's something in your .ini and we can't see that."
ReplyDelete"By default, only php.ini is automatically created during new account setup." But php5.ini is required on php 5 servers!
Lance -
ReplyDeleteI'm so glad you found this advice helpful. Why godaddy doesn't make their servers run php5 by default boggles my mind.
-Ben
Thank You! I was struggling with ini.php setting.
ReplyDeleteThis information have been of great help.
This saved me so much time. I was trying to figure out why my changes to the php.ini file did nothing.
ReplyDeleteThe most simple problems cause the biggest headaches!!
Glad this was such a big help!
ReplyDelete-Ben
Thanku Very much...it really very much helpfull for me...
ReplyDeleteThank for sharing this with us!
ReplyDeletehi,
ReplyDeleteHow can i change the php.ini file contents in godaddy? and where is the php.ini file?
I have been trying and trying to add php.ini or php5.ini to GoDaddy and just cannot get it to work. I have a file that consists entirely of the following lines:
ReplyDelete[PHP]
upload_max_filesize = 64M
===
And that's it. I've named it both php.ini and php5.ini and uploaded it both ways and nothing happens. I still can't upload anything bigger than 8megs with Wordpress. Anyone have any idea what to do? Godaddy has been absolutely USELESS in helping. They just email me the same blah blah that's on their website.
Have you tried uploading a page with phpinfo() on it? That might show you that upload_max_filesize is being set, and perhaps you're running into another limit (there's also a max post size, I think too).
ReplyDeleteAlso, you may be able to see which .ini file is in use.
You could also try setting php variables in the .htaccess file.
This post just saved me hours of headaches.
ReplyDeleteSo glad to help!
ReplyDeleteahh - thank you for the post! GoDaddy really should consider actually 'training' their support staff before putting them in the call center.
ReplyDelete