By moistTowelette on
This is probably going to be the stupidest question ever posted, but I'm confused.
I have followed the installation text to the letter, I have both mysql and Apache up and running fine. My question is - now what? Typing 'localhost' into my browser brings up the Apache placeholder page, there's nothing in the installation instructions that would alter this and I can't understand why not. All there seems to be in my /var/www/ directory is a bunch of php scripts. What do I do? How do I start? Am I misunderstanding what Drupal even is??
Comments
More info
Can you give more information like:
- Did you install Drupal to /var/www or a subdirectory?
- Assuming you installed it to /var/www what happens when you type localhost/index.php?
- What is your Apache version and OS?
The Apache placeholder page comes with a fresh apache install. If you can find a line like this in your Apache configuration file make sure it is commented:
I don't know other linux versions but for Debian the file is under /etc/apache2/sites-available
May be before trying to install Drupal, first try to put a simple index.html file in your /var/www and try to view that file when you type localhost.
Okay sorry about the
Okay sorry about the vagueness of the first post, I've played around with it a bit, now I'm more familiar with the program and I know what the problem is. However I still can't figure out how to fix it...
I installed Drupal straight to /var/www/. I'm running Apache v1.3.33 on Debian Sarge. The problem occurs when I put http://localhost/index.php into my browser, the browser simply tries to download the PHP file. I believe this has to do with configuring Apache to handle PHP scripts, so I did 'apt-get install libapache-mod-php4' and added the following lines to the relevant sections of /etc/apache/httpd.conf:
Even after restarting Apache with the new lines included, it seems to make no difference. I'm confused...
Looking at the way some people install Apache from source, they seem to add a flag when doing 'make' which builds in compatibility for PHP. I installed Apache using apt-get - should this matter?
Thanks for all your patience.
Right direction
OK now we are getting somewhere. You are right, the problem seems to be Apache's handling of php scripts. Unfortunately I am using apache2 and php5 so I can't give more direct advice which will suit your setup. I looked at my files and the above lines seem correct:
Did you make sure that libphp4.so exists in the /usr/lib/apache/1.2 directory? Also check /etc/php4 directory, I think there should be an apache subdirectory in it which contains the related php.ini. In general, apt-get is the best way to install modules in Debian. There are meta packages php4 and php5 which will install php with the server-side scripting ability. You can go through your installed packages and make sure for both php and apache you have the necessary ones. How did you install Debian? I think out of the box it comes with apache and php installed such that you won't have this problem.
Sorry I couldn't offer more solid advice. If you don't get any replies from here, try debian, apache, php forums as well.
Thanks heaps for your help.
Thanks heaps for your help. I removed apache and installed apache2, made sure the lines in the files you mentioned were the same as yours, and it works! - almost. At least it seems to be trying to execute the PHP script, but I get this error in the browser:
Any ideas?
Okay with some tweaking of
Okay with some tweaking of the php.ini file I managed to get the index.php page displaying properly. I had to load the mysql modules into php4, apparently... just for future reference. I now have a new issue which I think I'll begin in a new thread - thanks for helping out.