Page 1 of 2

A Neeewbie in need of help.

Posted: Thu Jul 25, 2002 9:16 am
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:

Posted: Thu Jul 25, 2002 9:24 am
by twigletmac
Which webserver are you using?

Mac

Posted: Thu Jul 25, 2002 9:28 am
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

Posted: Thu Jul 25, 2002 10:54 am
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

Posted: Thu Jul 25, 2002 11:03 am
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

Posted: Thu Jul 25, 2002 11:07 am
by llimllib
that's an error message from IIS, not PHP. If you save an HTML file in that directory can you see it?

Posted: Thu Jul 25, 2002 11:47 am
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

Posted: Thu Jul 25, 2002 1:22 pm
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.

Posted: Fri Jul 26, 2002 1:45 am
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

Posted: Fri Jul 26, 2002 2:33 am
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?

Posted: Fri Jul 26, 2002 7:36 am
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....

Posted: Fri Jul 26, 2002 7:39 am
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

Posted: Fri Jul 26, 2002 7:48 am
by llimllib
I agree, just thought I'd point out that win2k has file permissions (only took microsoft 10 years to get that down)

Posted: Fri Jul 26, 2002 7:51 am
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

Posted: Sat Jul 27, 2002 3:29 am
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!