LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2006, 06:56 AM   #1
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Rep: Reputation: 15
Unhappy Apache malfunctioning after remastering PclinuxOS .92


Regret for a long question but I tried to but in maximum stuff, for you all experts to analyze

I have recently remastered PclinuxOS .92, i.e, installed on my hard disk & then ran mklivecd to create my custom distro.
Now the problem is that when I run the live CD , which I created out of installed PclinuxOS.92; I am unable to access the apache frontpage (for that matter any file on the server), i.e., for my server running at port 8080 (http://localhost:8080/), I get the following error:

Quote:

Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.54 (PCLinuxOS/PREFORK-3tex) Server at localhost Port 8080
P.S: Everything was running perfectly when I was running the server from my hard-disk; I see a possible reason why apache stopped working on account of something done by mklivecd script.

Here's few lines from /var/logs/httpd/error_log
Quote:
[Wed Mar 22 18:49:31 2006] [notice] Apache/2.0.54 (PCLinuxOS/PREFORK-3tex) configured -- resuming normal operations
[Wed Mar 22 18:50:43 2006] [error] [client 127.0.0.1] Symbolic link not allowed: /var
[Wed Mar 22 18:51:18 2006] [error] [client 127.0.0.1] Symbolic link not allowed: /var
Snippets from /etc/passwd
Quote:
apache:x:77:77:system user for apache:/var/www:/bin/sh
Quote:
Directory premissions of /var /var/www /var/www/html is:
drwxr-xr-x

File permission of /var/www/html/index.html is:
-rw-r--r-- 1 root root 1525 Mar 10 18:15 /var/www/html/index.html
here's relevant uncommented sections from /etc/httpd/conf/httpd.conf
Quote:

ServerRoot "/etc/httpd"

<IfModule !perchild.c>
#ScoreBoardFile logs/apache_runtime_status
</IfModule>


PidFile /var/run/httpd.pid

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15


Listen 127.0.0.1:8080

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

Include modules.d/*.conf
Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot "/var/www/html"


<Directory />
Options -All -Multiviews
AllowOverride None
<IfModule mod_access.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>

<Directory "/var/www/html">

Options -Indexes FollowSymLinks MultiViews


AllowOverride None

# Controls who can get stuff from this server.
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>

</Directory>


<IfModule mod_include.c>
<IfModule mod_dir.c>
DirectoryIndex index.shtml
</IfModule>
</IfModule>

<IfModule mod_dir.c>
DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml
</IfModule>

AccessFileName .htaccess

<IfModule mod_access.c>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
</IfModule>

<IfModule mod_mime.c>
TypesConfig conf/mime.types
</IfModule>

DefaultType text/plain
Please help me out, Thanks in advance.

Last edited by nitinatindore; 03-23-2006 at 06:59 AM.
 
Old 03-23-2006, 08:41 AM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Hrm.... Is /var a symlink to somewhere? If so, and the directive "FollowSymLinks" is not in the apache configuration, then I think it complains about this.
 
Old 03-23-2006, 09:38 PM   #3
nitinatindore
Member
 
Registered: Dec 2004
Location: India
Distribution: Mandrake, Mandriva, PclinuxOS
Posts: 114

Original Poster
Rep: Reputation: 15
Exclamation

@Wells

/var is a symbolic link to /union/var
Quote:
If so, and the directive "FollowSymLinks" is not in the apache configuration
Options -Indexes FollowSymLinks MultiViews
the above line is in configuration, Is it not enough, or anything else is required?

Last edited by nitinatindore; 03-27-2006 at 05:22 AM.
 
Old 04-13-2006, 03:15 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I have moved this to Linux-Networking where the members knowledgeable about Apache hang out
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox running under gentoo and kde malfunctioning ward_1982 Linux - Newbie 5 12-24-2004 04:21 PM
PROFTPD malfunctioning... grayram Linux - Software 0 12-16-2004 02:13 AM
malfunctioning SCSI (con't) BrainScanning Linux - Hardware 1 09-09-2004 12:53 PM
malfunctioning SCSI BrainScanning Linux - Software 4 09-09-2004 11:42 AM
DHCP client on Redhat 7.3 malfunctioning query987 Linux - Networking 10 08-20-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration