Jump to content

Installing XAMPP part 2

- - - - -

  • Please log in to reply
5 replies to this topic

#1
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Well in the previous part we got XAMPP up and running but now we need to configure it and make are first page!

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.
Attached File  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.
Attached File  Part6.png   51.53K   28 downloads
Now 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!).
Attached File  Part7.png   58.15K   30 downloads
You 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".
Attached File  Part8.png   48.75K   31 downloads
Now 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.

Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#2
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Oh there it is :D
Losing your own tutorial is sooo embarrassing (especially when its second on the list :D)
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#3
Juan Pluma

Juan Pluma

    Newbie

  • Members
  • Pip
  • 4 posts
Need Assistance I installed Microsoft WebMatrix I was tying to test Joomla so the MySQL of this WebMatrix doesn't let me use the MySQL of XAMPP because I think the system variables are modified by the WebMAtrix Installation. Any Ideas to get rid of the MySQL installed by WebMatrix. So because I'm developing a WebPage but The MySQL connection just doesn't work. I got a timeout from the MySQL server. I checked on the Windows Command Line my access and privilegues and I have haccess with the user and password. But not working on the php. I got timeout connection I modified the my.ini
with the
C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqlshow -u conexion duepack -p
Enter password: ***********
Database: duepack
+-----------+
| Tables |
+-----------+
| jos_users |
| pedido |
+-----------+

#4
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Argh that MS stuff sounds gooey, in a bad way to.
They would use the same ports I guess? What does this MS stuff give you??
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#5
Juan Pluma

Juan Pluma

    Newbie

  • Members
  • Pip
  • 4 posts
Thanks a lot I just decided to get rid of the Microsoft WebMatrix installation along with the MySQL Server that App installed. So Now Working fine with the XAMPP. I was able to unistall competely the Microsoft installation from the Windows7 Control Panel.

#6
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd
Good to know, who needs MS when 2 3rds of the worlds web servers use PHP (and most of the rest don't even have SSI)?
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users