Re: [PHP] /etc/php.init changes not honored

2008-01-14 Thread Richard Lynch
In phpinfo() output, PHP tells you where it is looking for its php.ini
file.

If you aren't changing a php.ini file in that location, then PHP isn't
going to see it...

On Thu, January 10, 2008 4:59 pm, Ryan H. Madison wrote:
> Hello,
>
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't
> seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the
> /etc/php.ini
> file which doesn't seem to make a difference.
>
> What am I missing?
>
> -Thanks, RYAN
>
>
>
> I'm running a default installation of CentOS 5.
>
>
>
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
>
> CentOS release 5 (Final)
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
>
> php-5.1.6-5.el5
>
> php-pdo-5.1.6-5.el5
>
> php-pear-1.4.9-4
>
> php-common-5.1.6-5.el5
>
> php-cli-5.1.6-5.el5
>
> php-mysql-5.1.6-5.el5
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
>
> httpd-2.2.3-6.el5.centos.1
>
> httpd-manual-2.2.3-6.el5.centos.1
>
> [EMAIL PROTECTED] etc]$
>
>
>
> Ryan Madison
>
> Senior Systems Administrator, UNIX Services
>
> Internet Services and Servers
>
> Department of Information Technology
>
> State of Nevada
>
> p. 775.684.4313
>
> f. 775.684.4324
>
> e. [EMAIL PROTECTED] 
>
> w. http://sug.state.nv.us 
>
> P Please consider the environment before printing this email.
>
> This communication, including any attachments, may contain
> confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication
> by
> anyone other than the intended recipient is strictly prohibited. If
> you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
>
>
>
>
>
>
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] /etc/php.init changes not honored

2008-01-11 Thread Jürgen Wind

>I do not see an entry stating "Loaded Configuration File" in the output 
this only available since php 5.2 (iirc)
-- 
View this message in context: 
http://www.nabble.com/-etc-php.init-changes-not-honored-tp14746039p14759509.html
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Ryan H. Madison
-Original Message-
From: Eric Butera [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 3:16 PM
To: Ryan H. Madison
Cc: php-general@lists.php.net
Subject: Re: [PHP] /etc/php.init changes not honored

On Jan 10, 2008 5:59 PM, Ryan H. Madison <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't
seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the
/etc/php.ini
> file which doesn't seem to make a difference.
>
> What am I missing?
>
> -Thanks, RYAN
>
>
>
> I'm running a default installation of CentOS 5.
>
>
>
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
>
> CentOS release 5 (Final)
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
>
> php-5.1.6-5.el5
>
> php-pdo-5.1.6-5.el5
>
> php-pear-1.4.9-4
>
> php-common-5.1.6-5.el5
>
> php-cli-5.1.6-5.el5
>
> php-mysql-5.1.6-5.el5
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
>
> httpd-2.2.3-6.el5.centos.1
>
> httpd-manual-2.2.3-6.el5.centos.1
>
> [EMAIL PROTECTED] etc]$
>
>
>
> Ryan Madison
>
> Senior Systems Administrator, UNIX Services
>
> Internet Services and Servers
>
> Department of Information Technology
>
> State of Nevada
>
> p. 775.684.4313
>
> f. 775.684.4324
>
> e. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> w. http://sug.state.nv.us <http://sug.state.nv.us/>
>
> P Please consider the environment before printing this email.
>
> This communication, including any attachments, may contain
confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication
by
> anyone other than the intended recipient is strictly prohibited. If
you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
>
>
>
>
>
>
>
>


Are you 100% sure you're editing the right ini file as stated in the
"Loaded Configuration File" setting in phpinfo()?


I do not see an entry stating "Loaded Configuration File" in the output
of phpinfo(). The relevant entries are:

Configuration File (php.ini) Path   /etc
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini

The additional .ini files are all loading shared objects...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 6:09 PM, Ryan H. Madison <[EMAIL PROTECTED]> wrote:
> Done several times in several different ways. - Same result in the
> phpinfo.php output.
>
> $ sudo apachectl graceful
> $ sudo apachectl stop
> $ sudo apachectl start
> $ sudo service httpd restart
> Stopping httpd:[  OK  ]
> Starting httpd:[  OK  ]
> $ sudo service httpd stop
> Stopping httpd:[  OK  ]
> $ sudo service httpd start
> Starting httpd:[  OK  ]

