PDA

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



mdueri
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:

ini_set("upload_max_filesize","7M");
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?

wildjokerdesign
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

mdueri
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

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

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

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

firebirdfan
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 ?

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.

8))

firebirdfan
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)

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

Man UTD's official website is below.

http://www.manutd.com/home/default.sps

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

http://www.realmadrid.com/

and last, here are some Beckham websites.

http://directory.google.com/Top/Sports/Soccer/Players/England/Beckham,_David/?tc=1p

firebirdfan
12-22-2003, 05:44 PM
But Torrin - Real Madrid has an English interface - it's right at the top,
http://www.realmadrid.com/web_realmadrid/templates/home/home.jsp?&id_idiomacambio=2

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