Premgenius Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
0 Steven P. Administrators Posted April 4, 2003 Administrators Share Posted April 4, 2003 moved here Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 4, 2003 Veteran Share Posted April 4, 2003 pop some php into a file and load it up in your webbroswer. This is good: <?php phpinfo(); ?> Link to comment Share on other sites More sharing options...
0 Premgenius Posted April 4, 2003 Author Share Posted April 4, 2003 can you please explain that like save a file with that n a extension of .PHP?? Link to comment Share on other sites More sharing options...
0 BxBoy Posted April 4, 2003 Share Posted April 4, 2003 yes, just save that file as a .php and access it with you webbrowser Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 4, 2003 Veteran Share Posted April 4, 2003 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 More sharing options...
0 Premgenius Posted April 5, 2003 Author Share Posted April 5, 2003 i wrote it and placed it into the webroot dir and then tried to accessed it and it came back with the same thing that i had written Link to comment Share on other sites More sharing options...
0 john smith 1924 Veteran Posted April 5, 2003 Veteran Share Posted April 5, 2003 <? phpinfo (); ?> ??? i dont think you've setup php right... it should come back something like this... http://www.zeebit.com/phpinfo.php Link to comment Share on other sites More sharing options...
0 Premgenius Posted April 5, 2003 Author Share Posted April 5, 2003 any ideas what the prob could be cos i set it up da rite way Link to comment Share on other sites More sharing options...
0 john smith 1924 Veteran Posted April 5, 2003 Veteran Share Posted April 5, 2003 any ideas what the prob could be cos i set it up da rite way id say actually you didnt. go download a combo from here http://www.firepages.com.au all pre-configed. look at how that is setup... and go forth and prosper. Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 5, 2003 Veteran Share Posted April 5, 2003 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 More sharing options...
0 Premgenius Posted April 5, 2003 Author Share Posted April 5, 2003 got it, now trying to set up a mysql db but that dnt wrk Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 5, 2003 Veteran Share Posted April 5, 2003 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 More sharing options...
0 Premgenius Posted April 6, 2003 Author Share Posted April 6, 2003 anways that it is wrking? what is the MySQL Control Centre? Also how do i implement it on to my website? Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 6, 2003 Veteran Share Posted April 6, 2003 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 More sharing options...
0 Premgenius Posted April 6, 2003 Author Share Posted April 6, 2003 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 More sharing options...
0 JimM17 Posted April 6, 2003 Share Posted April 6, 2003 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 More sharing options...
Question
Premgenius
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