1832891 Members
2596 Online
110048 Solutions
New Discussion

Apache problem

 
John B Goode
Advisor

Apache problem

The error log says Access failed to /index.html because search permissions are missing on a component of the path. And someone please tell me where the "It Worked" page is supposed to be like is described in the readme. The default doc directory didn't even exist.
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Apache problem

You must set your httpdocs directory path within the httpd.conf file. Whatever path you want your docs to be in must be defined and must exist. Your default index.html file will go in that directory.

The path you pick must also be readable by whatever user the httpd daemons are running as, usually www.
John B Goode
Advisor

Re: Apache problem

I did that. and I created the htdocs.
/usr/local/apache/lib/htdocs.
I also put an index.html in this directory.
I remember long ago I set this up on linux and had a www directory with the "it worked" page in it but in this unix install I see no such directory or page. Should it be there by default? Maybe an install problem? I used the .depot for Apache/1.3.29 Server.
Steven E. Protter
Exalted Contributor

Re: Apache problem

I would suggest swverify \* to see if the apache installation is corrupt.

Or ps -ef | grep httpd
If you have processes, you have a working httpd server.

I kind of doubt it because errors are logging in the log files.

I would tend to think that permissions on index.html or the directory are not appropriate.

That document must be readable by all users. Browsers users are low priviledge other type users.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Apache problem

Hi,

Search for DocumentRoot in httpd.conf and make sure it is set to wherever your index.html is. For ex.,

DocumentRoot "/usr/local/apache/lib/htdocs"

Also make sure the user 'www' has permissions to read this directory. You can do it by logging in as 'www' and then

$cat /usr/local/apache/lib/htdocs/index.html

Restart apache (if you loaded HP's source, then it is /opt/apache/bin/apachectl start
and see if it works.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try