Solved

php.ini not updating

Posted on 2010-09-02
2
441 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

808 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