Page 1 of 1

people, i have a problem

Posted: Wed Apr 04, 2007 6:39 am
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

Posted: Wed Apr 04, 2007 6:47 am
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(); ?>

Posted: Wed Apr 04, 2007 7:08 am
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?

Posted: Wed Apr 04, 2007 7:22 am
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.

Posted: Wed Apr 04, 2007 8:00 am
by ptrpan
thanks guys

i got it to work :D

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