XAMPP Installation and Configuration
XAMPP Installation and Configuration
XAMPP Installation and Configuration
XAMPPInstallationandConfiguration
WhatisXAMPP?
XAMPPisaneasytoinstallApachedistributioncontainingMySQL,PHP
andPerl.XAMPPisreallyveryeasytoinstallandtousejustdownload,
extractandstart.
XAMPPSupportedPlatforms
aversionforLinuxsystems(testedforUbuntu,SuSE,RedHat,Mandrakeand
Debian),
aversionforWindows98,NT,2000,2003andXP,
abetaversionforSolarisSPARC(developedandtestedunderSolaris8),
andabetaversionforMacOSX.
ThisMacOSXandSolarisversionsofXAMPParestillinthefirststepsof
development.Useatyouownrisk!
DownloadXAMPP
http://sourceforge.net/project/showfiles.php?
group_id=61776&package_id=60248[1]
XAMPPFAQ
http://www.apachefriends.org/en/faqxampp.html[2]
XAMPPAddons
http://addons.xampp.org/[3]
XAMPPScreeshots
http://www.apachefriends.org/en/xampplinuxscreenshots.html[4]
XAMPPforLinuxPackages
ThedistributionforLinuxsystems(testedforSuSE,RedHat,Mandrakeand
Debian)contains:Apache,MySQL,PHP&PEAR,Perl,ProFTPD,
phpMyAdmin,OpenSSL,GD,Freetype2,libjpeg,libpng,gdbm,zlib,expat,
Sablotron,libxml,Ming,Webalizer,pdfclass,ncurses,mod_perl,FreeTDS,
gettext,mcrypt,mhash,eAccelerator,SQLiteandIMAPCClient.
InstallingXAMPPinDebian
DownloadXAMPPLatestversionfromthefollowinglink
http://sourceforge.net/project/showfiles.php?
group_id=61776&package_id=60248[5]
AtthetimeofwritingthisarticleXAMPPversionis1.5.3a
#wgethttp://kent.dl.sourceforge.net/sourceforge/xampp/xampplinux
1.5.3a.tar.gz
Nowyoushouldbehavingxampplinux1.5.3a.tar.gzfileinyourdownloaded
location
GotoaLinuxshellandloginasroot:
$su
Extractthedownloadedarchivefileto/opt
#tarxvfzxampplinux1.5.3a.tar.gzC/opt
XAMPPisnowinstalledbelowthe/opt/lamppdirectory.
StartXAMPPServer
TostartXAMPPsimplycallthiscommand:
#/opt/lampp/lamppstart
StartingXAMPPforLinux1.5.3a...
XAMPP:StartingApachewithSSL(andPHP5)...
XAMPP:StartingMySQL...
XAMPP:StartingProFTPD...
XAMPPforLinuxstarted.
TestYourXAMPPInstallation
OK,thatwaseasybuthowcanyoucheckthateverythingreallyworks?Just
typeinthefollowingURLatyourfavouritewebbrowser:
http://localhost
XAMPPSecurityConfiguration
Asmentionedbefore,XAMPPisnotmeantforproductionusebutonlyfor
developersinadevelopmentenvironment.ThewayXAMPPisconfiguredis
tobeopenaspossibleandallowingthedeveloperanythinghe/shewants.For
developmentenvironmentsthisisgreatbutinaproductionenvironmentit
couldbefatal.
HerealistofmissingsecurityinXAMPP:
TheMySQLadministrator(root)hasnopassword.
TheMySQLdaemonisaccessiblevianetwork.
ProFTPDusesthepassword"lampp"foruser"nobody".
PhpMyAdminisaccessiblevianetwork.
Examplesareaccessiblevianetwork.
MySQLandApacherunningunderthesameuser(nobody).
Tofixmostofthesecurityweaknessessimplycallthefollowingcommand:
#/opt/lampp/lamppsecurity
ItstartsasmallsecuritycheckandmakesyourXAMPPinstallationmore
secure.
StartAndStopServerServices
start
StartsXAMPP.
stop
StopsXAMPP.
restart
StopsandstartsXAMPP.
startapache
StartsonlytheApache.
startssl
StartstheApacheSSLsupport.ThiscommandactivatestheSSLsupport
permanently,e.g.ifyourestartsXAMPPinthefutureSSLwillstayactivated.
startmysql
StartsonlytheMySQLdatabase.
startftp
StartstheProFTPDserver.ViaFTPyoucanuploadfilesforyourwebserver
(user"nobody",password"lampp").ThiscommandactivatestheProFTPD
permanently,e.g.ifyourestartsXAMPPinthefutureFTPwillstayactivated.
stopapache
StopstheApache.
stopssl
StopstheApacheSSLsupport.ThiscommanddeactivatestheSSLsupport
permanently,e.g.ifyourestartsXAMPPinthefutureSSLwillstay
deactivated.
stopmysql
StopstheMySQLdatabase.
stopftp
StopstheProFTPDserver.ThiscommanddeactivatestheProFTPD
permanently,e.g.ifyourestartsXAMPPinthefutureFTPwillstay
deactivated.
security
Startsasmallsecuritycheckprogramm.
Forexample:TostartApachewithSSLsupportsimplytypeinthefollowing
command(asroot):
#/opt/lampp/lamppstartssl
YoucanalsoaccessyourApacheserverviaSSLunderhttps://localhost.
ImportantConfigurationFilesAndDirectories
opt/lampp/bin/TheXAMPPcommandshome./opt/lampp/bin/mysqlcalls
forexampletheMySQLmonitor.
/opt/lampp/htdocs/TheApacheDocumentRootdirectory.
/opt/lampp/etc/httpd.confTheApacheconfigurationfile.
/opt/lampp/etc/my.cnfTheMySQLconfigurationfile.
/opt/lampp/etc/php.iniThePHPconfigurationfile.
/opt/lampp/etc/proftpd.confTheProFTPDconfigurationfile.(since0.9.5)
/opt/lampp/phpmyadmin/config.inc.phpThephpMyAdminconfiguration
file.
Ifyouwanttoconfiureapache2youhavetouse/opt/lampp/etc/httpd.conf(If
youwanttochangeApacheDocumentRootdirectoryyoucanchageinthis
file).Ifyouwanttoconfigurenamebasedandipbasedvirtualhostscheck
here[6]
Ifyouwanttoconfigureproftpdcheckhere[7]
Ifyouwanttoconfiguremysqlcheckhere[8]
StoppingXAMPP
TostopXAMPPsimplycallthiscommand:
#/opt/lampp/lamppstop
Youshouldnowsee:
StoppingLAMPP1.5.3a...
LAMPP:StoppingApache...
LAMPP:StoppingMySQL...
LAMPP:StoppingProFTPD...
LAMPPstopped.
AndXAMPPforLinuxisstopped.
UninstallXAMPPFromyourMachine
TouninstallXAMPPjusttypeinthiscommand
#rmrf/opt/lampp
Links
1. http://sourceforge.net/project/showfiles.php?
group_id=61776&package_id=60248
2. http://www.apachefriends.org/en/faqxampp.html
3. http://addons.xampp.org/
4. http://www.apachefriends.org/en/xampplinuxscreenshots.html
5. http://sourceforge.net/project/showfiles.php?
group_id=61776&package_id=60248
6. http://www.debianhelp.co.uk/virtualhosts.htm
7. http://www.debianhelp.co.uk/proftp.htm
8. http://www.debianhelp.co.uk/mysql.htm