If you opted to, the XAMPP control panel will open, if not you will have to do it manually either in the start menu or from your desktop.
Once it is open Apache and MySQL should be running, if they are not click the start button for both of them.
Part5.png 26.1K
24 downloads Now open your web browser and navigate to http://localhost/ (this address loops back to your own local server- no other computers can see your computer at this address the same goes for 127.0.0.1). You will be asked which language you wish to use, once again I'm selecting English! Once you have selected a language you will be redirected again to the control panel, click the "Security" link on the left sidebar.
Part6.png 51.53K
28 downloadsNow you will be presented with a page showing all the XAMPP components and their status, FTP and Mail will be offline but Apache and MySQL will be online- the XAMPP control panel and MySQL will both be insecure (also PHPMyAdmin may be unsecure).
Scroll down until you see a link to fix your security problems (for once this isn't a scam!).
Part7.png 58.15K
30 downloadsYou will be taken to a page where first you must select a password for the MySQL root user (I also ticked the checkbox- this will save your passwords in a non-public text file) then click the button. Now scroll down and do the same for the XAMPP directory protection - you are also required to name the super user, I called it "admin".
Part8.png 48.75K
31 downloadsNow you can go back to the security page (you will be prompted for the password and user name you entered above).
Now reopen the control panel and stop MySQL and Apache, then restart them both (I should point out that PHP is nothing more than a module or add-on to Apache and starts and stops with Apache).
Now open a plain text editor like Notepad (NOT MS Word!) and enter the following code:
<?php echo "Hello world!"; ?>Save the file as "test.php" on your htdocs directory, if you installed XAMPP in C:\xampp it will be in C:\xampp\htdocs now visit http://localhost/test.php.
As you can see localhost/ points to your htdocs folder, if you were to put test.php in a folder called test (which is in your htdocs) you would access it like this: localhost/test/test.php
Well now you have your own webserver!
And welcome to Codecall (or the PHP section atleast BTW the badge in the bar below each post lets you "like" someones work)
Edited by bbqroast, 03 June 2011 - 06:20 PM.


Sign In
Create Account


Back to top









