|
Answer» I have recently installed Apache, MySQL 5.0 and PHP on my computer but I can't figure out how to get it going. It asks me for the host name, port and other things aswell. Can someone please help me? First TIME I set up a web SERVER, I spent weeks trying to get all the configurations right and never did figure out how it all works together. My advice to you is to download xampp from www.apachefriends.org and let it configure everything for you.I actually have XAMPP installed but I don't really understand how to use it to its full potential. Can you give me a quick rundown on how to get started, please? Thanks.You shouldn't have to do anything to it to get it going. Just install it and open a browser to http://localhost/ and set a few passwords to secure it. The web files, which you will have to create, should be put in the xampp directory under www or htdocs (can't remember the folder name, as I don't have it installed on this pc).Thanks for the info but how do I actually run the PHP files?In the folder htdocs create a new folder, for example "MyWebsite".
Create a PHP file, name it index.php, save it in the folder MyWebsite.
Using a browser, go to:
http://localhost/MyWebsite/
Now you should see the webpage you created (your index.php file)
Or let's say you MADE a test script. Create the script and name it, for example, test.php
If you save it in that same MyWebsite folder, you browse to:
http://localhost/MyWebsite/test.phpThanks for that. Is that where you save SQL files to as well?no sql files are stored in the mysql directory. SQL doesn't work with files the same way though. What SQL files are you trying to save?The only SQL file I know of, is when you export a database (My)SQL to a file. This file will have the extension .sqlI used wamp which packages everything you need together (do a search for Wamp Server). Learned all the setup I needed from a YouTube video. (do a search for your program)
|