Change Configuration file path Apache2.4 Ubuntu14.04

How can I changed the Configuration File (php.ini) Path in my Apache2 Configuration ?

I got two PHP-Version and want to switch between them.

I found out that with PHPIniDir in apache2.conf I can load a different php.ini file. Is there similar option for the whole file path ?

I use Ubuntu 14.04 with Apache 2.4.


I doesnt work like that.

# /usr/sbin/httpd -M | grep -i php
 php5_module (shared)

will show you what php version (aka php apache module) you already have. you need to edit httpd.conf to load the other php version or in a centos6 linuxbox



Category: apache 2.4 Time: 2016-07-30 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.162 (s). 12 q(s)