All Products 
Username / Customer#
Password
Log In
 Hi,  |  Log Out
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

PHP5.ini

Viewing post 1 to 15 (24 total posts)
1 2
Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

I have pretty much basic knowledge of the php5.ini such as the things that are put into it such as the memory_limit =, i only wish to change 3 things within my php5.ini but when i enter those into a php5.ini i create in my main directory, the settings i wrote do change, but it overwrites all the other settings that are within the default php5.ini that i dont have access to.

so i pretty much just want to know, if i want to change those 3 settings, would i have to write out my own php5.ini from scratch, since when i tried it didnt have the mysql and many other things installed on it like the default, and htaccess doesnt work.

or is there any other way to change them? this has been irritating me alot the last few days.

all i want to change is:
memory_limit 32M
post_max_size = 8M
upload_max_filesize = 8M
to different values.

after that my site will be fully functional and will only need the basic things doing to it… any help would be great thank you.

(and i tried asking from the godaddy support but they just seem to be sending me the same basic answers over and over, XD now i know theyre only here for support for my hosting account and not my code)

Profile picture of yrh

yrh said 2 years, 11 months ago:

find your php.ini file in your web server, it is usually located in the root folder.

Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

there isnt one there, i think theyre only there if you have a linux server, which im wanting to switch to but i have an mssql i need to remove, and i dont know what im using it for

Profile picture of JoeM

GoDaddy Contributor joem said 2 years, 11 months ago:

On Linux shared hosting accounts you can find the default system php.ini and php5.ini files here:
/web/conf/php.ini
/web/conf/php5.ini

php.ini applies when running php4, and php5.ini applies when running php5.

You will not be able to get to these files via FTP, but you can via SSH.

If your account does not have the ability to use SSH, you could write a simple php script to print out the contents of the files to a web browser, for example:

upload a file called ‘showme.php’ to your account with the contents:

Then hit this page with a browser, eg: http://yoursite.com/showme.php

Now you can cut’n'paste the output to your custom php5.ini file with your own changes appended.

Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

it didnt show anything, does this take a while to display?

Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

im on windows hosting not linux by the way, i said i was trying to switch to linux but i need to remove the mssql database and im not even sure how to uninstall that to switch… isnt it a value in the php5.ini? something i cant even access XD windows server is so tiring…. can somebody please give me a solution @_@ i only want to change my memory_limit, i cant use htaccess and i cant make my own php5.ini because of the overwriting it does… what am i supposed to do? and why cant i have access to the default php5?…

Profile picture of JoeM

GoDaddy Contributor joem said 2 years, 11 months ago:

My suggestion was specific to Linux. I will need to check and see how to do this on Windows.

Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

thanks you very much, youve been alot of help, even though they were for linux XD it still was helpful if i was on linux.

Profile picture of Gronon

gronon said 2 years, 11 months ago:

I need help with this too please. Anytime I create a php5.ini file with the same settings as the original poster it breaks my php applications because all the other settings go to their defaults rather than keeping the settings in goDaddy’s php5.ini which we do not have access to. I think it would really help me out if I could get a copy of goDaddy’s php5.ini file to copy to my web site and then modify as needed but when I called support to ask for this they told me they would not give me the file because it’s secret or something like that. Please help! I need more than the default 8 meg for video uploads in gallery 2! :(

p.s. I also contacted goDaddy email support and got nothing but disinformation and canned responses that do not work.
Why can’t goDaddy give us the php.ini located at C:php5php.ini on my shared server??? i know it’s there because php tells me so.

Profile picture of burnedscott

burnedscott said 2 years, 11 months ago:

want my advice? switch to linux, it should be better in the long run.

upload a file called ‘showme.php’ to your account with the contents:

put it in main directory then go to yoursite.com/showme.php

copy and paste it all then change what you need to change.

but remember linux is case sensitive, so make sure all the code is the same as the links and such, and you have to remove any microsoft databases if you want to transfer your site to linux.

oh and i switched to linux too and only needed to change 1 thing which was my directory named Forum, to forum instead. now everything is even better than before except the bugs yet they were on it before switchover

my sites http://www.freaksofanime.com if you wanna take a look

Profile picture of ldekay

ldekay said 2 years, 11 months ago:

I have Linux shared hosting and added a php5.ini file to root that includes:
upload_max_filesize = 100M
post_max_size = 50M
but it has not increased the 8Mb file upload limit on the Drupal site. Another Drupal site on a separate Linux hosted account with the exact same php5.ini file does have the 100Mb upload capability. Any idea why it works on one and not on the other?

Profile picture of ldekay

ldekay said 2 years, 11 months ago:

I just found a post directing to a solution for the custom php5.ini not working. It said to add:
memory_limit = 50M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M
I already had the 2nd and 4th lines but not the 1st and 3rd. Now it works, maybe it’ll work for you too.

Profile picture of Gronon

gronon said 2 years, 10 months ago:

I unfortunately do not have a choice to switch to Linux so that doesn’t help me. PHP works fine on a windows shared host it is just that I need goDaddy to give me the php.ini file they are using so I can modify it and apply it to my site.

Profile picture of burnedscott

burnedscott said 2 years, 10 months ago:

trust me they arent going to provide you with that, no matter what, im not sure why, and why dont you have a choice? maybe becuase you have a microsoft database, i had one i wasnt even using, went to the hosting control center, uninstalled the database in the database settings, then switched to linux, took about… im not sure, say about 2-4hours

Profile picture of CupOfJoe

CupOfJoe said 2 years, 2 months ago:

I ran into this too. I haven’t tried editing it yet, but it is working. Install PHP on your local machine and grab the php.ini file. Copy it into your root directory and test it using a phpinfo script.

Note: If you mess up the ini file the server will return a 500 error. I’ve noticed it can take a few minutes for this to change so don’t freak out if refreshing the page doesn’t work right away.

Deleting the ini file will cause the server to revert back to the one installed at GoDaddy. This can take several minutes too.

1 2

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.