Solved

php.ini not updating

Posted on 2010-09-02
2
435 Views
Last Modified: 2013-12-13
I can't seem to figure out why any changes I make to php.ini and
restart apache (apachectl stop|start; grep of any httpd processes),
the settings do not update.

php -r "phpinfo();" | grep Configuration
Configuration File (php.ini) Path => /etc/php.ini
Configuration


I installed extensions via yum and they don't show up.
# rpm -qa|grep php
php-gd-5.1.6-27.el5
php-mysql-5.1.6-27.el5
php-pear-1.4.9-6.el5
php-common-5.1.6-27.el5
php-cli-5.1.6-27.el5
php-devel-5.1.6-27.el5
php-pdo-5.1.6-27.el5
php-5.1.6-27.el5

Can I load extensions via httpd.conf like how you override defaults?
0
Comment
Question by:mw-hosting
2 Comments
 
LVL 22

Accepted Solution

by:
Matt V earned 500 total points
ID: 33592222
Make a .php file that contains:

<?php>phpinfo()</?>

On the server and open it with your web browser, verify that apache is using the same php.ini file.

Often it is /usr/lib/php/php.ini
0
 

Author Comment

by:mw-hosting
ID: 33592432
sucker was looking in /usr/local/lib

Thanks.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question