include_path strange behavior cPanel

GOT

Well-Known Member
#1
These two sites are on the same server:

http://sb.peerfly.com/styles/phpinfo.php

http://merchants.peerfly.com/static/phpinfo.php

If you look at the include_path setting, the local value is different. The first link is what we want, the second link's config is not working with essentially the same code. The developer has also tried using the set_include_path php directing in code and its not helping either.

Where would this setting be? It happens on all new accounts that get crteated on the server, but accounts that were set up a while ago have the first link's configuration.
 

mistwang

LiteSpeed Staff
#2
The newly created vhost must be adding "php_admin_value include_path ... " to the vhost configuration, it is could be due to vhost configuration change.
 

GOT

Well-Known Member
#3
Yeah, I looked all around thinking that. This i what I found. Reminder, this is a cpanel server.

So, cpanel is creating these files for each domain

conf/userdata/std/2/q/cp_php_magic_include_path.conf
 

GOT

Well-Known Member
#4
I resolved this. This domain was including a file in the extra config folder which is normally off by default. I don't have an explanation why it was doing this, but I commented out that include directive in teh apache config and that resolved it
 
Top