Page 1 of 1

[SOLVED] Apache help(it's setup but wont work)

Posted: Thu Aug 05, 2004 8:05 pm
by HaVoC
I started it, ahd no problems. The console opened and everything without error. However when I open the monitor it says that there are no servers. And when I opened a PHP file in the directory I specified in the httpd.conf file and it did not work. Anything I didn't do that i should have?

Posted: Thu Aug 05, 2004 8:13 pm
by feyd
not sure what you did in the first place... How'd you set up php in it, how'd you modify the httpd.conf to add that directory?

Posted: Thu Aug 05, 2004 9:45 pm
by HaVoC
DocumentRoot

Posted: Thu Aug 05, 2004 9:46 pm
by HaVoC
I used this installation guide:

http://68.237.130.183:12/install.php

Posted: Thu Aug 05, 2004 9:54 pm
by Joe
http://www.cmairscreate.com/server.html is a good place for installation and general apache help!

Posted: Fri Aug 06, 2004 2:10 pm
by d3ad1ysp0rk
pssh, shush joe, my guide is fine. :lol: jk

You're sure you followed it step for step havoc? It's worked for a good amount of people without any help from me..

You moved all the files?

Oh, and I actually found an error, I never said to rename php.ini-recommended. It should be php.ini (once you move it).

Posted: Sat Aug 07, 2004 8:46 am
by HaVoC
I will tell you exactly what I did, maybe you can find a problem.

I unzipped PHP5 to a directory.
I ran the Apache nstaller, filled in "localhost", "lang" , "joseph31_@hotmail.com"
Editted the httpdconf file:
DocumentRoot "D:/Server"
ServerRoot "D:/Server"
And the last three lines

LoadModule php5_module "d:/php/php-5.0.0RC2-Win32/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Ran the apache exe in the bin folder
Opened up a php file in D:/Server...nothing happened

Posted: Sat Aug 07, 2004 10:25 am
by d3ad1ysp0rk

Posted: Sat Aug 07, 2004 10:39 am
by Joe
Test success by clicking my web page link, hehe localhost ;)

Posted: Sat Aug 07, 2004 1:43 pm
by HaVoC
OK I took a screenshot of the apache dos window(through many attempts)

This si what it said:

Syntax error on line 971 of PATH TO httpd.conf:

Cannot load C:/php/php5apache2.dll cannot be loaded into server: One of the library files needed to run thsi application cannot be found.

Posted: Sat Aug 07, 2004 7:57 pm
by HaVoC
OK guys I fixed it.

I went intot he php directory and read install.txt and it gave me some info that Lilpunkskater forgot to add in his tutorial

php5ts.dll has to be int eh same directory as Apache.exe :)

Posted: Sat Aug 07, 2004 11:23 pm
by d3ad1ysp0rk
oi. thanks for the info. *adds to tutorial*

Posted: Sat Aug 07, 2004 11:32 pm
by d3ad1ysp0rk
hmm..
install.txt wrote: You need to ensure that the dlls which php uses can be found. The precise
dlls involved depend on which web server you use and whether you want to
run php as a cgi or as a server module. php5ts.dll is always used. If you are
using a server module (e.g. isapi or apache) then you will need the relevent
dll from the sapi folder. If you are using any php extension dlls then you
will need those as well. To make sure that the dlls can be found, you can
either copy them to the system directory (e.g. winnt/system32 or
windows/system) or you can make sure that they live in the same directory
as the main php executable or dll your web server will use (e.g. php.exe,
php5apache.dll).
Also, I checked my system folders, and the only place php5ts.dll is located is my php/ folder (where I unzipped it). So I'm still not sure why it didn't work for you..

Posted: Sun Aug 08, 2004 9:12 am
by HaVoC
I have Windows 98SE. An old version, so maybe Micro$oft did something to make the OS a bit more intelligent...(NAH!)