Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Dec 2009
    Posts
    33

    Thumbs up 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.

  2. #2
    Just 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

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    33

    Unhappy 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 )

  4. #4
    Just 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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...