The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Apache 2.2.8 iBot UNIX and Linux RSS News 0 03-18-2008 05:00 AM
installation of Solaris: installation bypasses network config. cadmiumgreen SUN Solaris 2 07-15-2005 07:31 PM
Apache and DNS saabir UNIX for Advanced & Expert Users 1 03-07-2004 01:00 PM
Apache 2.0 installation coredump2003 UNIX for Dummies Questions & Answers 1 12-22-2003 08:54 AM
Apache macdonto UNIX for Dummies Questions & Answers 2 08-22-2001 04:22 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2008
Registered User
 

Join Date: Jun 2008
Posts: 9
Thumbs down apache installation

I have installed sunsolaris 10 in sparc machine.In that how to run apache
bydefault apache is installed on /etc file.

I have logged in as a root
changed the directory to cd /etc/apache2/
from there i have copied httpd.conf-example to httpd.conf
#cp httpd.conf-example httpd.conf
after copied this httpd.conf-example file to httpd.conf
i have started the apache server through this command
svcadm restart apache2
svcs enable apache2
these steps i have done to run the apache on solaris 10
after done these steps i have opened the webbroser i have tried to open the apche website but i didnot get the web site but i was getting error message
i have tried to open the website through this website name
http://localhost.localdomain
when i typed this i am getting this error

ERROR:localhost.localdomain could not be found please check the name and try again.

please give the solution as soon as early

thanking you
Reply With Quote
Forum Sponsor
  #2  
Old 06-16-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
the command is:
Code:
svcadm enable apache
have a look at the output of:

Code:
svcs -a | grep apache
to be sure.

edit:
i just checked on my solaris nevada installation... the provider is "apache22". i don't have a solaris 10 install to have a look for the provider but the "svcs -a" command should clear all questions.
and: it works

Last edited by DukeNuke2; 06-16-2008 at 01:20 PM.
Reply With Quote
  #3  
Old 06-16-2008
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 395
You copied and example httpd.conf, but did you actually configure it with your IP, port, etc? How's apache going to know what domain it is supposed to be if you don't tell it?

Open up the httpd.conf file, put your local IP in it, restart apache, then use your IP address in the URL, not localhost.domain. Go from there.
Reply With Quote
  #4  
Old 06-16-2008
rcmrulzz's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 45
apache installation

exactly...as system shock posted, there needs to be configuration done in apache conf file to run in your server. there is a config mode you can run apache...its configtest something. run it and you can know the errors in apache config file. If apache is installed & configured correctly, calling the ip will show apache page saying, apache is running in this machine...Hope this helps.

PS: if you r not sure of configtest....google abt it and you will find it...its no big deal.....enjoy...
Reply With Quote
  #5  
Old 06-17-2008
pupp's Avatar
cap_10hdx 1
 

Join Date: Feb 2008
Location: Jersey Shore
Posts: 340
i would recommend moving away from the pre-installed version of apache and compile from source yourself. i usually install under /usr/local/apache. personally, i like most of my stuff under the same dir.

however, you can work with the one already there. when you vi httpd.conf-example, search on "#ServerName www.example.com:80"
you need to change this to your local ip address... or your domain name.
that example one can be useful but it has lots of loaded modules and other thresholds set. again, i just personally like to start with a clean sheet before i load any module that could prevent me from using certain features or opening certain features i don't want.

when you vi httpd.conf-example and change it over to httpd.conf, restart apache2 with "svcadm restart apache2".
Reply With Quote
  #6  
Old 06-20-2008
Registered User
 

Join Date: Jun 2008
Posts: 9
Unhappy apache installation

I have run some commands to run apache on solaris.Still i am unable to run apache on solaris which commands i have used on solaris 10 i had given below

bash-3.00# cd /etc/apache2/
bash-3.00# svcadm restart apache2
bash-3.00# svcs enable apache2
svcs: Pattern 'enable' doesn't match any instances
STATE STIME FMRI
maintenance 21:27:51 svc:/network/http:apache2
bash-3.00# svcadm enable apache2
bash-3.00# svcs -a | grep apache2
maintenance 21:27:51 svc:/network/http:apache2
bash-3.00# svcs -x | grep apache2
svc:/network/http:apache2 (Apache 2 HTTP server)
See: apache2(1M)
See: /etc/svc/volatile/network-http:apache2.log

after run this commands i have tried to open the website.
http://loclahost/ and http://127.0.0.1/

still i am confusing about this what could be the reason and where i have done the mistake.

Thanks.
Reply With Quote
  #7  
Old 06-20-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,484
investigate the log file that has been given to you...

Code:
# cat /etc/svc/volatile/network-http:apache2.log
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0