0% found this document useful (0 votes)
171 views

PHP, Apache, MySQL, Windows - WampServer

1) The document provides step-by-step instructions for installing LAMP (Linux, Apache, MySQL, PHP) on Ubuntu Linux, including downloading and configuring each component and testing installations. 2) It recommends installing the Ubuntu Server version for an easier setup as it already includes LAMP components. 3) The instructions cover installing Apache, PHP, and MySQL; configuring files like php.ini; setting the MySQL root password; and installing phpMyAdmin for database administration. Testing steps are provided to check each component.

Uploaded by

Hendri Ekasatria
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views

PHP, Apache, MySQL, Windows - WampServer

1) The document provides step-by-step instructions for installing LAMP (Linux, Apache, MySQL, PHP) on Ubuntu Linux, including downloading and configuring each component and testing installations. 2) It recommends installing the Ubuntu Server version for an easier setup as it already includes LAMP components. 3) The instructions cover installing Apache, PHP, and MySQL; configuring files like php.ini; setting the MySQL root password; and installing phpMyAdmin for database administration. Testing steps are provided to check each component.

Uploaded by

Hendri Ekasatria
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

11/28/2015

- PHP, Apache, MySQL, Windows : WampServer

WampServer
Apache,PHP,MySQLonWindows

Homeforum
BacktoWampServer
presentation
Downloads
Addons
Trainings
AlterWay

wampinlinux
Postedby:muhammedbasilsk(49.137.226.)
Date:June15,201102:47PM
howdoinstallwampinlinux(ubuntu)????
Re:wampinlinux
Postedby:yfastud(Moderator)
Date:June15,201108:32PM
DownloadandinstallUbuntuserverversionwhichalreadyhaveLAMP
Havefun,
FREEOneADay
FREEPhoto
FREEGames
FREEWebsites
FREEPortableGPS
FREEWAMPGuides
Re:wampinlinux
Postedby:sasa(210.212.249.)
Date:June16,201112:18PM
InstallApache
TostartoffwewillinstallApache.
1.OpenuptheTerminal(Applications>Accessories>Terminal).
http://forum.wampserver.com/read.php?2,74970,printview,page=1

1/5

11/28/2015

- PHP, Apache, MySQL, Windows : WampServer

2.Copy/PastethefollowinglineofcodeintoTerminalandthenpressenter:
sudoaptgetinstallapache2
3.TheTerminalwillthenaskyouforyou'repassword,typeitandthenpressenter.

TestingApache
TomakesureeverythinginstalledcorrectlywewillnowtestApachetoensureitisworkingproperly.
1.Openupanywebbrowserandthenenterthefollowingintothewebaddress:
[localhost]
Youshouldseeafolderentitledapache2default/.Openitandyouwillseeamessagesaying"Itworks!",
congratstoyou!
InstallPHP
InthispartwewillinstallPHP5.
Step1.AgainopenuptheTerminal(Applications>Accessories>Terminal).
Step2.Copy/PastethefollowinglineintoTerminalandpressenter:
sudoaptgetinstallphp5libapache2modphp5
Step3.InorderforPHPtoworkandbecompatiblewithApachewemustrestartit.Typethefollowing
codeinTerminaltodothis:
sudo/etc/init.d/apache2restart

TestPHP
ToensuretherearenoissueswithPHPlet'sgiveitaquicktestrun.
Step1.Intheterminalcopy/pastethefollowingline:
sudogedit/var/www/testphp.php
Thiswillopenupafilecalledphptest.php.
Step2.Copy/Pastethislineintothephptestfile:
<?phpphpinfo()?>
Step3.Saveandclosethefile.
http://forum.wampserver.com/read.php?2,74970,printview,page=1

2/5

11/28/2015

- PHP, Apache, MySQL, Windows : WampServer

Step4.Nowopenyou'rewebbrowserandtypethefollowingintothewebaddress:
[localhost]
CongratsyouhavenowinstalledbothApacheandPHP!

InstallMySQL
TofinishthisguideupwewillinstallMySQL.(NoteOutofApacheandPHP,MySQListhemost
difficulttosetup.Iwillprovidesomegreatresourcesforanyonehavingtroubleattheendofthisguide.)
Step1.OnceagainopenuptheamazingTerminalandthencopy/pastethisline:
sudoaptgetinstallmysqlserver
Step2(optional).Inorderforothercomputersonyournetworktoviewtheserveryouhavecreated,you
mustfirsteditthe"BindAddress".BeginbyopeningupTerminaltoeditthemy.cnffile.
gksudogedit/etc/mysql/my.cnf
Changetheline
bindaddress=127.0.0.1
Andchangethe127.0.0.1toyourIPaddress.
Step3.Thisiswherethingsmaystarttogettricky.BeginbytypingthefollowingintoTerminal:
mysqluroot
Followingthatcopy/pastethisline:
mysql>SETPASSWORDFOR'root'@'localhost'=PASSWORD('yourpassword')
(Makesuretochangeyourpasswordtoapasswordofyourchoice.)
Step4.WearenowgoingtoinstallaprogramcalledphpMyAdminwhichisaneasytooltoedityour
databases.Copy/pastethefollowinglineintoTerminal:
sudoaptgetinstalllibapache2modauthmysqlphp5mysqlphpmyadmin
AfterthatisinstalledournexttaskistogetPHPtoworkwithMySQL.Todothiswewillneedtoopena
fileentitledphp.ini.Toopenittypethefollowing:
gksudogedit/etc/php5/apache2/php.ini
Nowwearegoingtohavetouncommentthefollowinglinebytakingoutthesemicolon( .
http://forum.wampserver.com/read.php?2,74970,printview,page=1

3/5

11/28/2015

- PHP, Apache, MySQL, Windows : WampServer

Changethisline:
extension=mysql.so
Tolooklikethis:
extension=mysql.so
NowjustrestartApacheandyouareallset!
sudo/etc/init.d/apache2restart
TheEnd
QuicknotetoanyonewhoencounteredproblemswithsettinguptheMySQLpassword,pleasereferto
thispage:MysqlPasswordReset
Iapplaudeveryonewhohastakenthetimetoreadthisguide.ThisguideisalsomyfirsteversoIwould
lovetohearbackfromthepubliconwhatyouguysthink!Justdon'tbetooharsh.
IfyouhavequestionsaboutinstallinganypartofLAMPjustdroptheminthecommentboxandIwilldo
mybesttohelpyouout.
[email protected]
Re:wampinlinux
Postedby:yfastud(Moderator)
Date:June16,201105:31PM
Niceguidebutit'smucheasierandmoreefficiencytoinstallUbuntuServerthansetupLAMPonUbuntu
Desktopversionthenonly1commandtogetGUI
sudoaptgetubuntudesktop
Havefun,
FREEOneADay
FREEPhoto
FREEGames
FREEWebsites
FREEPortableGPS
FREEWAMPGuides
Greatguide!
Postedby:nilsnh(.79161163.customer.lyse.net)
Date:June27,201106:44AM
Hithere.StumbleduponyourpostbysearchingthewebforawaytosetupaLAMPserver.Thanksfor
writinganeatguide.^_^
Re:wampinlinux
Postedby:deepesh(14.139.56.)
http://forum.wampserver.com/read.php?2,74970,printview,page=1

4/5

11/28/2015

- PHP, Apache, MySQL, Windows : WampServer

Date:February08,201302:00PM
wherewehavetoputthewebsitetouploadit
Goto:ForumListMessageListSearchLogIn
Sorry,onlyregisteredusersmaypostinthisforum.
Clickheretologin

http://forum.wampserver.com/read.php?2,74970,printview,page=1

5/5

You might also like