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

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

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

Post 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?
Last edited by HaVoC on Sat Aug 07, 2004 7:56 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post by HaVoC »

DocumentRoot
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post by HaVoC »

I used this installation guide:

http://68.237.130.183:12/install.php
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

http://www.cmairscreate.com/server.html is a good place for installation and general apache help!
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post 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).
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post 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
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Test success by clicking my web page link, hehe localhost ;)
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post 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.
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post 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 :)
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

oi. thanks for the info. *adds to tutorial*
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post 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..
User avatar
HaVoC
Forum Commoner
Posts: 83
Joined: Sat Feb 07, 2004 7:20 am
Location: Smiths Falls, CA

Post by HaVoC »

I have Windows 98SE. An old version, so maybe Micro$oft did something to make the OS a bit more intelligent...(NAH!)
Post Reply