How do i execute PHP in the sharedip folder? Hi there, How can I get the sharedip folder to execute PHP code, rather than just list it? I have code in my sharedip folder, but when I access it from my browser, I just get a display of the code. And I can't figure out how to reconfigure the folder to execute the PHP code. Thanks advance for your help.
try this if you are using fedora have an look around /etc/httpd/conf.d/php.conf file to see if its being disabled in there but its around that place / file for most other linux OS out there i cant really remember to i find my dam PDF file i got on how to install ispconfig
if you dont get a reply in 14 hrs i will have an look for you when i get home where the file is but its in like the /etc/apache2 (maybe i think its there or do an find search for an "php.conf"
If you installed ISPConfig and followed the howto's, php is disabled by default in order to allow you to switch on and off php for you users. Why do you want php in the shared folder? It's not used by any site, only shown to people which access your server by it's IP address or base system name. There's no use of the shared folder, other then to put a small html place holder that directs it to your main site, which is vhost name based. Enabling php for the shared folder will break a lot of thing for the perfect ISPConfig setup. I don't recommend it.
You can try this: Code: echo "AddType application/x-httpd-php .php .phtml .php3" > /var/www/sharedip/.htaccess