Community & Support

Cannot install: index.php opens but does not "execute" - SOLVED (for now...)

Dear all,

I am using FreeBSD 8.0 to set up a Drupal based website (using drupal 6.17). I have successfully installed Apache 2.2, Php 5.2, and MySql 6.0.
I followed all of the INSTALL and INSTALL.mysql directions until it asks me to point my browser to the root directory of my server where drupal files are located.. and there it just opens index.php but does not start any installation like it is supposed to...

What should I do now? I've tried all versions of every components with no success (apache 2.0, mysql 5.4, etc...)

Comments

_

Try pointing the browser to http://yoursite.com/install.php

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Re

I did but it also just opened the install.php file... Doesn't "execute" it.

Geoffroy Lesage

_

Then something's wrong with the stack above drupal or maybe with browser configuration. Sorry I've no clue. acquia has a stack installer for ubuntu/debian, no clue about freebsd.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Re

Thanks for quick response though (:

For info for other people: I've tried to access it (From my Host Main Os Windows 7 Pro) with Firefox (my main browser) but also Internet Explorer and Chrome, as well as firefox from a ubuntu virtual machine.
Btw, I run FreeBSD from a Virtual Machine in Vmware, Bridged to the network.. I have no problems accessing it though, SSH, FTP, apache works and everything..

Geoffroy Lesage

Nope

I have successfully installed Apache 2.2, Php 5.2, and MySql 6.0.

No, you have not. Not if a php file is being displayed instead of being processed.

Go back to your Apache configuration and make sure that the appropriate changes have been made in your httpd.conf file (or perhaps a more specific file in a conf.d directory), and that the webserver process has been restarted so that it reads the changes. In particular, there should be an AddHandler directive for php, and a DirectoryIndex directive for index.php.

And you should not be using MySQL 6, which has been withdrawn.

Ok thanks!

Ok thanks, so I will try to reinstall with mysql 5.4 again properly.. but in case thats not the issue-
Concerning the AddHandler, when I:

grep AddHandler httpd.conf

Gives me -->

#AddHandler cgi-script .cgi
#AddHandler type-map var

Should I add one for php files? What would be the syntax?

PS: I do not have any conf.d directories in my system... what should I look for? /etc/defaults/rc.conf? There are alot of options there but I do not know which one to uncomment or change... I don't want to mess the server config up...

(Thanks for quick response too!)

Geoffroy Lesage

Ok.. but

Now thers a new problem..

Thanks alot though because the problem was indeed the php settings and mysql version!
I restarted and installed Mysql 5.4, and added an AddType in the mod_mime.c IfModule:

IfModule mod_mime.c

*other stuff*
AddType application/x-httpd-php .php
*other stuff*

/IfModule

But Now when I get to the page it tells me : The mysql error was: Access denied for user 'xxx'@'localhost' (using password: YES).

But I did grant all privileges on all databases to user xxx

Geoffroy Lesage

Sounds like ...

Sounds like you've solved your basic Apache configuration issues; you are processing PHP, you are connecting to the database, and you're being told that you supplied the wrong password.

Be certain that you properly formatted your grant statement and that you did a FLUSH PRIVILEGES, and be certain that you are telling Drupal the matching username and password.

See http://drupal.org/getting-started/6/install/create-database

Directory

I think I did it right:
GRANT ALL PRIVILEGES ON drupal.* TO 'xxx'@'localhost' IDENTIFIED BY 'xxx';
FLUSH PRIVILEGES;

It tells me query OK so should be good... I'm using root to do this (mysql -u root -p)

Maybe the problem is that I havn't got my files at the right place: I dumped all the drupal files including .htaccess in my server's root directory (/usr/local/www/data/) NOT in a separate folder called drupal. I know I can access it because when I direct my browser to http://xxx/sites then I see the default and all folders...

Then I also moved my mysql databases to this location and changed the option in my.cnf :
[mysql_safe]
datadir = /usr/local/www/data/

Should I change the owner of the drupal database folder to www?
I granted read and write privileges by doing chmod o+w drupal
Also did that to /sites/default/settings.php and /sites/default

Thanks for the help...

PS: The page that tells me the error is the base page : http://172.30.250.70/ which is my server domain, my internal IP...

Geoffroy Lesage

But Now when I get to the

But Now when I get to the page it tells me : The mysql error was: Access denied for user 'xxx'@'localhost' (using password: YES).

What page?

Make sure to follow INSTALL.txt; do not edit settings.php yourself.

settings.php

do not edit settings.php yourself.

Wait, what? I've always edited settings.php myself.

-Karlheinz

I have

Yes, I have edited settings.php because you have to set the database user and password...

Should I not do that?

-edited-
OK that was it.. I recommented the line that I uncommented to add the user and password and now it seems to work!!

Geoffroy Lesage