Results 1 to 4 of 4
Where can I find the Apache logs in Fedora 10. I am getting a permissions error concerning a test.html page I put into /var/www/html. This is my first LAMP system ...
- 12-23-2009 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 33
apache logs and permissions on a file
Where can I find the Apache logs in Fedora 10. I am getting a permissions error concerning a test.html page I put into /var/www/html. This is my first LAMP system I have ever set up. So, if there are basic things, I probably do not know what they are. I google to find out what I can. I tried to set the permissions on the test.html file:
chmod 777 test.html
This did not help.
Any ideas as to where I can find the Apache logs?
And, what I need to do for the permissions.
- 12-23-2009 #2Just Joined!
- Join Date
- Dec 2009
- Posts
- 33
domain name
I think I need a domain name.
I tried this from a site I found:
echo localhost > /etc/hostname
/bin/hostname -F /etc/hostname
/etc/init.d/httpd restart
I saw this:
Stopping httpd: [ OK ]
Staring httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ]
I still cannot access this page:
localhost/ test.html
I put test.html into /var/www/html
The permissions are 777
chmod 777 test.html
- 12-23-2009 #3Just Joined!
- Join Date
- Dec 2009
- Posts
- 33
Tried restorecon
I tried this to access my test.html page:
> su
>cd /var
> cd www
> cd html
> restorecon -v './test.html'
and I got a message:
'restorecon reset ./test.html context unconfined_u:object_r:user_home_t:s0->system_u:object_r:httpd:_sys_content_t:s0'
so I restarted apache
> service httpd restart
I saw this still:
'Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ]'
I still cannot open the web page
localhost/test.html ( with the http of course, but I cannot post that until after 15 posts in this forum )
or
127.0.0.1/test.html ( with the http of course, but I cannot post that until after 15 posts in this forum )
- 12-23-2009 #4Just Joined!
- Join Date
- Dec 2009
- Posts
- 33
Ok, so I moved the file from /var/www/html into /home/www and then back into /var/www/html and I could hit the test.html file. Now, I cannot hit the php file. I tried the same trick, but it did not help. I am wondering why moving the test.html file around would make it now be viewable in Firefox?


Reply With Quote