Results 1 to 11 of 11
  1. #1

    cant restart apache httpd

    Hi
    I am trying to restart my apache since i made changes to my php.ini file.

    I tried using this command /etc/init.d/httpd restart which didnt work for me..any ideas guys? Its a basic dedicated server from a hosting company..

  2. #2
    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

  3. #3
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    414
    What error do you get when restarting?

  4. #4
    try service httpd restart also post the error message when u try this!

  5. #5
    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.

  6. #6
    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

  7. #7
    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!!

  8. #8
    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?

  9. #9
    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.

  10. #10
    Join Date
    Oct 2006
    Posts
    39
    Quote Originally Posted by walrus21 View Post
    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!!
    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

  11. #11
    Hi
    Still no luck
    What i do is CD to my layered panel dir then fire up the command etc/init.d/apache 2 restart

    it looks like it worked but my php.ini changes for SAFE MODE still arent turned from on to off like i need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •