Results 1 to 11 of 11
Thread: cant restart apache httpd
-
08-03-2008, 01:21 PM #1Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 34
-
08-03-2008, 01:27 PM #2Cable Director
- Join Date
- Aug 2007
- Location
- Datacenter
- Posts
- 4,414
What exact error message do you get?
Also, what is your operating system?» www.InstantDedicated.com - Online in no time
» Dedicated Servers in [EU] Netherlands + Belgium with DAILY support, also on weekends
» 3.2 Tbit/s Network AS49453 with only 100 Gbit/s uplink backbone
» 1G/10G/40G/100 Gbit ports available | 99,99% Network Uptime goal
-
08-03-2008, 01:30 PM #3Aspiring Evangelist
- Join Date
- Jan 2008
- Location
- United Kingdom
- Posts
- 414
What error do you get when restarting?
-
08-03-2008, 01:31 PM #4Web Hosting Guru
- Join Date
- Dec 2007
- Posts
- 255
try service httpd restart also post the error message when u try this!
-
08-03-2008, 01:31 PM #5Web Hosting Master
- Join Date
- Aug 2003
- Posts
- 2,004
And this is why you always make a backup of your config
Posting the error message and OS will help us narrow it down.
-
08-03-2008, 01:34 PM #6Cable Director
- Join Date
- Aug 2007
- Location
- Datacenter
- Posts
- 4,414
service httpd restart will not work if it is a Debian or FreeBSD machine, so let's wait the TS's reply what exact OS and error message he gets.
» www.InstantDedicated.com - Online in no time
» Dedicated Servers in [EU] Netherlands + Belgium with DAILY support, also on weekends
» 3.2 Tbit/s Network AS49453 with only 100 Gbit/s uplink backbone
» 1G/10G/40G/100 Gbit ports available | 99,99% Network Uptime goal
-
08-03-2008, 06:58 PM #7Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 34
Sorry for the long reply guys!
When i first try /etc/init.d/httpd restart i get No such file or directory
I am on LINUX dedicated server from apthost.com
Rathin, when i do what you told me i get a whole list of options (usage: and Options what exactly should i type? This looks like it is working or heading in the right direction. I need my server httpd restarted because my site running layered panel cannot run with safe mode ON and i need to turn it OFF which i did in my php.ini..
Thanks guys so much im trying to get this solved asap!!
-
08-03-2008, 07:30 PM #8Web Hosting Guru
- Join Date
- Jan 2006
- Posts
- 268
Hi,
How about this? - /etc/init.d/apache2 restart
I think for us to help, we need the answers to these questions.
1. What Operating system are you using, and which version?
2. What files did you change, anything apart from php.ini?
3. What control panel do you have and which version?
4. Are you logged in to the server as the root user via SSH?
-
08-03-2008, 08:11 PM #9Ottomatic backup specialist
- Join Date
- Aug 2006
- Location
- Canada
- Posts
- 763
In Layeredpanel, chroot into your debian level.
Then: /etc/init.d/apache2 restart
to restart your main site's apache service.
Or:
/etc/init.d/httpd-users restart
to restart your user's apache service.
It's been answered quite a lot of times in LP's forums, you'll see me there helping as well.
Otto█ Otto Yiu
█ Rsync Palace ● Providing offsite backups since 2007.
█ Backomatic ● Hassle-free Automated cPanel/WHM, DirectAdmin, FTP, and MySQL backups.
-
08-03-2008, 09:06 PM #10Junior Guru Wannabe
- Join Date
- Oct 2006
- Posts
- 39
The issue may not be with php.ini changes. I had the issue when I copied a directory from old server to new server.
I had set VirtualHost with the same machine for many sites/ips.
DocumentRoot is set with "/var/www/html/xyz". I copied the xyz directory from the old server and it gave me "No such file or directory". Googled and found few tips and finally removed the xyz directory that was copied, and recreated with new directory. Then restarted the server, it worked. I had then copied the contents all files or sub-directory.
Hence, try deleting the directory it says "not found" and the create new directory.
This is my experience, it may or may not be same for you.Silicon
jiltin.com
-
08-03-2008, 11:44 PM #11Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 34