Solved

php.ini not updating

Posted on 2010-09-02
2
442 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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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.

679 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