Reply
Regular Contributor
Posts: 160
Registered: ‎2012-09-05

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....
Nas : Ultra 2 Plus
Network : Netgear DGN2200
Desktop : QuadCore I7 950 3.02 GHZ,2 SSD OCZ Vertex4 Raid 0, 1 SSD OCZ Vertex Turbo 60 GB, Gigabyte X58A UD5 Rev2 Bios FD, CORSAIR Vengeance 12 GB DDR3 1600 or OCZ Platinum LV 6GB DDR3 1600 MHz, Thermaltake Armor + Black, Sapphire Radeon 5830 1GB DDR5, Zalmann CNPS9900 Max, Corsair 750 Watts TX
OS : Windows 7 64 Bit Ultimate.
Virtualized with VirtualBox and/or with VMWare : Ubuntu - Fedora 15 - Windows XP -Windows NT 4.0 - Windows 2000 Pro - NextStep 3.3 - Mac OS X Snow Leopard - OpenStep - Windows 7 64 Bit Ultimate - Windows 8.1 Pro - Fedora 15 64 bit - ReadyNAS OS 6 - RAIDiator-4.2.23
Contributor
Posts: 52
Registered: ‎2011-04-01

Re: How to stop and restart Apache

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
Moderator
Posts: 3,077
Registered: ‎2008-01-15

How to stop and restart Apache

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
Follow me on Twitter, Facebook, Google+ or visit my add-on web site
Regular Contributor
Posts: 160
Registered: ‎2012-09-05

Re: How to stop and restart Apache

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
Nas : Ultra 2 Plus
Network : Netgear DGN2200
Desktop : QuadCore I7 950 3.02 GHZ,2 SSD OCZ Vertex4 Raid 0, 1 SSD OCZ Vertex Turbo 60 GB, Gigabyte X58A UD5 Rev2 Bios FD, CORSAIR Vengeance 12 GB DDR3 1600 or OCZ Platinum LV 6GB DDR3 1600 MHz, Thermaltake Armor + Black, Sapphire Radeon 5830 1GB DDR5, Zalmann CNPS9900 Max, Corsair 750 Watts TX
OS : Windows 7 64 Bit Ultimate.
Virtualized with VirtualBox and/or with VMWare : Ubuntu - Fedora 15 - Windows XP -Windows NT 4.0 - Windows 2000 Pro - NextStep 3.3 - Mac OS X Snow Leopard - OpenStep - Windows 7 64 Bit Ultimate - Windows 8.1 Pro - Fedora 15 64 bit - ReadyNAS OS 6 - RAIDiator-4.2.23
Esteemed Contributor
Posts: 4,615
Registered: ‎2008-02-28

Re: How to stop and restart Apache

Are you entering the command while logged in to mysql???

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Regular Contributor
Posts: 160
Registered: ‎2012-09-05

Re: How to stop and restart Apache

From phpMyadmin.....
Nas : Ultra 2 Plus
Network : Netgear DGN2200
Desktop : QuadCore I7 950 3.02 GHZ,2 SSD OCZ Vertex4 Raid 0, 1 SSD OCZ Vertex Turbo 60 GB, Gigabyte X58A UD5 Rev2 Bios FD, CORSAIR Vengeance 12 GB DDR3 1600 or OCZ Platinum LV 6GB DDR3 1600 MHz, Thermaltake Armor + Black, Sapphire Radeon 5830 1GB DDR5, Zalmann CNPS9900 Max, Corsair 750 Watts TX
OS : Windows 7 64 Bit Ultimate.
Virtualized with VirtualBox and/or with VMWare : Ubuntu - Fedora 15 - Windows XP -Windows NT 4.0 - Windows 2000 Pro - NextStep 3.3 - Mac OS X Snow Leopard - OpenStep - Windows 7 64 Bit Ultimate - Windows 8.1 Pro - Fedora 15 64 bit - ReadyNAS OS 6 - RAIDiator-4.2.23
Esteemed Contributor
Posts: 4,615
Registered: ‎2008-02-28

Re: How to stop and restart Apache

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

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Regular Contributor
Posts: 160
Registered: ‎2012-09-05

Re: How to stop and restart Apache

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
Nas : Ultra 2 Plus
Network : Netgear DGN2200
Desktop : QuadCore I7 950 3.02 GHZ,2 SSD OCZ Vertex4 Raid 0, 1 SSD OCZ Vertex Turbo 60 GB, Gigabyte X58A UD5 Rev2 Bios FD, CORSAIR Vengeance 12 GB DDR3 1600 or OCZ Platinum LV 6GB DDR3 1600 MHz, Thermaltake Armor + Black, Sapphire Radeon 5830 1GB DDR5, Zalmann CNPS9900 Max, Corsair 750 Watts TX
OS : Windows 7 64 Bit Ultimate.
Virtualized with VirtualBox and/or with VMWare : Ubuntu - Fedora 15 - Windows XP -Windows NT 4.0 - Windows 2000 Pro - NextStep 3.3 - Mac OS X Snow Leopard - OpenStep - Windows 7 64 Bit Ultimate - Windows 8.1 Pro - Fedora 15 64 bit - ReadyNAS OS 6 - RAIDiator-4.2.23
Moderator
Posts: 3,077
Registered: ‎2008-01-15

Re: How to stop and restart Apache

Yeah, that's normal, nothing to worry about.

-Stefan
Follow me on Twitter, Facebook, Google+ or visit my add-on web site
Regular Contributor
Posts: 160
Registered: ‎2012-09-05

Re: How to stop and restart Apache

So is the command been executed ?
Nas : Ultra 2 Plus
Network : Netgear DGN2200
Desktop : QuadCore I7 950 3.02 GHZ,2 SSD OCZ Vertex4 Raid 0, 1 SSD OCZ Vertex Turbo 60 GB, Gigabyte X58A UD5 Rev2 Bios FD, CORSAIR Vengeance 12 GB DDR3 1600 or OCZ Platinum LV 6GB DDR3 1600 MHz, Thermaltake Armor + Black, Sapphire Radeon 5830 1GB DDR5, Zalmann CNPS9900 Max, Corsair 750 Watts TX
OS : Windows 7 64 Bit Ultimate.
Virtualized with VirtualBox and/or with VMWare : Ubuntu - Fedora 15 - Windows XP -Windows NT 4.0 - Windows 2000 Pro - NextStep 3.3 - Mac OS X Snow Leopard - OpenStep - Windows 7 64 Bit Ultimate - Windows 8.1 Pro - Fedora 15 64 bit - ReadyNAS OS 6 - RAIDiator-4.2.23
Discussion Stats
  • 10 replies
  • 191 views
  • 0 kudos
  • 4 in conversation
Top Contributors
User Kudos Count
6
4
4
2
2