B
billcd@
Guest
So, I've tried everything and I think I've exhausted any normal answers....
I have a library of PHP classes that I use on almost every site on my server. The client list is growing quickly and managing them is becoming almost impossible. I find a bug and then have to go to every site and install the updates.
I want to have a dir on the server were all of those files live and have it aliased to /classes for every client that uses them. I have no problem with going to every clients vhost.conf file adding the alias. In fact, I would rather have it that way since I do not necessarily want every client to have access. Some are just being hosting and others we are managing their site. Those who are ONLY being hosted should not have access.
Now, I have this working EXCEPT for php... I can load any html files in the alias, but when I try to run a php file, the server wants me to download the file rather than executing it.
Also, just to test if permissions were the problem I ran "chmod 777 on /var/www/vhost/mainsite.com -R" this changed nothing.
Here is what my vhost.conf looks like right now for the client who will be using the classes directory.
Any help or ideas would be greatly appreciated! Thanks
I have a library of PHP classes that I use on almost every site on my server. The client list is growing quickly and managing them is becoming almost impossible. I find a bug and then have to go to every site and install the updates.
I want to have a dir on the server were all of those files live and have it aliased to /classes for every client that uses them. I have no problem with going to every clients vhost.conf file adding the alias. In fact, I would rather have it that way since I do not necessarily want every client to have access. Some are just being hosting and others we are managing their site. Those who are ONLY being hosted should not have access.
Now, I have this working EXCEPT for php... I can load any html files in the alias, but when I try to run a php file, the server wants me to download the file rather than executing it.
Also, just to test if permissions were the problem I ran "chmod 777 on /var/www/vhost/mainsite.com -R" this changed nothing.
Here is what my vhost.conf looks like right now for the client who will be using the classes directory.
Alias /classes /var/www/vhosts/mainsite.com/httpdocs/classes
<Location /classes >
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
</IfModule>
Order allow,deny
Allow from all
</Location>
Any help or ideas would be greatly appreciated! Thanks