By smallya on
I am trying to Install Drupal 5.0 on CentOS and I am having problems getting the install.php to run. I am using the document http://drupal.org/node/260 as the reference. I am in step 3 of the Installation Steps. "To run the install script ...."
I am trying to run the install.php from the browser (http://localhost:/install.php) and I keep getting the "You dont permission to access /install.php on this server". A 403 error.
I did not install any new apache instance for Drupal. I am using the one that came with CentOS.
Is there any setup I should be doing in Apache to allow php to run? I ran a simple index.html and that seems to work fine.
Any help is appreciated.
Comments
Try to rename Drupal's
Try to rename Drupal's .htaccess file to get it out of the way.
If this works, you will probably need to change "AllowOverride None" to "AllowOverride All" in your httpd.conf and restart Apache to be able to use the .htaccess file.
Still not working
Thanx for the suggestion cog.rusty.
I tried it but it still does not seem to like it. the index.html seems to work fine but the index.php or install.php is not. I even tried putting the index.php as the DocumentIndex in the Apache httpd.conf. Still no luck.
I have a strong suspicion that the php modules are not getting loaded for some reason. Any help is appreciated.
You mean DirectoryIndex...
You mean DirectoryIndex... yes, Drupal's .htaccess should have taken care of it if you had AllowOverride All...
Can you run any php script at all? For example anything like
<?php echo "I am a PHP script"; ?>Running PHP
Yes from the command line I can run the "I am a PHP script" but from the browser it does not seem to work. Here is something more I saw happening
if I had the .htaccess file under /var/www/html directory and had a DirectoryIndex in httpd.conf say - welcome.html the browser does not pick it up when I have http://localhost:8080/welcome.html as the url or just http://localhost:8080
that establishes the fact that the AllowOverride All is working and it is recognizing the .htaccess file.
I also checked the error_log of apache and I see error saying - "/var/www/html/.htaccess pcfg_openfile: Unable to check .htaccess file, ensure it is readable." despite my having /var/www/html/.htaccess file with setting of 777
Confusing... and also
Confusing... and also http://localhost:8080/welcome.html should work, no matter what DirectoryIndex says.
The .htaccess file can be 644, but is the www/html directory readable as well? (at least 755?).
.htaccess issue
yes. .htaccess is 777. All other files are 755
Possible solution
Hi, I had the same problem, until I found this:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch20_:_T...
Turns out that if SELinux is enabled, you also need to consider the security context of the web pages.