Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 24th November 2008, 07:41 PM
biggsk's Avatar
biggsk Offline
Registered User
 
Join Date: Aug 2007
Location: The Bay, Florida
Age: 31
Posts: 194
Can you post the <Directory>, and DocumentRoot sections of your httpd.conf file?
__________________
Dell Inspirion 1520
Intel® Pentium® Dual-Core Mobile Processor T2370
4GB, DDR2, 667MHz
250GB 5400RPM SATA Hard Drive
Intel Integrated Graphics Media Accelerator 3100
Dell Wireless 1395 802.11g Mini Card

My tech blog(s):
http://blog.biggsenterprises.net

:eek:
Reply With Quote
  #17  
Old 24th November 2008, 08:02 PM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
Thanks for your continued willingness to help me solve my problem, when we get this working I will turn it into a tutorial, configuring Apache isn't easy, and having followed many links, I'm not the only one who has had this problem.

this one:
<Directory "/home/chris/Public/www">
or this one:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

DocumentRoot "/home/chris/Public/www"

Chris
Reply With Quote
  #18  
Old 24th November 2008, 08:13 PM
LLS
Guest
 
Posts: n/a
Try
Code:
ls -lZ /chris/public/www/
Code:
ls -lZ /chris/Public/www/
or
Code:
ls -lZ chris/public/www/
Code:
ls -lZ chris/Public/www/
Reply With Quote
  #19  
Old 24th November 2008, 08:23 PM
biggsk's Avatar
biggsk Offline
Registered User
 
Join Date: Aug 2007
Location: The Bay, Florida
Age: 31
Posts: 194
Change
<Directory "/home/chris/Public/www">

to <Directory />
So it looks like this:
Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
Leave the DocumentRoot as is:

DocumentRoot "/home/chris/Public/www"

Restart the apache service.
Then try to access the site.
__________________
Dell Inspirion 1520
Intel® Pentium® Dual-Core Mobile Processor T2370
4GB, DDR2, 667MHz
250GB 5400RPM SATA Hard Drive
Intel Integrated Graphics Media Accelerator 3100
Dell Wireless 1395 802.11g Mini Card

My tech blog(s):
http://blog.biggsenterprises.net

:eek:
Reply With Quote
  #20  
Old 24th November 2008, 08:49 PM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
Thanks LLS, here are the results:

[chris@webserver ~]$ su
Password:
[root@webserver chris]# ls -lZ /chris/Public/www/
ls: cannot access /chris/Public/www/: No such file or directory
[root@webserver chris]# exit
exit
[chris@webserver ~]$ ls -lZ /chris/Public/www/
ls: cannot access /chris/Public/www/: No such file or directory
[chris@webserver ~]$ ls -lZ chris/Public/www/
ls: cannot access chris/Public/www/: No such file or directory
[chris@webserver ~]$ su
Password:
[root@webserver chris]# ls -lZ chris/Public/www/
ls: cannot access chris/Public/www/: No such file or directory
[root@webserver chris]#


Chris
Reply With Quote
  #21  
Old 24th November 2008, 08:57 PM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
biggsk, I did as you suggested, sorry to say, still no go.

Chris

Last edited by chrisk; 24th November 2008 at 09:33 PM.
Reply With Quote
  #22  
Old 24th November 2008, 09:50 PM
biggsk's Avatar
biggsk Offline
Registered User
 
Join Date: Aug 2007
Location: The Bay, Florida
Age: 31
Posts: 194
who is the owner of the /home/chris/Public/www.

paste output of:
Code:
ls -l /home/chris/Public/
__________________
Dell Inspirion 1520
Intel® Pentium® Dual-Core Mobile Processor T2370
4GB, DDR2, 667MHz
250GB 5400RPM SATA Hard Drive
Intel Integrated Graphics Media Accelerator 3100
Dell Wireless 1395 802.11g Mini Card

My tech blog(s):
http://blog.biggsenterprises.net

:eek:
Reply With Quote
  #23  
Old 25th November 2008, 12:27 AM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
Hi biggsk,

