Web Servers on Unix and Linux - apache on Sun Solaris

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > February 2005 > apache on Sun Solaris





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache on Sun Solaris
mitchell

2005-01-31, 5:53 pm

I have already installed apache 2.0.52 on Sun Solaris. To be sure to
get 'permission', I installed apache under my home directory. I
changed the directory ~/httpd-2.0.52/bin and I typed

$apachectl start

fopen:permission denied
httpd: could not open error log file /app/apache_1.3.4/logs/error_log.
/pkg/all/bin/apachectl start: httpd could not be started

When I tried to start apache, it called under my univesity commom
directory instead under my home directory.

In httpd.conf, every path is correct.
How can I fix this problem ???? Please help me!!!!!!

Tulan W. Hu

2005-01-31, 5:53 pm

"mitchell" <mitchell_1078@yahoo.com> wrote in
> I have already installed apache 2.0.52 on Sun Solaris. To be sure to
> get 'permission', I installed apache under my home directory. I
> changed the directory ~/httpd-2.0.52/bin and I typed
>
> $apachectl start
>
> fopen:permission denied
> httpd: could not open error log file /app/apache_1.3.4/logs/error_log.
> /pkg/all/bin/apachectl start: httpd could not be started


1) It's obvious that you ran /pkg/all/bin/apachectl instead of
~/httpd-2.0.52/bin/apachectl
2) make sure your ~/httpd-2.0.52/conf/httpd.conf contain correct info.

>
> When I tried to start apache, it called under my univesity commom
> directory instead under my home directory.
>
> In httpd.conf, every path is correct.
> How can I fix this problem ???? Please help me!!!!!!
>



mitchell

2005-02-02, 2:50 am

No.. I am sure. I have already checked httpd.conf. Every path is mine.
And I run apachectl start command under my own directory. Why does this
command invoke apache under app folder ?

regards,
Mitchell

Marc Poulhičs

2005-02-02, 2:50 am

"mitchell" <mitchell_1078@yahoo.com> writes:

> No.. I am sure. I have already checked httpd.conf. Every path is mine.
> And I run apachectl start command under my own directory. Why does this
> command invoke apache under app folder ?


Did you check inside the apachectl script? This is a simple shell
script. Here (on a RedHat based Linux distribution), apachectl has:
HTTPD='/usr/sbin/httpd'
Maybe you have something like this.

You should also be able to start apache running directly _your_ httpd...

Marc
mitchell

2005-02-02, 7:46 am

I have already checked these files. But I don't know why it doesn't
work. I don't have write permission on others' files. ( HELP ME
!!!!!!!!

mitchell

2005-02-02, 7:46 am

Dear all,

Now I get answer ( not solution ). I got these erros because of the
user policies of our university's information centre. It's so bad.
Anyways thank you so much for helping me.

regards,
Mitchell

Marc Poulhičs

2005-02-02, 7:46 am

"mitchell" <mitchell_1078@yahoo.com> writes:

> I have already checked these files. But I don't know why it doesn't
> work. I don't have write permission on others' files. ( HELP ME
> !!!!!!!!


What about this:

cd your/apache/home
../httpd -X -f path/to/your/config/httpd.conf -k start

This should work...

--
Marc Poulhičs
http://www.kataplop.net
Marc Poulhičs

2005-02-02, 7:46 am

"mitchell" <mitchell_1078@yahoo.com> writes:

> Dear all,
>
> Now I get answer ( not solution ). I got these erros because of the
> user policies of our university's information centre. It's so bad.
> Anyways thank you so much for helping me.


What is not allowed ?
mitchell

2005-02-04, 2:47 am

Dear Marc,

Thank you so much for your help. I got it bcoz of you. In httpd.conf,
ServerName was commented out. So I updated it with my pcname and
changed listen port 80 with 8080 because in port 80, university's info
centre' apache is running. Your command made my apache work and it was
free from error 'permission denied'. Thanks a lot!

regards,
Mitchell

Marc Poulhičs

2005-02-04, 2:47 am

"mitchell" <mitchell_1078@yahoo.com> writes:

> Thank you so much for your help. I got it bcoz of you. In httpd.conf,
> ServerName was commented out. So I updated it with my pcname and
> changed listen port 80 with 8080 because in port 80, university's info
> centre' apache is running. Your command made my apache work and it was
> free from error 'permission denied'. Thanks a lot!


Hi,

Good news

You should also know that you must have root permission to use port
<1024, so even if there was no one using 80, you can't use it.

Marc
mitchell

2005-02-04, 2:47 am

Dear March,

Thank you so much for your help. I got it because of you. In
httpd.conf file, 'ServerName' was commented out. So I updated it with
my pcname:8080. I used port number 8080 because another apache from
university's info centre is running in port 80. Your command made my
apache work and it was free from 'permission denied' error. Thanks a
lot!

regards,
Mitchell

mitchell

2005-02-04, 2:47 am

Hi.. Thank you so much again. I don't know much about unix and unix
commands are difficult to remember.

mitchell

2005-02-04, 2:47 am

Hi.. Thank you so much again. I don't know much about unix and unix
commands are difficult to remember.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com