Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

You are not authorized to view this page

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

You are not authorized to view this page

Postby bpw » Tue Oct 26, 2004 8:03 am

I have struggled for 2 days to get Apache, PHP and MySQL set up on Windows XP. The problem is that I get the message "You are not authorized to view this page" when I try to access a PHP page. I have experimented with permissions (even giving full control to everyone), and I have made various mods to the php.ini and httpd.conf files, as advised in tutorials, but it makes no difference.

XP SP2
Apache 2.0.52 - working ok
MySQL 4.0.21 - working ok
PHP 5.0.2 (installer)

This type of problem appears quite regularly on forums, but I haven't seen the answer. Am I missing something simple?

Paul (about to give up!)
:shock:
bpw
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Oct 26, 2004 7:50 am
Location: Warrington, England

Postby swirlee » Tue Oct 26, 2004 8:35 am

What is the exact text of the message in its entirety? Is it a PHP message or an Apache message, or maybe something else entirely? Are you sure Apache is running on the port you want it running on? What address are you typing into your address bar? What is the content of your PHP script? Have you tried running it from the command line?
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby Redcircle » Tue Oct 26, 2004 3:47 pm

one of the problems is you used the installer. Which will install as a CGI. If you are using apache you want to use the module which is a manual install.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby bpw » Wed Oct 27, 2004 7:39 am

The complete message is:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.
--------------------------------------------------------------------------------
If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page.

You can click Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer

I am trying to run the <?php phpinfo() ?> function. The file (test.php) is in the htdocs folder. If I type 'http://localhost/' I get the Apache confirmation screen. If I type 'php-cgi -i' at the command prompt, I get the expected PHP info. If I type 'http://localhost/test.php', I get the above message?

Any ideas? I appreciate your help.

Paul
bpw
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Oct 26, 2004 7:50 am
Location: Warrington, England

Postby ruturajv » Wed Oct 27, 2004 7:14 pm

I recommend you to first install php with the zip package that you receive ie. as a module of apache.
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby bpw » Thu Oct 28, 2004 6:29 am

Got it! Although I've almost forgotten why I was trying to install it in the first place!

You were right, Redcircle and ruturajv. I uninstalled PHP, unzipped the PHP files to the C drive, put a fresh copy of php.ini in the Windows folder, got a fresh copy of httpd.conf, followed the manual installation instructions at php.net, restarted Apache, and there is was!

Thanks for your help.
bpw
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Oct 26, 2004 7:50 am
Location: Warrington, England


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.