Solved

php.ini not updating

Posted on 2010-09-02
2
423 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
Comment Utility
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
Comment Utility
sucker was looking in /usr/local/lib

Thanks.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now