SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    403 Forbidden Problem

    I have a PHP page which I can add/edit/delete entries in a database, via a form. Depending on if is an edit or new entry, there are different buttons available (i.e.: delete, update, add).

    In the form, I am using the $_SERVER['PHP_SELF'] for the form's action. I can add a new entry from scratch or update and amended an entry without trouble. But when I either try to delete an entry outright or publish an existing entry (move it from one table to another and delete entry from temporary table), I get the forbidden message: "You don't have permission to access /finish_blog.php on this server."

    My web host offers ControlMaestro and I am not fluent in chmod settings. From the control panel, my permissions are:

    Owner - read, write, execute
    Group - read
    Others - read



    Mods: I don't think this is a PHP problem, so I posted it here.

  2. #2
    SitePoint Wizard cmuench's Avatar
    Join Date
    Jul 2005
    Location
    At my computer
    Posts
    2,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Stupid question but is finish_blog.php the page that does the add, edit, delete stuff? Do you ssh access to the machine?

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, blog_finish.php is the same page. I have included the PHP above the HTML.

    Under the ControlMaestro's info panel, this is what is shown

    Development Tools
    OpenSSH Secure Shell
    Telnet


    (all have green checkmarks).

    I am not sure if it matters, but this is a subdomain. Each page in the sub requires a valid session. I tried the page w/o the session validation, but I still got the 403.

    Originally this page worked. Suddenly the functions with "delete" stopped working. Although once, the entry was deleted but not transfered to the other table.

  4. #4
    SitePoint Wizard cmuench's Avatar
    Join Date
    Jul 2005
    Location
    At my computer
    Posts
    2,251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would reissue the permissions to the mysql user. sounds like the delete permission got taken away.

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2005
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I posted a question in the MySQL section. Thanks for your help.


Bookmarks

Posting Permissions

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