• 0

Testing?


Question

I've just installed

Apache

PHP

MySQL

on my machine some of the feew steps to host my own website off my machine i have configured

Apache

PHP

i wish to know is there a way i can know that my PHP & Apache have been corretly configured and correctly working?

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

just create a file called test.php and make that code the contents of the file. Pop it somewhere where the webserver can get to. Then load it up in a web browser and you should see all the info on PHP :)

Link to comment
Share on other sites

  • 0

Ok, these lines need to be in your httpd.conf file:

Near the top:

LoadModule php4_module "D:\apache\php\SAPI\php4apache.dll"

Near the end of the middle:

AddType application/x-httpd-php .php3

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

Adjust the first one for the appropriate directory for that file, and make sure they're in there alongside other lines that looks similar to them. Also, you should have moved your php.ini file into your windows directory, and phpts.dll into your windows\system32 directory. Assuming you have everything like that, it should work fine after restarting apache.

Link to comment
Share on other sites

  • 0

Run the mysql installer. Then go to where it's installed, then the bin directory, and run winmysqladmin. Right click on the traffic light and install the service, then run it. should turn on the server. the default user is root with no password.

Link to comment
Share on other sites

  • 0

Huh? Don't get your first statement, needs to be reworded....

MySQL CC is just a frontend utility to access mysql databases. Lets you tool around without having to work with just SQL statements.

Use mysql on a website? Well, you have to learn PHP and SQL to do that.... Why else install it? :blink:

Link to comment
Share on other sites

  • 0

now i was wondering how can i test it that is is correctly sertup and wrkin and i tried to create a new DB with MySQL Control Centre and it fails andit says wrong host i tried the following in the host

NUL

.

local

locahost

host

Link to comment
Share on other sites

  • 0
Ok, these lines need to be in your httpd.conf file:

Near the top:

LoadModule php4_module "D:\apache\php\SAPI\php4apache.dll"

If you are running apache 2.x this will not work. i believe it would be php4apache2.dll

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.