people, i have a problem

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
ptrpan
Forum Commoner
Posts: 81
Joined: Tue Apr 03, 2007 5:09 am
Location: Cape Town, South Africa

people, i have a problem

Post by ptrpan »

Hi all,

thanks for the recommendations on the software yesterday.
i downloaded apache server2.2.4 , mySQL 5 , and php 5.2.1

my problem is that i don't know how to test if my php/apache settings are correct.
can anyone advise me as how to test this please?

when i installed php it prompted me to select the apache configuraton directory.
i chose the conf directory.(is that right??) :?
it then asked me if i wanted the installer to configure apache.
i then got a prompt saying the updates where successful.

so the installer says everything is successful, but i need a way to test it.

any help would be appreciated on this matter.


ps. seeing that i'm a phpn00b i dont even know if there is a php script i can use to test my apache server. :(
thanks anyway dudes
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

To test Apache just fire up a web browser and pop http://localhost/ into the address bar. If its work you'll get the Apache welcome screen.

To test PHP save this code into a file called phpinfo.php, put the file into the htdocs directory of Apache, and point your web browser to http://localhost/phpinfo.php

Code: Select all

<?php php_info(); ?>
User avatar
ptrpan
Forum Commoner
Posts: 81
Joined: Tue Apr 03, 2007 5:09 am
Location: Cape Town, South Africa

Post by ptrpan »

thanks onion, i tried that, but the browser only spews out the code.
i dont think the code gets interpreted as php. :?

any other suggestions?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If you see the PHP code you either:
  • Didn't install correctly
  • haven't restarted Apache yet
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
User avatar
ptrpan
Forum Commoner
Posts: 81
Joined: Tue Apr 03, 2007 5:09 am
Location: Cape Town, South Africa

Post by ptrpan »

thanks guys

i got it to work :D

ill be back soon enough with some more questions...
Post Reply