hi i cant locate a httpd.conf file in my server. but one of my script needs it. i have no idea how to do it. please give me a simple httpd.conf file. also how can i restart my apache thanks
If you already have apache running, then you must have a httpd.conf somewhere... try "locate httpd.conf" if it's a linux machine
where to type?? i am using a free hosting account. i searched all the directories but there is no such file please tell me how to code a simple httpd.conf file......
On a free hosting account you do not have access to httpd.conf You require root access to the server, so in effect this only occurs when you own the server
Without root access of the server you can not edit httpd.conf as well as you can't restart Apache too. Kailash
you can ask your admin to add you as a sudo user for example visudo and add the below lines .. (for user tanweer) tanweer localhost=/sbin/service httpd start,/sbin/service httpd stop, /sbin/service httpd restart tanweer localhost=/bin/vi /etc/httpd/conf/httpd.conf then u can start and configure httpd.conf /bin/vi /etc/httpd/conf/httpd.conf