I have a LAMP server running on CentOS 5.5 64-bit and would like to reload my httpd service after making new subdomains.
I have 3 servers mounted onto my web server, and depending on what resources each mounted server has i create new user accounts and add them to the available server.
for instance when a user registers and needs 5gb of space then my PHP scripts searches through my mounted servers to see if they have an allocation slot open for a new user. if not then it moves to the next server and so on. So depending on the server they end up in i create a new conf files to reflect that server as their DocumentRoot
the issue is that i need to reload the httpd service manually after each subdomain is created for a particular user.
I am trying to find a way to have the httpd service reloaded as soon as a user registers.
currently i am trying this:
system("/bin/echo '/sbin/service httpd reload > /dev/null 2>&1' | /usr/bin/at now");
my httpd service is located at