Help - Search - Members - Calendar
Full Version: httpd.config resets!
The Planet Forums > Control Panels > Plesk
rocketsense
Help! I have a vhost httpd.config file resetting itself. I edit the file for someone who wants short tags off so I add...

php_admin_flag short_open_tag off

to the file on the particular vhost I want to change. I then reset apache. This works fine but after a few days it restores itself as it was before! I even tried editing this in the backup config file for this vhost. No help there either.

Anyone got any ideas what I'm doing wrong or where to start?

Thanks!
Squire
Hey Rocketsense.

Sounds like you're trying to edit httpd.conf for the whole server or httpd.include for a specific domain. Both of those are rewritten by Plesk.

Instead, create a vhost.conf file for the domain in question and put your special instructions there. You'll need to restart apache afterwards for the change to take effect.

The domain won't have a vhost.conf file by default, so just create one in /home/httpd/vhosts/domain.com/conf. Save it, restart apache and you're good to go.

Squire
rocketsense
What exactly should be in the vhost.conf file? I think I'm missing something because it's not working.
rocketsense
Nevermind... for the vhost.conf file to work you must have psa reference the include as so:

prompt% /usr/local/psa/admin/bin/my_apci_rst

Then restart apache and the include line will be put in httpd.include.

Hope that helps anyone else with that problem!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.