Make sure, first of all, that the file is named php.ini, not
php.init.  I'm sure that was just a typo, but just in case it wasn't,
I thought I'd address it.

Since you've already tried restarting Apache, chances are that the
php.ini file is not being expected where you're writing it.  If you
have Zend Optimizer installed, that's probably the exact reason.  If
so, try this:



Read the "Loaded Configuration File" part.  That will tell you
where PHP is loading the php.ini file from, or what it expects the
name to be.  Modify that file, restart Apache with:
sudo service httpd stop
sudo service httpd startssl

And you should be good to go.

P.S. - The 'startssl' tag was thrown in to remind you to start
your SSL services.  If you don't want them, just do:
sudo service httpd restart



-- 


Daniel P. Brown
Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since 1979.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Eric Butera
On Jan 10, 2008 5:59 PM, Ryan H. Madison <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the /etc/php.ini
> file which doesn't seem to make a difference.
>
> What am I missing?
>
> -Thanks, RYAN
>
>
>
> I'm running a default installation of CentOS 5.
>
>
>
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
>
> CentOS release 5 (Final)
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
>
> php-5.1.6-5.el5
>
> php-pdo-5.1.6-5.el5
>
> php-pear-1.4.9-4
>
> php-common-5.1.6-5.el5
>
> php-cli-5.1.6-5.el5
>
> php-mysql-5.1.6-5.el5
>
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
>
> httpd-2.2.3-6.el5.centos.1
>
> httpd-manual-2.2.3-6.el5.centos.1
>
> [EMAIL PROTECTED] etc]$
>
>
>
> Ryan Madison
>
> Senior Systems Administrator, UNIX Services
>
> Internet Services and Servers
>
> Department of Information Technology
>
> State of Nevada
>
> p. 775.684.4313
>
> f. 775.684.4324
>
> e. [EMAIL PROTECTED] 
>
> w. http://sug.state.nv.us 
>
> P Please consider the environment before printing this email.
>
> This communication, including any attachments, may contain confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication by
> anyone other than the intended recipient is strictly prohibited. If you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
>
>
>
>
>
>
>
>


Are you 100% sure you're editing the right ini file as stated in the
"Loaded Configuration File" setting in phpinfo()?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Ryan H. Madison
Done several times in several different ways. - Same result in the
phpinfo.php output.

$ sudo apachectl graceful
$ sudo apachectl stop
$ sudo apachectl start
$ sudo service httpd restart
Stopping httpd:[  OK  ]
Starting httpd:[  OK  ]
$ sudo service httpd stop
Stopping httpd:[  OK  ]
$ sudo service httpd start
Starting httpd:[  OK  ]
$


-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 3:04 PM
To: Ryan H. Madison
Cc: php-general@lists.php.net
Subject: Re: [PHP] /etc/php.init changes not honored

reload apache


 "Ryan H. Madison" <[EMAIL PROTECTED]> wrote: 
