NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
michelefaccini
Oct 01, 2011Aspirant
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
- GaWdLuminaryNot 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 - WhoCares_MentorThe 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 - michelefacciniAspirantI 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 - sphardy1ApprenticeAre you entering the command while logged in to mysql???
- michelefacciniAspirantFrom phpMyadmin.....
- sphardy1Apprenticephpmyadmin 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 - michelefacciniAspirantLogged 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 - WhoCares_MentorYeah, that's normal, nothing to worry about.
-Stefan - michelefacciniAspirantSo is the command been executed ?
- WhoCares_MentorYes, you can verify using "ps ax | grep apache" (without the quotes.
-Stefan
Related Content
NETGEAR Academy

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