apache installation


 
Thread Tools Search this Thread
Operating Systems Solaris apache installation
# 1  
Old 06-16-2008
PHP 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
# 2  
Old 06-16-2008
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 Smilie

Last edited by DukeNuke2; 06-16-2008 at 05:20 PM..
# 3  
Old 06-16-2008
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.
# 4  
Old 06-17-2008
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...SmilieSmilie..enjoy...
# 5  
Old 06-17-2008
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".
# 6  
Old 06-20-2008
Data 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.
# 7  
Old 06-20-2008
investigate the log file that has been given to you...

Code:
# cat /etc/svc/volatile/network-http:apache2.log

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Help troubleshooting new Apache installation on HPUX 11.31

Hi Guys! I have a very odd problem while installing Apache in an HPUX 11.31, What I did was downloaded the latest webserver suite from hp software, installed using swinstall, everything was extracted properly. The apache version was 2.2.15 Now the issue comes when I run it, it starts... (3 Replies)
Discussion started by: feliper
3 Replies

2. UNIX for Dummies Questions & Answers

Changing the Apache Installation directory in Linux

Hi All, I have installed apache using yum on centos. I know that the default installation directory is /var/www/html. Now I want to change the installation directory to /mnt/ebs. How can I do this ? (5 Replies)
Discussion started by: Palak Sharma
5 Replies

3. Solaris

Apache Server installation

Hi, can we install two diferent versions of apache on same server for different applications? (1 Reply)
Discussion started by: madhudeva
1 Replies

4. Solaris

Apache 2.2.21 installation on solaris 10

Hi , I am new to the unix environment. I need to install apache 2.2.21 on my machine. I have tried configuring apache from /etc/apache2 directory. But now I want to install it under a separate user. Can anybody tell me the step by step procedure to install it under separate user,please ?... (1 Reply)
Discussion started by: bikas89
1 Replies

5. Solaris

Apache installation error

Hi, I'm getting the below error when trying to run configure from apache 2.0.64. configure: error: C preprocessor "/lib/cpp" fails sanity check I navigated through the forum and found some users experiencing this problem and the solution was to install kernel-headers. But i'm not able to... (1 Reply)
Discussion started by: prithvirao17
1 Replies

6. Ubuntu

Mysql apache installation

on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies

7. Solaris

apache and php installation..

hi i need to install apache and php on my solaris server .. can u tell me the procedure... tell me as soon as possible.. (4 Replies)
Discussion started by: senkerth
4 Replies

8. AIX

Apache Installation issue

HI Guys, I got the below error while trying to install the apache2.2.15. from the error I can interpret that some of the .h files are missing. I guess those are C library header files.. Can you help me with it. bash-3.00# make Making all in srclib Making all in apr /bin/sh... (3 Replies)
Discussion started by: kkeng808
3 Replies

9. Solaris

Apache 2 doesnt create SMF service at installation

Hello everybody, I intended to use Apache 2 first time on my S10 U7 box. But the package (V2) is not ok for the developpers and they need 2.2.12 somehow. I removed Apache 1.3 and installed 2.2.12 with the stream package which I downloaded from Sunfreeware.com It's running perfectly if I start... (2 Replies)
Discussion started by: shadowfaxxxx
2 Replies

10. UNIX for Dummies Questions & Answers

Apache 2.0 installation

Hi all! I've got big problems while installing Apache 2.0 on my HPUX 11 machine. I have configured the installation script with "./configure --prefix=/opt/apache" and run "make". All things looking good. But when i execute "make install" i have two errors, first: and second and the... (1 Reply)
Discussion started by: coredump2003
1 Replies
Login or Register to Ask a Question