Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default Quick Linux Question.

    Hi!

    Basically, Running a CentOS Sever, trying to get phpmyadmin running, but, here is the catch.

    I have installed it all, and phpmyadmin is installed in:
    Code:
    /usr/share/phpmyadmin
    When I go to myip/phpmyadmin I get a 403 Error.

    The owner of all the files is root, but I have disabled root access, what do I need to do to fix it?

    I followed this guide: http://www.howtoforge.com/installing...entos-6.2-lamp

    I did everything apart from change the cookie to http as I don't have access to that due to permissions, how can I fix it?

    P.S What hardening do you recommend? I have changed the SSH Port, Disabled root, installed csf, not sure what else I should do really.

  2. #2
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Root shouldn't own them, the user running the webserver server won't be able to access them.

    EDIT: Also, your web server logs in /var/log/ can help you here.

    tail -f /var/log/httpd.xxx.whatever

    then reload the page you're getting 403 on to see the errors.
    Last edited by Recursion; 30-09-2012 at 07:10 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by Recursion View Post
    Root shouldn't own them, the user running the webserver server won't be able to access them.

    EDIT: Also, your web server logs in /var/log/ can help you here.

    tail -f /var/log/httpd.xxx.whatever

    then reload the page you're getting 403 on to see the errors.
    How can I change them from root though?

    I don't have permission to get into /var/log/httpd


  4. #4
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Put sudo before the command to get temporary root.

    Also I assume your HTTPd group is www-data, so do:

    Code:
    chown -R root:www-data /directory/for/phpmyadmin/files
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  5. #5
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by Recursion View Post
    Put sudo before the command to get temporary root.

    Also I assume your HTTPd group is www-data, so do:

    Code:
    chown -R root:www-data /directory/for/phpmyadmin/files
    Code:
    chown: invalid group: `root:www-data'
    Nope, lmao, says root root for everything in filezilla.

  6. #6
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by Jackabee View Post
    Code:
    chown: invalid group: `root:www-data'
    Nope, lmao, says root root for everything in filezilla.
    Okay, got past that, new issue;

    Existing configuration file (./config.inc.php) is not readable.

    ---------- Post added 01-10-2012 at 12:02 AM ----------

    And I fixed it, somehow, meh, thanks for trying to help.

Posting Permissions

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