Results 1 to 6 of 6

Thread: [RESOLVED]Access denied on my own localhost?

  1. #1

    Thread Starter
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    Resolved [RESOLVED]Access denied on my own localhost?

    Hi,

    I always had problem setting up apache and php(and mysql) but this time it was different. I installed an older version of Apache from downloads archive but it gave me an error in command prompt application and no services were running in Apache.

    So I downloaded the newest versions of Apache and PHP and made the necessary configurations to httpd.conf and php.ini. localhost directory successfuly works(I see a congrats message of Apache)but when I try to open any PHP file or folder under that directory I get HTML 43 Error(You are not authorized to view this page).

    Any help would be appreciated.


    P.S. Other files(jpg, txt,...) can be viewed
    Attached Files Attached Files
    Last edited by kill_bill_gates; Sep 10th, 2006 at 07:17 AM. Reason: added php.ini and httpd.conf
    "Quis custodiet ipsos custodes?"
    Juvenal
    Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
    I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
    -=Joey Jordison R0CKS!! =-

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Access denied on my own localhost?

    You need to add a Directory container with allow permissions.

    Code:
    <Directory C:/php>
      allow from all
    </Directory>

  3. #3

    Thread Starter
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    Re: Access denied on my own localhost?

    where should I add it?
    "Quis custodiet ipsos custodes?"
    Juvenal
    Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
    I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
    -=Joey Jordison R0CKS!! =-

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Access denied on my own localhost?

    At the bottom of httpd.conf

  5. #5

    Thread Starter
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    Re: Access denied on my own localhost?

    Thanks a lot. You're my savior. I've been working on it for a few days now and all I could find on the net was: Apache Server 2.2.3 is incompatible with PHP 5.
    Thanks a lot again
    "Quis custodiet ipsos custodes?"
    Juvenal
    Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
    I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
    -=Joey Jordison R0CKS!! =-

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Access denied on my own localhost?

    Quote Originally Posted by kill_bill_gates
    all I could find on the net was: Apache Server 2.2.3 is incompatible with PHP 5.
    Might explain why I couldn't get the bugger to work as a SAPI module. Only as CGI.

    No problem.

Posting Permissions

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



Click Here to Expand Forum to Full Width