Create Apache Alias Using PHP
Moderator: General Moderators
Create Apache Alias Using PHP
Can anyone tell me if its possible to write php code to add/edit an apache alias.
- Sekka
- Forum Commoner
- Posts: 91
- Joined: Mon Feb 18, 2008 10:25 am
- Location: Huddersfield, West Yorkshire, UK
Re: Create Apache Alias Using PHP
As long as the PHP file has the right permissions and access rights to edit the httpd.conf, I don't see why not.
Please note this is purely guess work on my part.
Please note this is purely guess work on my part.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Create Apache Alias Using PHP
Do you really want PHP doing this?
Re: Create Apache Alias Using PHP
Wow! Forgot i asked this and recently its cropped up again.....
yes, i think i will have to edit the httpd.conf directly. We have a site generator that adds applications outside a web root. We need to be able to create aliases...... just had a terrible feeling while typing this, thinking that we need to restart apache everytime i want to add an alias. There has to be another way.
yes, i think i will have to edit the httpd.conf directly. We have a site generator that adds applications outside a web root. We need to be able to create aliases...... just had a terrible feeling while typing this, thinking that we need to restart apache everytime i want to add an alias. There has to be another way.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: Create Apache Alias Using PHP
(Almost) Any time you mess with a conf file you will have to restart the daemon. Such is the case with Apache, MySQL and PHP.