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

24th November 2008, 07:41 PM
|
 |
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:
|

24th November 2008, 08:02 PM
|
|
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
|

24th November 2008, 08:13 PM
|
|
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/
|

24th November 2008, 08:23 PM
|
 |
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:
|

24th November 2008, 08:49 PM
|
|
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
|

24th November 2008, 08:57 PM
|
|
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.
|

24th November 2008, 09:50 PM
|
 |
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:
|

25th November 2008, 12:27 AM
|
|
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
|

25th November 2008, 01:13 AM
|
 |
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:
|

25th November 2008, 03:40 AM
|
|
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
|

25th November 2008, 03:49 AM
|
|
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
|

25th November 2008, 12:28 PM
|
 |
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:
|

25th November 2008, 03:07 PM
|
|
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]#
|

25th November 2008, 03:30 PM
|
|
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 ~]#
|

25th November 2008, 03:35 PM
|
|
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)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 00:55 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|