I have installed 4.2.0 on Windows and I am getting a "You are not authorized to access this page" error when I click on index.php. I ran 4.1.0 on the same machine and did not have any problem. Any help is appreciated.

Jacob

Comments

topogijo’s picture

Hi Jacob,

Read these forums and see if it helps;

http://drupal.org/node/view/1412
http://drupal.org/node/view/2198

Regards.

jacobhatt’s picture

Tried the information in both links, but it did not work. It is something to do with $base_url. This variable does not seem to be used at all in version 4.1 (you can run Drupal even with a wrong value for this variable), although the documentation instructs you to set it up, but it is needed by various files in 4.2. Thanks.

Anonymous’s picture

Just to add, that the problem is with particular PHP files, so it is not an Apache or IIS access configuration issue. For instance, index.php generates this access error, but update.php works fine when accessed directly by the browser. I would appreciate any suggestion to solve this problem. Thanks.

Jacob

jacobhatt’s picture

It seems that the problem that I am having has nothing to do with the configuration of the web server. Apache can run test PHP files when placed anywhere in the Drupal folder. It can also run some Drupal PHP files, such as update.php, but not others, such as indexs.php. I hope this helps in suggesting a solution. Thanks.

Jacob