> Hello,
> 
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't
seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the
/etc/php.ini
> file which doesn't seem to make a difference. 
> 
> What am I missing? 
> 
> -Thanks, RYAN
> 
>  
> 
> I'm running a default installation of CentOS 5.
> 
>  
> 
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
> 
> CentOS release 5 (Final)
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
> 
> php-5.1.6-5.el5
> 
> php-pdo-5.1.6-5.el5
> 
> php-pear-1.4.9-4
> 
> php-common-5.1.6-5.el5
> 
> php-cli-5.1.6-5.el5
> 
> php-mysql-5.1.6-5.el5
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
> 
> httpd-2.2.3-6.el5.centos.1
> 
> httpd-manual-2.2.3-6.el5.centos.1
> 
> [EMAIL PROTECTED] etc]$
> 
>  
> 
> Ryan Madison
> 
> Senior Systems Administrator, UNIX Services
> 
> Internet Services and Servers
> 
> Department of Information Technology
> 
> State of Nevada
> 
> p. 775.684.4313
> 
> f. 775.684.4324
> 
> e. [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> 
> w. http://sug.state.nv.us <http://sug.state.nv.us/> 
> 
> P Please consider the environment before printing this email.
> 
> This communication, including any attachments, may contain
confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication
by
> anyone other than the intended recipient is strictly prohibited. If
you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
> 
>  
> 
>  
> 
>  
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Wolf
restart the server process that is reading it, otherwise the server is using 
the original settings.

You can do some override by using the .htaccess file and setting specific 
things in specific folders, but if you are setting global changes, you have to 
restart the server process for the changes to be read.

Wolf

 "Ryan H. Madison" <[EMAIL PROTECTED]> wrote: 
> Hello,
> 
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the /etc/php.ini
> file which doesn't seem to make a difference. 
> 
> What am I missing? 
> 
> -Thanks, RYAN
> 
>  
> 
> I'm running a default installation of CentOS 5.
> 
>  
> 
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
> 
> CentOS release 5 (Final)
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
> 
> php-5.1.6-5.el5
> 
> php-pdo-5.1.6-5.el5
> 
> php-pear-1.4.9-4
> 
> php-common-5.1.6-5.el5
> 
> php-cli-5.1.6-5.el5
> 
> php-mysql-5.1.6-5.el5
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
> 
> httpd-2.2.3-6.el5.centos.1
> 
> httpd-manual-2.2.3-6.el5.centos.1
> 
> [EMAIL PROTECTED] etc]$
> 
>  
> 
> Ryan Madison
> 
> Senior Systems Administrator, UNIX Services
> 
> Internet Services and Servers
> 
> Department of Information Technology
> 
> State of Nevada
> 
> p. 775.684.4313
> 
> f. 775.684.4324
> 
> e. [EMAIL PROTECTED]  
> 
> w. http://sug.state.nv.us  
> 
> P Please consider the environment before printing this email.
> 
> This communication, including any attachments, may contain confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication by
> anyone other than the intended recipient is strictly prohibited. If you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
> 
>  
> 
>  
> 
>  
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Wolf
reload apache


 "Ryan H. Madison" <[EMAIL PROTECTED]> wrote: 
> Hello,
> 
> I am trying to increase upload_max_filesize beyond the 2M
> limit. I've set this in my /etc/php.ini file, but every time I look at
> the output of phpinfo(); the changes I make in /etc/php.init don't seem
> to be honored. This isn't limited to upload_max_filesize, I've changed
> the Engine & safe_mode values, but these don't seem to make any
> difference either. I've looked in the /etc/php.d directory, and those
> files only reference other libraries. I've even removed the /etc/php.ini
> file which doesn't seem to make a difference. 
> 
> What am I missing? 
> 
> -Thanks, RYAN
> 
>  
> 
> I'm running a default installation of CentOS 5.
> 
>  
> 
> [EMAIL PROTECTED] etc]$ cat /etc/redhat-release
> 
> CentOS release 5 (Final)
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep php
> 
> php-5.1.6-5.el5
> 
> php-pdo-5.1.6-5.el5
> 
> php-pear-1.4.9-4
> 
> php-common-5.1.6-5.el5
> 
> php-cli-5.1.6-5.el5
> 
> php-mysql-5.1.6-5.el5
> 
> [EMAIL PROTECTED] etc]$ rpm -qa | grep httpd
> 
> httpd-2.2.3-6.el5.centos.1
> 
> httpd-manual-2.2.3-6.el5.centos.1
> 
> [EMAIL PROTECTED] etc]$
> 
>  
> 
> Ryan Madison
> 
> Senior Systems Administrator, UNIX Services
> 
> Internet Services and Servers
> 
> Department of Information Technology
> 
> State of Nevada
> 
> p. 775.684.4313
> 
> f. 775.684.4324
> 
> e. [EMAIL PROTECTED]  
> 
> w. http://sug.state.nv.us  
> 
> P Please consider the environment before printing this email.
> 
> This communication, including any attachments, may contain confidential
> information and is intended only for the individual or entity to it is
> addressed. Any review, dissemination or copying of this communication by
> anyone other than the intended recipient is strictly prohibited. If you
> are not the intended recipient, please contact the sender by reply
> e-Mail and delete all copies of the original message.
> 
>  
> 
>  
> 
>  
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php