Have you been banging your head on the wall for days, trying to figure out why your include_path in php.ini is not workin? and you have tried …
1. restarting your apache/nginx
2. and verified that you are editing correct file
3. and doubled check the phpinfo() and include path is correctly set
4. and tried checking the get_include_path() whether it’s including it at run time?
Well there’s one more thing you haven’t done!
late that i know that this is not a PHP nor apache/nginx issue.
happenss to be an OS issue! for my case im using Centos 6 and i happen to discover from a friend that Centos ships with SELinux. what’s SELinux?? check out here for the explanation => http://www.cyberciti.biz/faq/howto-turn-off-selinux/
You have to disable the SELinux for apache to be able to work outside the public path!
Give it a try!
It’s been quite sometime since i’ve used apache, I’ve been enjoying nginx so far but had to switch back to apache for a project. just a quick tip for those who are working with Apache. Sometimes we are forced to work with a server that we are unfamiliar of interms of configuration/settings/installation and asked where to find the Apache configuration file is on a given server. so I usually do:
$ ps -ef | grep apache
which will give me the list of process like this
coolguy@mbpro:/$ ps -ef | grep apache
apache 14305 22691 11 21:22 ? 00:00:00 /usr/local/httpd-2.2.4/bin/httpd -k start
apache 14341 22691 0 21:22 ? 00:00:00 /usr/local/httpd-2.2.4/bin/httpd -k start
apache 14374 22691 1 21:22 ? 00:00:00 /usr/local/httpd-2.2.4/bin/httpd -k start
or in other linux flavor / installation path
root 4053 1 0 02:34 ? 00:00:04 /usr/sbin/apache2 -k start
www 6789 14053 0 12:00 ? 00:00:00 /usr/sbin/apache2 -k start
www 6790 14053 0 12:00 ? 00:00:00 /usr/sbin/apache2 -k start
after seeing the list you can have a clue now 🙂 Then simply run
$ /usr/local/httpd-2.2.4/bin/httpd -V
$ /usr/sbin/apache2 -V
and then you will get the details you need…
Server compiled with....
There you go. Do you have another faster method? Please do let me know.