[chris@webserver ~]$ ls -l /home/chris/Public/
total 4
drwxr-xr-x 2 chris chris 4096 2008-11-24 09:24 www
[chris@webserver ~]$

Chris
Reply With Quote
  #24  
Old 25th November 2008, 01:13 AM
biggsk's Avatar
biggsk Offline
Registered User
 
Join Date: Aug 2007
Location: The Bay, Florida
Age: 31
Posts: 194
Ok. Try this:

Code:
chown apache /home/chris/Public/www
Code:
chgrp apache /home/chris/Public/www
Code:
service httpd restart
Try to access your site.
__________________
Dell Inspirion 1520
Intel® Pentium® Dual-Core Mobile Processor T2370
4GB, DDR2, 667MHz
250GB 5400RPM SATA Hard Drive
Intel Integrated Graphics Media Accelerator 3100
Dell Wireless 1395 802.11g Mini Card

My tech blog(s):
http://blog.biggsenterprises.net

:eek:
Reply With Quote
  #25  
Old 25th November 2008, 03:40 AM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
Thanks again, biggsk:

[chris@webserver ~]$ chown apache /home/chris/Public/www
chown: changing ownership of `/home/chris/Public/www': Operation not permitted
[chris@webserver ~]$ su
Password:
[root@webserver chris]# chown apache /home/chris/Public/www
[root@webserver chris]# chgrp apache /home/chris/Public/www
[root@webserver chris]# service httpd restart
bash: service: command not found
[root@webserver chris]#

I saw that before issuing that command, I'll reboot.

Chris
Reply With Quote
  #26  
Old 25th November 2008, 03:49 AM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
Hi biggsk,

I rebooted, saw a message flash by saying something about directory without matching directory, hit the pause button, which didn't stop the boot, still no go.

Chris
Reply With Quote
  #27  
Old 25th November 2008, 12:28 PM
biggsk's Avatar
biggsk Offline
Registered User
 
Join Date: Aug 2007
Location: The Bay, Florida
Age: 31
Posts: 194
as root do:
Code:
/sbin/service httpd restart
Paste error messages here.
__________________
Dell Inspirion 1520
Intel® Pentium® Dual-Core Mobile Processor T2370
4GB, DDR2, 667MHz
250GB 5400RPM SATA Hard Drive
Intel Integrated Graphics Media Accelerator 3100
Dell Wireless 1395 802.11g Mini Card

My tech blog(s):
http://blog.biggsenterprises.net

:eek:
Reply With Quote
  #28  
Old 25th November 2008, 03:07 PM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
[chris@webserver ~]$ su
Password:
[root@webserver chris]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 337 of /etc/httpd/conf/httpd.conf: </Directory> without matching <Directory> section
[FAILED]
[root@webserver chris]#
Reply With Quote
  #29  
Old 25th November 2008, 03:30 PM
chrisk Offline
Registered User
 
Join Date: Nov 2008
Location: Surrey, BC
Posts: 33
I edited the httpd.conf file, restoring

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

back to <Directory "/home/chris/Public/www"> and performed /sbin/service httpd restart

got an error SELINUX AVC denial message: SELinux is preventing the httpd from using potentially mislabeled files (./Public).
Allowing Access: You might want to relabel the entire directory using restorecon -R -v './Public'.

[root@webserver ~]# restorecon -R -v './Public'
[root@webserver ~]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 281 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
[root@webserver ~]#
Reply With Quote
  #30  
Old 25th November 2008, 03:35 PM
Jordanlw Offline
Registered User
 
Join Date: Nov 2008
Posts: 30
Remove the / in <Directory />
And put It back to what you were recommended to do earlier.

(Having a slash in a function closes It making </Directory> useless hence the error)
Reply With Quote
Reply

Tags
apache, configuration

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux/Apache Configuration Madeye Servers & Networking 1 23rd February 2011 10:48 PM
SSL and Apache configuration problem rawand Servers & Networking 2 2nd September 2009 09:05 AM
cgi-perl and apache configuration venu Programming & Packaging 2 14th November 2008 12:51 PM
Apache configuration question leaded Servers & Networking 2 30th August 2006 08:05 PM


Current GMT-time: 00:55 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat