Apache Web Server Solaris 10
Apache Web Server Solaris 10
You will probably see the following, indicating that apache is NOT running:
disabled Apr_20 svc:/network/http:apache2
Use the svcadm command to start the webserver. This will also make it automatically start if your machine reboots.
svcadm -v enable /network/http:apache2
Debugging / Troubleshooting
If the svcs -p command from the above step doesn't show a STATE of online, do the followig:
svcs -a | grep -i http
Note that the second to last line tells you where the log file is, so take a look at that. Once you've fixed the problem, you can restart apache with:
svcadm restart /network/http:apache2
If for some reason you want to shut off apache, use this:
svcadm disable /network/http:apache2 svcs -p /network/http:apache2 STATE STIME FMRI disabled 15:36:33 svc:/network/http:apache2 svcs -l http fmri name enabled state next_state state_time logfile restarter contract_id dependency dependency (online) dependency (online)
svc:/network/http:apache2 Apache 2 HTTP server false disabled none May 8, 2007 3:36:33 PM EDT /var/svc/log/network-http:apache2.log svc:/system/svc/restarter:default require_all/error svc:/milestone/network:default (online) require_all/none svc:/system/filesystem/local:default optional_all/error svc:/system/filesystem/autofs:default