• 0

Stop Downloading, Start Running


Question

I just installed Apache, PHP, MySQL and phpMyAdmin on my computer and phpMyAdmin is really ****ing me off. I can load the interface fine, but when I try to add a database or anything it tries to download all the php files instead of just running them. I can't add a database in mysqladmin because something is messed with that too. When I do it here, I right click and theres supposed to be something that says add database or create one or whatever, but all it says is Flush Hosts, Flush Logs, Flush Tables and Flush Threads. Where did I go wrong?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

By the sounds of it Apache isn't configured to pass PHP files on to the PHP program. Have you added the necessary lines into the Apache config file? The instructions with PHP will tell you what and where to put the lines.

Link to comment
Share on other sites

  • 0

Search google for installing PHP apache and MySQL, there are some good guides that show you howto do it easily :p

Are you using apache2? It doesnt work very well with PHP, but should work :(

Link to comment
Share on other sites

  • 0

I'm not using Apache2, and I'm pretty sure I added the necessary lines to make php work, but I have reinstalled apache a few times already so many I didnt do it this time, I'll go double check.

Link to comment
Share on other sites

  • 0

Yep, I added this to the end already...

ScriptAlias /php/ "C:/Program Files/PHP/php-4.3.0-Win32/"

AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php.exe"

Link to comment
Share on other sites

  • 0

I've been playing around, if this will help someone help me, here is the message I get (attatched).

Here is all I added to the bottom of httpd.conf file...

line 1023: ScriptAlias /php/ "c:/program files/php/php-4.3.0-Win32/"

line 1024: AddType application/x-httpd-php .php

line 1025: Action application/x-httpd-php "/php/php.exe"

line 1026: LoadModule php4_module "C:/Program Files/PHP/php-4.3.0-Win32/sapi/php4apache.dll"

line 1027: AddModule mod_php4.c

line 1028: AddType application/x-httpd-php .php

post-46-1042257333.gif

Link to comment
Share on other sites

  • 0

Sorry I can't help with your problem myself but you might want to try ePHP

http://php.e-novative.de/ephp.php

What is e-novative PHP?

-> e-novative PHP is a free PHP installer provided by e-novative, one of the first companies creating commercial software based on PHP

-> e-novative PHP installs and configures Apache, MySql, PHP and phpMyAdmin on Windows NT, Windows 2000 or Windows XP

And it does a good job of it too :)

Link to comment
Share on other sites

  • 0

Ok, lets try some things. First off, get rid of these lines:

ScriptAlias /php/ "c:/program files/php/php-4.3.0-Win32/"

AddType application/x-httpd-php .php

Action application/x-httpd-php "/php/php.exe"

That would have loaded PHP as a CGI module. That's not secure, is slow, and is generally Not A Good Thing?.

Check for the dll you're pointing to here:

LoadModule php4_module "C:/Program Files/PHP/php-4.3.0-Win32/sapi/php4apache.dll"

Keep these lines as is:

AddModule mod_php4.c

AddType application/x-httpd-php .php

In theory, that should be all you need. I might move php out of a directory with a space in the name. Maybe to c:\php or something, just to avoid difficulties...

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.