Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 30-05-2007, 11:06 AM   #1 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Post TUTORIAL - Setting up LAMPP using XAMPP


Here goes my first Linux Tutorial for LAMPP using XAMPP. Actually i was searching for a way to install LAMP on my debian system when i came across this wonderful tutorial. Thought would be nice to share it.

Step 1: Download
http://www.apachefriends.org/en/xampp-linux.html

Step 2: Installation
After downloading simply type in the following commands:
1.Go to a Linux shell and login as the system administrator root:
su
2.Extract the downloaded archive file to /opt:
Code:
tar xvfz xampp-linux-1.6.2.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work.
Warning 2: already installed XAMPP versions get overwritten by this command.
That's all. XAMPP is now installed below the /opt/lampp directory.

Step 3: Start
To start XAMPP simply call this command:
Code:
/opt/lampp/lampp start
You should now see something like this on your screen:
Starting XAMPP 1.6.2...
Code:
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Ready. Apache and MySQL are running.
Step 4: Test
OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:
http://localhost
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.

A matter of security (A MUST READ!)
As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.
Here a list of missing security in XAMPP:
1.The MySQL administrator (root) has no password.
2.The MySQL daemon is accessible via network.
3.ProFTPD uses the password "lampp" for user "nobody".
4.PhpMyAdmin is accessible via network.
5.Examples are accessible via network.
6.MySQL and Apache running under the same user (nobody).
To fix most of the security weaknesses simply call the following command:
Code:
/opt/lampp/lampp security
It starts a small security check and makes your XAMPP installation more secure.

PHP 4 or PHP 5?
Because such very new versions like PHP 5 always should be handled with care we decided to include both current versions of PHP into XAMPP since version 1.4.7: PHP 5.x and PHP 4.x. If you find out your PHP application doesn't work with PHP 5 you will be able to switch back easily to PHP 4.
By the following command you can switch "back" to PHP 4.x:
Code:
/opt/lampp/lampp php4
And with the following command you can switch back to PHP 5.x:
Code:
/opt/lampp/lampp php5
If you forgot which version of PHP is in use simply use phpinfo() or call this command:
Code:
/opt/lampp/lampp phpstatus
Advanced start and stop parameters
  • start - Starts XAMPP.
  • stop - Stops XAMPP.
  • restart - Stops and starts XAMPP.
  • startapache - Starts only the Apache.
  • startssl - Starts the Apache SSL support. This command activates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay activated.
  • startmysql - Starts only the MySQL database.
  • startftp - Starts the ProFTPD server. Via FTP you can upload files for your web server (user "nobody", password "lampp"). This command activates the
  • ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay activated.
  • stopapache - Stops the Apache.
  • stopssl - Stops the Apache SSL support. This command deactivates the SSL support permanently, e.g. if you restarts XAMPP in the future SSL will stay deactivated.
  • stopmysql - Stops the MySQL database.
  • stopftp - Stops the ProFTPD server. This command deactivates the ProFTPD permanently, e.g. if you restarts XAMPP in the future FTP will stay deactivated.
  • security - Starts a small security check programm.

What is where?
  • /opt/lampp/bin/ - The XAMPP commands home.
  • /opt/lampp/bin/mysql - calls for example the MySQL monitor.
  • /opt/lampp/htdocs/ - The Apache DocumentRoot directory.
  • /opt/lampp/etc/httpd.conf - The Apache configuration file.
  • /opt/lampp/etc/my.cnf - The MySQL configuration file.
  • /opt/lampp/etc/php.ini - The PHP configuration file.
  • /opt/lampp/etc/proftpd.conf - The ProFTPD configuration file. (since 0.9.5)
  • /opt/lampp/phpmyadmin/config.inc.php - The phpMyAdmin configuration file.

Stopping XAMPP
To stop XAMPP simply call this command:
Code:
/opt/lampp/lampp stop
You should now see:
Code:
Stopping LAMPP 1.6.2...
LAMPP: Stopping Apache...
LAMPP: Stopping MySQL...
LAMPP stopped.
And XAMPP for Linux is stopped.

Uninstall
To uninstall XAMPP just type in this command:
Code:
rm -rf /opt/lampp
The end.

Source - http://www.apachefriends.org/en/xampp-linux.html
sachin_kothari is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 30-05-2007, 04:44 PM   #2 (permalink)
The Thread Killer >:)
 
phreak0ut's Avatar
 
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
Default Re: TUTORIAL - Setting up LAMPP using XAMPP

Neat! Will be needing this soon
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
phreak0ut is offline  
Old 30-05-2007, 05:45 PM   #3 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: TUTORIAL - Setting up LAMPP using XAMPP

XAMPP - All in one web server Installation and Configuration in Debian
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 30-05-2007, 08:49 PM   #4 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Cool Re: TUTORIAL - Setting up LAMPP using XAMPP

^^^ u gave the same contents as above.
anyway i took all the contents from the source i mentioned.

and here is another tutorial for LAMP configuration if you are using Debian and you dont want to install third party tools.

Code:
# apt-get install apache2-mpm-prefork 

# apt-get install libapache2-mod-php4
add "ServerName localhost" to apache2.conf (/etc/apache2/apache2.conf in Debian) file, not httpd.conf

Uncomment apache2.conf "AddType application/x-httpd-php .php"

Code:
# gedit /etc/php4/apache2/php.ini
and uncomment this: extension=mysql.so

add
Code:
"extension=php_mysql.so"
to /etc/php4/apache2/php.ini

Code:
# apt-get install mysql-server 

$ mysql -u root 
mysql> SET PASSWORD 
-> FOR root@localhost 
-> = 
-> PASSWORD('your_password') 
-> ; 
Query OK, 0 rows affected (0.08 sec) 

mysql> exit 
Bye 
$
Code:
# apt-get install php4-mysql
## Configure PHP

Make sure your php configuration file (/etc/php4/apache/php.ini or /etc/php4/apache2/php.ini) has this line:

memory_limit = 20M

and the following lines uncommented:

extension=mysql.so
extension=gd.so
sachin_kothari is offline  
Old 30-05-2007, 10:12 PM   #5 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Default Re: TUTORIAL - Setting up LAMPP using XAMPP

^ http://debianadmin.org and http://howtoforge.com rocks in dis regard
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TUTORIAL: All About Resource Hacker! A Brief Tutorial Vishal Gupta Tutorials 278 27-11-2007 11:46 AM
Tiny Tutorial : How to watch a movie by setting it as wallpaper? sridatta Tutorials 11 27-03-2007 01:32 AM
Setting DC++ HUb deadpulse Software Q&A 1 19-02-2007 11:09 PM
Newbie Tutorial: Setting Up options in TuneUp Utilities to boost your PC sridatta Tutorials 5 18-11-2006 12:02 AM
Setting up IM??? prankie Mobiles and Tablets 7 19-05-2006 10:42 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan
- by reddick

Advertisement




All times are GMT +5.5. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2