View Full Version : How to execute PHP in the sharedip folder
dekat
8th March 2007, 19:38
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.
zcworld
8th March 2007, 21:49
for what OS
fedora ?
suse ?
zcworld
8th March 2007, 22:01
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
dekat
9th March 2007, 00:09
I'm using Ubuntu 6.10 Edgy
zcworld
9th March 2007, 00:18
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"
martinfst
9th March 2007, 10:00
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.
falko
9th March 2007, 17:47
You can try this:
echo "AddType application/x-httpd-php .php .phtml .php3" > /var/www/sharedip/.htaccess
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.