View Full Version : PHP.INI File - Changes dont take effect

12-19-2003, 05:20 PM
I could not upload files over 2M so I found my php.ini file in the ftp\usr\lib directory and modified it. (incidently phpinfo() showed me the location of the php.ini file) My modifications were as follows:

; Maximum allowed size for uploaded files.
upload_max_filesize = 7M

I then did a phpInfo() and it still showed 2M

I tried modifying it from my script using the following code:

echo ini_get("upload_max_filesize");

It still showed 2M!!!

Documentation out on the web says you have to reboot apache for ini changes to take effect. Since we are hosted, how does this work. What am I missing?

12-19-2003, 06:21 PM
You can restart you VPS which should do the same thing through your Site Mangager. I think it is under Site Management if I remember correctly.

There is also mention of changeing the php.ini in this thread on the second page http://forums.westhost.com/phpBB2/viewtopic.php?t=1484

12-19-2003, 06:46 PM
Support told me how to restart the server (I must say I was impressed with how quickly Chris got back to me)

Everything is working great now, programming is fun again!

Mark Dueri

12-20-2003, 08:01 AM
You can also restart Apache thru SSH.

$ /etc/rc.d/rc stop
$ /etc/rc.d/rc start

$ /etc/rc.d/init.d/httpd restart

12-22-2003, 01:36 AM
But I thought you could just type the word restart & it did the same thing. Do we did to type out those long path names too Jalal ?

12-22-2003, 01:58 AM
'restart' is an alias in the .bashrc file, which expands to the two commands above.
Recent sites seem to have that alias, older sites don't have it..
There seems to be some variation in how the sites are setup depending on what month they were created, the phase of the moon and whether Man Utd are playing at home.


12-22-2003, 02:14 AM
No Man Utd pls, :wink: - I think for my case since Real Madrid bought Beckham , restart will do 8)

12-22-2003, 12:41 PM
For those people (like me) that are like, huh?

Man UTD's official website is below.


For those that can read Spanish (I can't, so I have no idea if this is what you're refering to).


and last, here are some Beckham websites.


12-22-2003, 05:44 PM
But Torrin - Real Madrid has an English interface - it's right at the top,

I also got the impression that they only do Spanish but when I look closer - english was there, they also have japanese :)