A Neeewbie in need of help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Rizogue
Forum Newbie
Posts: 4
Joined: Thu Jul 25, 2002 9:16 am

A Neeewbie in need of help.

Post by Rizogue »

I am very new at this, so any of you long-time hardcore PHP users may find my lack of ability/ knowledge humorous, but I am having a problem that the documentation has not solved yet.

I have PHP unpacked and installed, and I have configured the few settings in my .ini file the way I assumed they should be. I followed the directions for updating my registry to recognize php files. I have given my script directory full access to everybody, and even set my PHP directory to allow execution access. I have installed MySQL and am in the process of running the config.php that came with some forum software that I am trying to install (phpbb right now, but I have tried 3 with the following results.)

But I still get "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 there is something really stupid I am overlooking, please be gentle...

I made sure that the propoerties to the .php files were set to open with php.exe, and it looks like it is.

Any help would be great.


-Rizogue


Help me PHP-Guru-Kenobi, you are our only hope... :roll:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Which webserver are you using?

Mac
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

I'm totally lost except for one thing that just popped into my head. Is that
You are not authorized to view this page
error a string that is being echoed by the phpbb config file or something else it may be including when it runs?

Wait a second! Why would anyone want to view a config file? Have you tried running any other pages? Try creating a php page like ...

Code: Select all

<?php
phpinfo()
?>
If you see tons of configuration information after running this script, then everything is working.

Later on,
BDKR
Rizogue
Forum Newbie
Posts: 4
Joined: Thu Jul 25, 2002 9:16 am

Post by Rizogue »

I got a simple math php that was reported to work, (some addition script) and it gave me the same exact error, so it must not be something specific to the phpbb. I even put it in a different folder within my inetpub directory.

I am running Win2000 Server and IIS.


I will try to see if the phpinfo works and let you know ASAP.

Thanks for the quick responses.

-Rizogue
Rizogue
Forum Newbie
Posts: 4
Joined: Thu Jul 25, 2002 9:16 am

Post by Rizogue »

OK.

I saved the script on my server, and tried it and got a:

HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services

It is located at http://204.251.182.252/menzoberranzan/phpinfo.php

In case that will help...

Thanks again,
-Rizogue
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

that's an error message from IIS, not PHP. If you save an HTML file in that directory can you see it?
Rizogue
Forum Newbie
Posts: 4
Joined: Thu Jul 25, 2002 9:16 am

Post by Rizogue »

Yes, it does. I just tried putting an index.html in there, and it comes up fine.

When installing PHP, it gave an error that an OCX was missing when I chose IIS4+ as my Internet Manager, and said I need to configure it manually, which I may not have done completely.

-Rizogue
gnu2php
Forum Contributor
Posts: 122
Joined: Thu Jul 11, 2002 2:53 am

Post by gnu2php »

What if you set the permission settings of each individual file in the directory to 0777?

Also, the PHP script you need to execute for PhpBB is index.php, if I remember correctly, and not config.php (I recently installed the forum on my website). Plus, the permission settings for config.php should be set to 0777, and then to 0755 when you're done--according to the docs/install.html page.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

gnu2php wrote:What if you set the permission settings of each individual file in the directory to 0777?
Since he's on Windows it's unlikely that the files would need to be or could be chmoded.
Rizogue wrote:When installing PHP, it gave an error that an OCX was missing when I chose IIS4+ as my Internet Manager, and said I need to configure it manually, which I may not have done completely.
Did you follow all the steps in the installation section of the manual which correspond to your OS and webserver?
http://www.php.net/manual/en/installation.php
http://www.php.net/manual/en/install.windows.php
http://www.php.net/manual/en/install.iis.php

Mac
gnu2php
Forum Contributor
Posts: 122
Joined: Thu Jul 11, 2002 2:53 am

Post by gnu2php »

twigletmac wrote:Since he's on Windows it's unlikely that the files would need to be or could be chmoded.
Good point. I misunderstood because Rizogue said, "I have given my script directory full access to everybody, and even set my PHP directory to allow execution access," and I figured he was using chmod. I don't suppose there's a way to set individual files to allow full access, is there?
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

On win2k there are per-file permissions, so it is possible that the file is still locked if she created it after setting the directory permissions....
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If HTML files are working and no PHP files are isn't it more likely that the webserver hasn't been correctly configured to allow PHP files to be run?

Mac
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

I agree, just thought I'd point out that win2k has file permissions (only took microsoft 10 years to get that down)
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

only took microsoft 10 years to get that down
and I'm sure if you asked they'd tell you it was their own innovation too...

Mac
daemorhedron
Forum Commoner
Posts: 52
Joined: Tue Jul 23, 2002 11:03 am

Post by daemorhedron »

twigletmac wrote:
only took microsoft 10 years to get that down
and I'm sure if you asked they'd tell you it was their own innovation too...

Mac
lol!
Post Reply