The PHP-Apache Config curse is once again upon me!<

liunx

Guest
i just wiped my harddrive, but i had saved my server files to a CD.

i've reinstalled apache and Download ed php.

i put the php DLL file in WINDOWS, SYSTEM, and SYSTEM32 (just cuz i wasnt sure where to put it).

i put php.ini in WINDOWS

here is my config file:

<!-- m --><a class="postlink" href="http://24.238.145.68/httpd.conf">http://24.238.145.68/httpd.conf</a><!-- m -->

i've added all the necessary lines (i believe) for PHP to work... so why aint it working?!

:( any help? its probably just a missing line or something:rolleyes:Ah, shoot. I installed PHPdev and it configures itself. Less pain.

One edit to the php.ini file to turn RegisterGlobals to ON was all I needed to do.im going to uninstall PHP and reinstall it, i think there was an option to auto-configure it

edit: nope, i get a message saying that the config code hasnt been made yet.you don't have loadmodule in httpd.conf?

look at
<!-- m --><a class="postlink" href="http://www.php.net/manual/en/install.apache.php#install.apache.windowsgiz">http://www.php.net/manual/en/install.ap ... windowsgiz</a><!-- m -->, i installed PHPDev.

why are apache2 and apache both listed?

anyway, now i can't start my apache service.. even though when i go to localhost, the page still displays... and PHP pages still aren't working.

???PHPdev includes Apache, PHP, mySQL, PHPmyadmin, the Cerebus FTP server, an example phpwebsite, an example Invision forum, and loads of other stuff.


PHPdev4 comes with Apache 1.3.27 and PHPdev5 comes with Apache 2.0.8 (or something like that). Maybe you have two different versions of Apache currently installed? That would confuse things.this is the wierdest thing i've ever seen:

i deleted the Apache Group folder, and I deleted the PhpDev5 folder... but when i go to <!-- m --><a class="postlink" href="http://24.238.145.68/">http://24.238.145.68/</a><!-- m --> i still get the default apache page:confused:okay, well i Download ed phpdev4 and now its working

edit: how do you run the server without tis dumb window open?exactly why I don't use phpdev, you are very limited in what you can do with php, especially if you have to turn on globals.

when you saved the files from apache why didn't you save the conf file so you don't have to go through this all the time.You run Apache without the window showing by running it as a service.
The instructions for doing that are all there inside the package!



Scoutt, you don't really need to turn RegisterGlobals to On unless you want to log into the example phpwebsite that comes with it. The admin login does not work unless you turn it on.
 
Back
Top