Discussion:
apache on Sun Solaris
(too old to reply)
mitchell
2005-01-31 15:52:28 UTC
Permalink
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 16:09:42 UTC
Permalink
Post by mitchell
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.
Post by mitchell
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 08:33:23 UTC
Permalink
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 08:54:05 UTC
Permalink
Post by mitchell
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 12:01:47 UTC
Permalink
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 12:44:39 UTC
Permalink
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 12:51:23 UTC
Permalink
Post by mitchell
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 ?
Marc Poulhiès
2005-02-02 12:50:06 UTC
Permalink
Post by mitchell
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
mitchell
2005-02-04 07:41:13 UTC
Permalink
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 08:00:06 UTC
Permalink
Post by mitchell
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 08:01:16 UTC
Permalink
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 08:32:25 UTC
Permalink
Hi.. Thank you so much again. I don't know much about unix and unix
commands are difficult to remember. :)
mitchell
2005-02-04 08:42:09 UTC
Permalink
Hi.. Thank you so much again. I don't know much about unix and unix
commands are difficult to remember. :)
g***@gmail.com
2016-05-20 16:23:33 UTC
Permalink
did you get this working??

Loading...