Webmaster Forum  

Go Back   Webmaster Forum > Web Hosting Forum - Web Hosting - Web Host - Hosting - Managed Hosting - Shared Hosting > Site & Server Administration
User Name
Password
Register FAQ Members List Calendar Transactions Store Search Today's Posts Mark Forums Read


how come changing php.ini has no effect?

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2007, 15:22
artcoder
Member


Join Date: Feb 2006
Posts: 53
Trader Rating: (0)
Points: 18 (Donate)
5 F$/Referral Refer Friends
artcoder is on a distinguished road
Default how come changing php.ini has no effect?

I changed php.ini to turn register globals off. Uploaded it to /public_html/

But my phpinfo() still show register globals on. It is as if server is not reading my php.ini.

What's wrong? Thanks in advanced.
__________________
AnotherPhotoGallery.com
LearnWebDesignOnline.com
GupDesigns.com -- professional web templates and customization services
artcoder is offline
Reply With Quote
  #2  
Old 07-19-2007, 19:38
karthikeyan
Senior Member


Join Date: Jun 2007
Posts: 260
Trader Rating: (0)
Points: 14 (Donate)
5 F$/Referral Refer Friends
karthikeyan is on a distinguished road
Default Re: how come changing php.ini has no effect?

Quote:
Originally Posted by artcoder
I changed php.ini to turn register globals off. Uploaded it to /public_html/

But my phpinfo() still show register globals on. It is as if server is not reading my php.ini.

What's wrong? Thanks in advanced.

I suggest ask your hosting team for your supports !
karthikeyan is offline
Reply With Quote
  #3  
Old 07-20-2007, 22:48
Vinicius
Member


Join Date: Jul 2007
Posts: 35
Trader Rating: (0)
Points: 1 (Donate)
5 F$/Referral Refer Friends
Vinicius is on a distinguished road
Default Re: how come changing php.ini has no effect?

What i know the php.ini never stay in public_html directory, this file only the admin fo your host can access and edit for you.

I dont remeber how, but is possible turn off the register globals editing the .htaccess file, try find in google.
Vinicius is offline
Reply With Quote
  #4  
Old 01-10-2008, 05:58
anantshri
Senior Member


Join Date: Dec 2007
Location: INDIA
Posts: 195
Trader Rating: (0)
Points: 0 (Donate)
5 F$/Referral Refer Friends
anantshri is on a distinguished road
Send a message via Yahoo to anantshri
Default

hey fist think php.ini is a system file, but yes some host's does keep a local copy for each user, but this does not seems to be the case with you so better ask your host.

also php.ini if i am correct will only be activated once server is restarted, i am not sure about it but that' how i activate php.ini on my system.
__________________
DON'T LEARN TO HACK,HACK TO LEARN

My Personal Site
My BLOG
anantshri is offline
Reply With Quote
  #5  
Old 01-11-2008, 17:10
sunken
Senior Member

sunken's Avatar

Join Date: Dec 2004
Posts: 242
Trader Rating: (0)
Points: 0 (Donate)
5 F$/Referral Refer Friends
sunken is on a distinguished road
Default

You have to restart the apache server, which should force the PHP system to reread the php.ini file. If that doesn't work, rebooting the entire server should force the read. If you are on shared hosting, you will probably have to ask your host about it. If it's a dedicated server, also look to make sure that the php.ini file that you are changing is the one actually being read by php.
sunken is offline
Reply With Quote
  #6  
Old 01-11-2008, 17:20
ScriptMan
Member


Join Date: Feb 2007
Posts: 76
Trader Rating: (0)
Points: 45 (Donate)
5 F$/Referral Refer Friends
ScriptMan is on a distinguished road
Default

Did you have a php.ini file on your server before you started? Did you put the replacement in the exact same place?

On a cPanel server that is not running suexec you set your flags in the .htaccess file and can do so within each directory.

I have also noticed that the syntax must be folloed much more strickly when the flags are in an ini file than when in the .htaccess. Correct syntax is:
Quote:
php_flag register_globals off
__________________
ScriptMan
ScriptMan is offline
Reply With Quote
  #7  
Old 05-24-2008, 13:48
GeekZ
Junior Member


Join Date: May 2008
Posts: 21
Trader Rating: (0)
Points: 5 (Donate)
5 F$/Referral Refer Friends
GeekZ is on a distinguished road
Default

You have to restart or reload the Apache server, doing do is simple and just takes a moment to do so

/etc/init.d/apache2 restart|reload

I would really recoemdn consulting google on such things too, google will teach you a lot.
GeekZ is offline
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking About Changing to a New Web Hosting Company - 5 Steps to Plan Ahead for the Tom_Sean Web Hosting Forum 0 07-19-2007 11:01
Host Changing Issue: Please Help pj_rajesh Web Hosting Forum 8 05-11-2007 08:27
changing multiple dns khuldun Domain Name Forum 3 10-25-2006 12:42
Changing Web Hosts? Step-By-Step Guide admans Web Hosting Forum 1 08-19-2005 18:37
Changing hosts with Almost NO Downtime Tip admans Web Hosting Forum 0 08-09-2005 13:52

Resources : | Advertise at FHF | itextLink.com| Reseller Hosting| TextDot| iNamePros| Any Webmaster| Web Host| Dep3| cheap low cost web hosting reviews|


All times are GMT -4. The time now is 12:27.


Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.