NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

michelefaccini's avatar
Oct 01, 2011

How to stop and restart Apache

Hi,I have PHP 5.3.8.1 and phpMyadmin 3.3.8.1 installed on my ReadyNas Ultra 2...I would like to know what is correct synthax to use( in the SQL query page of phpMyadmin ) to stop and restart Apache without having to reboot the Nas.....I already tried some but always get a synthax error....

10 Replies

Replies have been turned off for this discussion
  • Not sure about the web interface to PHPMyAdmin, since I still can't get mine configured correclty (see my question to you in your other thread), but there is a script that can be executed from CLI that will take care of the problem:

    /etc/frontview/addons/bin/PHP5/restart_apache.sh
  • The correct syntax would be
    apache-ssl -f /etc/frontview/apache/httpd.conf -k restart

    which essentially is what the restart_apache.sh script is doing - but it has a 30 or so seconds delay built in.

    -Stefan
  • I get the following error :

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'apache-ssl -f /etc/frontview/apache/httpd.conf -k restart' at line 1
  • phpmyadmin is a graphical frontend for managing MySQL databases - not for controlling your NAS.

    The command needs to be entered at the Linux command line ie via SSH
  • Logged as root (+ password) from the Putty shell, I have

    apache-ssl: Could not reliably determine the server's fully qualified domain name, using 192.168.0.2 for ServerName
  • Yes, you can verify using "ps ax | grep apache" (without the quotes.

    -Stefan

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More