I am not a web designer (yet), I have only built one site using Komposer, feedback script from thesitwizard.com, and Single File PHP Gallery. I am trying to learn Drupal so I can eventually rebuild my family site and set up an Ecommerce site.

I have followed the instructions on the site https://help.ubuntu.com/community/Drupal . When I get to the step “Complete Drupal Installation through a Browser
Point your browser to localhost/drupal/install.php, create an account, login, and follow the installation instructions to finish loading the database and configuring the site. “
Firefox shows the pop-up dialog box Open with or save file.

Can someone please tell me what I have done wrong and how to fix it.

Comments

morganchad’s picture

It sounds like the php file is not being recognized as a php file.

You need to make sure that you have a line like this in your Apahce configuration
AddType application/x-httpd-php .php .phtml .php3

This links any .php .phtml or .php3 file to PHP.

I'm not sure where this is in Ubuntu, but in Debian, the file you need to edit is
/etc/apache2/mods-available/php5.conf

It's often found in an apache.conf or httpd.conf file.

You can find it by running
grep AddType * -R
from your apache configuration directory.

Assuming it isn't there, add it, then restart apache and you should be good to go.

gumbo’s picture

thanks for the speedy response.

i would post the contents of “/etc/apache2/mods-available/php5.conf” and
"/etc/apache2/httpd.conf" but I dont know how to post snipets of code.

the line you refered to was already in the php5.conf

I restarted apache2 anyway and it still does not work.

morganchad’s picture

Look in /etc/apache2/mods-enabled

make sure there are links in that directory to all of the files starting with php5.* (I'm pretty sure it is php5.load and php5.conf but it could another file).

The necessary configuration option isn't getting into your apache configuration if the module isn't loaded.

gumbo’s picture

here is what is in /etc/apache2/mods-enabled

alias.conf
alias.load
auth_basic.load
authn_file.load
authz_default.load
authz_groupfile.load
authz_host.load
authz_user.load
autoindex.conf
autoindex.load
cgi.load
deflate.conf
deflate.load
dir.conf
dir.load
env.load
mime.conf
mime.load
negotiation.conf
negotiation.load
rewrite.load
setenvif.conf
setenvif.load
status.conf
status.load
vhost_alias.load

here is the results of "grep php *" on the files

/etc/apache2/mods-enabled/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

morganchad’s picture

It looks like your problem is that the module for php5 is not being loaded into apache.

You need to create sym links in mods-enabled to the relevant files in mods-available.

Navigate to your mods-enabled directory and execute
ln -s ../mods-available/php5.conf php5.conf
which will create a symbolic link in mods-enabled back to mods-available

There is one other file. I can't remember the filename but I think it's php5.load
Figure out the name of this file in mods-available and repeat the process above.

Then restart apache.

You should be good to go.

gumbo’s picture

I'm sorry to have to post this but I followed the instructions above and still have no luck.

Do you have any other ideas?

Thanks for your patients

p.s. it was the php5.load file

morganchad’s picture

1. I probably should've asked this first, but do you have any other PHP applications that run properly on this server or is the first you've tried to use.

2. Run
apache2ctl -t -D DUMP_MODULES

and paste the output

gumbo’s picture

this is on my main laptop. I am just setting up a localized enviroment so I can study Drupal. As far as other PHP applications running, I don't know. Do you have any suggestions for programs I can try?

[Fri Feb 05 15:41:26 2010] [warn] NameVirtualHost *:0 has no VirtualHosts
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
vhost_alias_module (shared)
Syntax OK

morganchad’s picture

If it was, there would be a line that says
php5_module (shared)

Double check that the links were created in /etc/apache2/mods-enabled because that is probably where the problem lies. While Ubuntu is very similar to Debian, I'm not sure if it's exactly the same and I'm basing my comments of Debian and not Ubuntu.

This is not a Drupal problem because at this point, you still have not yet met the minimum requirements of getting Apache and PHP working before trying to install Drupal. The problem you are experiencing will apply to any PHP application you try use.

Since I'm not familiar with Ubutnu and there the Drupal community uses a variety of platforms, your best approach at this point is to consult an Ubuntu forum. The appropriate topic would be something related to Apache or PHP.

Good luck.

gumbo’s picture

Thank You for all of your help and pointing me in the right direction. I found the information I needed at this site https://help.ubuntu.com/community/ApacheMySQLPHP

Again Thank You