Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

php.ini not updating

Posted on 2010-09-02
2
Medium Priority
?
464 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.
Suggested Courses

783 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