Sei sulla pagina 1di 21

Through this tutorial, you'll learn how to Install Apache, MySQL and PHP.

If you're a wepage designer or de!eloper and use PHP, "ySQL and Apache, you'll e needing these
applications to e installed. #hen I istalled Mint, I was loo$ing for a way to install LAMP and found a
tutorial on a wesite y so"eody na"ed %&argoship%. That tutorial was for uuntu. 'ut I installed it
on "y Linu( "int, and it is wor$ing.


In this guide I will show you how to install a LAMP syste". LAMP stands
for Linu(, Apache, MySQL, PHP. The guide is intended to help those who ha!e !ery little $nowlegde
of using Linu(.

#e will not co!er how to install Linu( the L of LAMP, ecause Linu( Mint is already installed in your
co"puter.

Install Apache
To start off we will install Apache.
). *pen up the Ter"inal +Applications > Accessories > Terminal,.
-. &opy.Paste or type the following line of code into Ter"inal and then press enter/
sudo apt-get install apache2
0. The Ter"inal will then as$ you for you're password, type it and then press enter.

Testing Apache
To "a$e sure e!erything installed correctly we will now test Apache to ensure it is wor$ing properly.
). *pen up any we rowser and then enter the following into the we address/
http://localhost/
1ou should see a folder entitled apache2-default/. *pen it and you will see a "essage saying %It
wor$s2% , congrats to you2 or so"ething li$e that2

Install PHP
In this part we will install PHP 3.
Step ). Again open up the Ter"inal +Applications > Accessories > Terminal,.
Step -. &opy.Paste or type the following line into Ter"inal and press enter/
sudo apt-get install php5 libapache2-mod-php5
Step 0. In order for PHP to wor$ and e co"patile with Apache we "ust restart Apache. Type the
following code in Ter"inal to do this/
sudo /etc/init.d/apache2 restart

Test PHP
To ensure there are no issues with PHP let's gi!e it a 4uic$ test run.
Step ). In the ter"inal copy.paste or type the following line/
sudo gedit /var/www/testphp.php
This will open up a file called testphp.php.

Step -. &opy.Paste this line into the phptest file/

<php phpinfo!"# >
Step 0. Sa!e and close the file.
Step 5. 6ow open you're we rowser and type the following into the we address/
http://localhost/testphp.php

+It will show you the page that has all infor"ation aout your php. If you ha!e prior e(perience of
installing php in so"e other *S, you "ust ha!e seen this page.,
&ongrats you ha!e now installed oth Apache and PHP2

Install MySQL
To finish this guide up we will install MySQL.
Step ). *nce again open up the a"a7ing Ter"inal and then copy.paste or type this line/
sudo apt-get install m$s%l-server
Step - +optional,. In order for other co"puters on your networ$ to !iew the ser!er you ha!e created,
you "ust first edit the %'ind Address%. 'egin y opening up Ter"inal to edit the m$.cnf file.
g&sudo gedit /etc/m$s%l/m$.cnf
&hange the line
bind-address ' (2).*.*.(
And change the (2).*.*.( to your IP address.
+In Linu( Mint )), ter"inal itself as$ed to the set password, 'ut if it doesn't follow the step 0.,
Step 0. This is where things "ay start to get tric$y. 'egin y typing the following into Ter"inal/
m$s%l -u root
8ollowing that copy.paste or type this line/
m$s%l> +,T -A++./01 2/0 3root343localhost3 ' -A++./01!3$ourpassword3"#
+Ma$e sure to change $ourpassword to a password of your choice.,
Step 5. #e are now going to install a progra" called phpMyAd"in which is an easy tool to edit your
dataases. &opy.paste or type the following line into Ter"inal/
sudo apt-get install libapache2-mod-auth-m$s%l php5-m$s%l phpm$admin
After that is installed our ne(t tas$ is to get PHP to wor$ with MySQL. To do this we will need to open
a file entitled php.ini. To open it type the following/
g&sudo gedit /etc/php5/apache2/php.ini
6ow we are going to ha!e to unco""ent the following line y ta$ing out the se"icolon +#,.
&hange this line/
#e5tension'm$s%l.so
To loo$ li$e this/
e5tension'm$s%l.so
6ow 9ust restart Apache and you are all set2
sudo /etc/init.d/apache2 restart

If you get a 5:5 error upon !isiting http/..localhost.php"yad"in/ 1ou will need to configure
apache-.conf to wor$ with Php"yad"in.
sudo gedit /etc/apache2/apache2.conf
Include the following line at the otto" of the file, sa!e and 4uit.
6nclude /etc/phpm$admin/apache.conf

Then 9ust restart Apache
sudo /etc/init.d/apache2 restart




6ow "a$e wonderful wesite and ha!e fun2
Ter"inal scares the newies, ut here, you'll see how "agical ter"inal or co"and pro"t +whate!er you
call it, is.
And as Linu( is !ery secure *S, it'll as$ you the password again and again, on e!ery ad"inistrati!e
co""and. 1ou'll ha!e to type in your password "any ti"es, whene!er ter"inal as$s for it.

The End
Tags/ terminal, gedit, browser (firefox).
&reated/ 0 years ago.
Last edited/ - years ago.
;e!iewed/ - years ago.
;ead -:)0 ti"es.
&o""ents
) wee$ ago
Palchuhai
Than$ you2
0 wee$s ago
shaha7<"an7il
Than$ you "ysoo"ro.
I successfully installed LAMP with this tutorial. It sa!ed "e a lot of
ti"e. =od less you.
Still I was short on understanding the ser!er configurations. 8or any
others facing the situation, the following guide helped "e >
http/..howtola"p.co".la"p..
=o through the steps after installation and you "ust understand
which configuration files do what.
And for the log files, the following
http/..howtola"p.co".la"p."ys4l.3.?.log>files.
http/..howtola"p.co".la"p.httpd.-.5.log>files.
http/..howtola"p.co".la"p.php.3.3.log>files.
#arning though...The location of log files "ay !ary in Mint

) "onth ago
9harris)@@0
Aearlgray,
&hec$ the per"issions of the files in .etc.apache- using %ls >l% fro"
a ter"inal window +of course, you ha!e to e BinsideB the directory
for that to help you2 />, ,
If the %httpd.conf% file's per"issions are different, "a$e the" the
sa"e and then try again.
Another note that I disco!ered while trying to install #ordPress,
+and this "ay e the sa"e for other installed apps in your we
ser!er's %www% directory,.
BB1ou "ust change the user and group of all these files to e the
default %apache-% user, or you will get strange and i7arre errors
in!ol!ing per"issions.
The way you do this is/
8irst/ =o to your .etc.apache- directory and there should e an
apache-.conf file there.
+6ote that I do BB6*TBB ha!e "y o( up or open right now, so I a"
doing this fro" "e"ory22,
Second/ So"ewhere in that file, down near the otto" I thin$,
should e so"ething that "entions the default user na"e. In "y case
it was so"ething li$e %www<data% or %www<user% +or so"ething
li$e that, again, I'" doing this fro" "e"ory,
Third/ *nce you disco!er what that default user is, chown
e!erything in your .!ar.www directory > and all sudirectories > to
that user.

Ci7./ +as root, or %sudo% all these co""ands,
%cd .!ar.www% +or where!er your we root directory is.,
6ote that efore e(ecuting the ne(t co""and, you BB"ustBB e
within the .!ar.www directory, or where!er your we root directory
is2
%chown >; www<data/www<data ..B%
The %>;% tells chown +change owner, to recursi!ely go into e!ery
su>directory and "a$e changes there too.
The %www<data/www<data% tells chown to change the user/group to
www<data, or whate!er your apache default user is, though "y
"oney's on it eing so"ething li$e %www<data%
The %..B% part tells chown to start Bin the current directoryB, and
change Be!erything thereB If you re"e"er, the %>;% tells it to $eep
going into all the su>directories underneath %..% > the current
directory > and change that stuff too.
'otto" line, if you run into weird issues, "a$e sure you chec$
ownership and per"issions in each directory for all files you "a$e,
since %sudo% and root "a$e files with %root/root% as the owner.
#hat say yeD
Ei" +E;,
- "onths ago
earlgray
PS I since learned that 'gedit' wasn't installed so installed it and
followed the instructions as written, specifically typed %sudo gedit
.etc.apache-.httpd.conf% into Ter"inal, and that opened a lan$ file
called %httpd.conf% into which I typed %Ser!er6a"e "yser!erna"e%,
sa!ed and closed the file. Then re>started apache- ... sa"e ugly
"essage.

- "onths ago
earlgray
Fnfortunately I can't get past Step 0 of Install PHP and getting the
"essage %sudo .etc.init.d.apache- restart B ;estarting we ser!er
apache- AH::33G/ apache-/ &ould not relialy deter"ine the
ser!er's fully 4ualified do"ain na"e, using )-H.:.).). Set the
'Ser!er6a"e' directi!e gloally to suppress this "essage%.
8ollowing A9harris)@@0 's tip, type in %sudo gedit
.etc.apache-.httpd.conf% I get the result %sudo/ gedit/ co""and not
found%
Any suggestionsD 'T#, I'" running Linu("int )?.

sudo gedit .etc.apache-.httpd.conf
sudo/ gedit/ co""and not found
- "onths ago
t7<earl
This was a !ery helpful set of notes, including the recent co""ents
A9harris)@@0 which I also read through first efore eginning the
install.
I did not ha!e any "a9or prole"s with installing the following
stac$.
Linu( Mint )?
Apache -.5.?
MySQL 3.3
PHP 3.3.0>)uuntu-.0
Here are a few notes, so"e reiterating what other co""enters ha!e
already said ut still current as of the ao!e !ersions.
I'" !ery new to Linu(, so I'd appreciate others correcting "y
"isunderstandings of how things wor$ under the hood.
>>>>>
+a, Inaling the PHP e(tension "ys4l.so
Installing MySQL 3.3 appears to ta$e care of this through the B.ini
files found in .etc.php3.apache-.conf.d so that there's no need to
hand edit the php.ini file to acti!ate this e(tension as well as others.
>>>>>
+, liapache->"od>auth>"ys4l %is not a!ailale ...%
#hile installing phpMyAd"in using the co""and,
J apt>get install liapache->"od>auth>"ys4l php3>"ys4l
php"yad"in
got the error "sg that liapache->"od>auth>"ys4l %is not
a!ailale ...% etc etc.
So I installed without it. So far the stac$ see"s to e wor$ing fine
without that pac$age.
>>>>>
+c, 'rowsing to the url http/..localhost.php"yad"in
Installing phpMyAd"in apparently created the file
.etc.apache-.conf>enaled.php"yad"in.conf

which aliases the url to .usr.share.php"yad"in
>>>>>
+d, Setting the MySQL root password.
Kuring the install of MySQL, a $eyoard>ased dialog o( popped
up in the ter"inal window to pro"pt for a password for the root
user. So there's no need at all to set the password after the install y
using the "ys4l co""and line utility.
>>>>>
A !ery nicely written tutorial with so"e good details and
e(planations.
- "onths ago
9harris)@@0
8irst, I owe you, igti"e2 I'!e een trying to ring up a LAMP
ser!er on Mint>)0 +Mate, ?5 it, for aout two days or so, and was
getting nothing ut grief. Then I found your tutorial and I
acco"plished "ore in two hours than I had in the pre!ious two
days22
A couple of additional notes that you "ight want to include/
). I did the steps in ths tutorial Before perfor"ing A61 updatesB on
"y syste" after a fresh install, since I noticed that the update
"a"ager wanted to update Apache- > and I didn't $now if that
would help or hinder. Maye it does not "atter, "aye it does, I
don't $now. #hat I BK*B $now is that it wor$ed when I did it this
way.
-. After installing Apache-, it's a !irtual certenty that you will get a
%&ould not relialy deter"ine the ser!er's fully 4ualified do"ain
na"e, using )-H.:.:.) for Ser!er6a"e% error.
The fi( is easy, 9ust %sudo gedit .etc.apache-.httpd.conf%, and add
the one line %Ser!er6a"e +whate!er your hostna"e is,%. Kon't
include the 4uotes, +Koh2,, and replace %+whate!er your hostna"e
is,% with the na"e you ga!e to your co"puter when you set it up. If
you don't re"e"er, 9ust type %hostna"e% in a ter"inal window, and
it will tell you.
;estart Apache- and this annoying warning goes away.
0. In "y case, +Mint )0, Mate,, there was no need to edit the
.etc.php3.apache-.php.ini file. The co""ented line was not there,
and apparently was not needed, since phpAd"in wor$s anyway.
5. #hen you go to install phpMyAd"in, it will as$ you to create a
dataase for phpMyAd"in to play with, and I selected %1es%. It as$s

for the password for the %ad"inistrati!e user% > and it sounds li$e it
wants to create another password for yet another user. #hat it
BreallyB wants is the password you created for the root user when
you installed MySQL. If you get this wrong, you get a really scary
warning. If you get that warning, 9ust allow it to %retry%, and
carefully type in the root password you created efore.
3. I did not ha!e to do anything to configure Apache- to wor$ with
phpMyAd"in. It wor$ed wonderfully right out of the o(.
?. I noticed that phpMyAd"in Bdoes not re4uire any credentialsB to
access the MySQL dataases2 Maye that's a result of the dataase I
created efore, I don't $now. It BISB scary2
In any e!ent, I feel li$e I should send you a case of the finest
Lentuc$y Sour>Mash 'ouron #is$ey > you sa!ed "e so "uch
grief2
Than$s a L*T2
Ei" +E.;.,
0 "onths ago
$i$ass
=ood tutorial. Kon't $now how aout others ut in "y case I had to
use argu"ent %>p%/ "ys4l >u root >p +Installing MyS4l step0,,
otherwise 1ou should get this/ 'I;;*; ):53 +-G:::,/ Access
denied for user 'root'A'localhost' +using password/ 6*,'.

0 "onths ago
"int<fan
It wor$ed for "e...Than(
0 "onths ago
dragondon
A8elicity =oogle is your friend. Please learn how to use it.
https/..stac$o!erflow.co".4uestions.-:53G?5).pac$age>liapache->
"od>auth>"ys4l>is>not>a!ailale

5 "onths ago
8elicity
Than$s a lot for the instructions, really easy to follow. 'ut I ha!e a
prole" at the 5th step. Any hintD
Pac$age liapache->"od>auth>"ys4l is not a!ailale, ut is referred
to y another pac$age.
This "ay "ean that the pac$age is "issing, has een osoleted, or
is only a!ailale fro" another source
I/ Pac$age 'liapache->"od>auth>"ys4l' has no installation
candidate
My *S Is Linu( Mint &inna"on ?5

5 "onths ago
I"ily#olfess
Than$s this is great, ut I only needed apache. I ne!er use the
php"yad"in and s4l stuff online. I 9ust write ht"l and add "y
content through the .!ar.www. folder on the dri!e of the ser!er. I
appreciate your great article though

5 "onths ago
Tanglang
Than$ you2It's useful.
3 "onths ago
@75f7
I(cellent help file this is the $ind of Initiati!e that "a$e the
diffrence etween success and non life satfication .
AMA NA o!er A

3 "onths ago
garielda"on5-
'est tutorial I ha!e found yet for installing a LAMP stac$. Than$
you2

? "onths ago
prd"gr-
Than$ you. 8ollowed this tutorial and could setup LAMP. #or$s
*L.

? "onths ago
Hard$iffeur
*n fresh LM)? I'!e the liapache->"od>auth>"ys4l install gi!e "e
a notice / %Aucune !ersion du pa4uet liapache->"od>auth>"ys4l
n'est disponile, "ais il e(iste dans la ase de donnOes. &ela signifie
en gOnOral 4ue le pa4uet est "an4uant, 4u'il est de!enu osolPte ou
4u'il n'est disponile 4ue sur une autre source% N Keprecated .. 'ut
php"yad"in install o$ so ...
Than$s for this tut "an Q,

? "onths ago
ili$epeas
Sorry, fi(ed the prole" "yself.
I was ha!ing a prole" this line
sudo apt>get install liapache->"od>auth>"ys4l php3>"ys4l
php"yad"in
And in particular liapache->"od>auth>"ys4l so I split it in to
sudo apt>get install php3>"ys4l
sudo apt>get install php"yad"in
+delierately left out liapache->"od>auth>"ys4l,
The stupid part was that I so"ehow forgot the php"yad"in it2
Bfacepal"B
Than$s though2

? "onths ago
ili$epeas
;eally great tutorial ut unfortunately I'!e fallen at the final hurdle.
I was getting the 5:5 error when I started php"yad"in after
restarting apache so I edited the apache-.conf file as shown ao!e
howe!er when I restart now, I get this/
sudo .etc.init.d.apache- restart
B ;estarting we ser!er apache- RfailS
B The apache- configtest failed.
*utput of config test was/
apache-/ Synta( error on line --0 of .etc.apache-.apache-.conf/
&ould not open configuration file .etc.php"yad"in.apache.conf/ 6o
such file or directory
Action 'configtest' failed.
The Apache error log "ay ha!e "ore infor"ation.
I'" on an (?5 uild of LM)? if that "a$es any differenceD

H "onths ago
"(H-
;IALL1 #ILL MAKI A6K #;ITTI6 2 ISA1 ut 6*T
tri!ial 22 th$ u 2

H "onths ago
srown):0G
Than$s for this tutorial >> I'" now ale to learn PHP with MySQL.
Howe!er, I 9ust installed another application that re4uires a curl
e(tension for PHP. The e(tension is installed ut apparently PHP
doesn't see it. It says to reco"pile PHP fro" source using '>>with>
curl' when you run configure. Must I uninstall PHP and install fro"
source to acco"plish thisD

H "onths ago
Mashly
1ep, this wor$ed well so far for "e, Than$you.
H "onths ago
irwander"awan
It's !ery usefull for "e, than$ you. i use plu"a for te(t editor to
create testphp.php file.

G "onths ago
9asperguy
nicely done, than$ you. It is now installed on/
linu( "int )3 cinna"on ).G oli!ia
3)- " ra"
0gh7 intel
G:g hd

G "onths ago
indyend
Than$ you. It's !ery useful.
@ "onths ago
#yght
This was e(cellent, I had no prole"s at all following you. Than$s
@ "onths ago
<d"ar$
Cery Helpful2 Than$s2
@ "onths ago
"ysoo"ro
1ou're Most #elco"e All. />,
@ "onths ago
laurentperroteau
Perfect 2
): "onths ago
9cgdH))
Men hello fro" &olo"ia and than$ you so "uch222
It helped "e a lot and now I can uild we sites with Eoo"la in "y
Linu( "int222
Than$s again222 &heers222

): "onths ago
raughterd
I(cellent tutorial. Than$s.
): "onths ago
&oi
Awso"e22
greate and usefull.
cheers TT

): "onths ago
ilha"<
Than$s2
It's !ery helpful /,

)) "onths ago
"ega<un$nown
Than$s for sharing that great tutorial..it was really staight forward
steps
Than$s

)) "onths ago
tlotr
Aweso"e Tutorial dude. Than$ you so "uch.
)) "onths ago
nileshahari
6ice tutorial Leep updating.
)) "onths ago
"ysoo"ro
Aric$ric$-:)5/ It's not possile unless so"eone hac$s your
co"puter. And Linu( is 4uite secure syst"e so hac$ing it is not that
easy.
Anisan@-/ I guess A&het replied to your 4uestion !ery well.

) year ago
"cpacosy
Than$ you for this nice tutorial2 I created an installation script ased
on this tutorial that can e used to install the LAMP syste" in a
se"i>auto"atic fashion. I tested the script using a clean Funtu
Ser!er )-.:5 LTS (?5 installation as well as a Linu( Mint )3 (?5
installation. Here it is/
https/..githu.co"."cpacosy."int>la"p

) year ago
The9an
Than$s22 this is a !ery good tutorial
) year ago
#a"u$ota
Is there a reason that this I would prefere this well docu"ented
"ethod !. 'sudo apt>get install tas$sel' and select LAMP>ser!er in
Tas$selD

) year ago
wegift
Than$ you A"ysoo"ro for the tutorial. It really help "e. I a"
loo$ing forward how to setup correction !irtual host on linu( "int
)3 "ate edition.

) year ago
Lipe<San
All good
than$s for the tutorial, pretty straightforward and funcional
now i'll try to put the open ssl liraries to wor$

) year ago
screa"on
All went well untill/
"ys4lU SIT PASS#*;K 8*; 'root'A'localhost' N
PASS#*;K+'yourpassword',Q
I only could gi!e in "y password without the + ,
I could read/ ash/ synta( error near une(pected to$en '+'
In the PHP.ini I couldn't find a line with Qe(tensionN"ys4l.so
when I restarted Apache- I read/ could not relialy deter"ine the
ser!er's fully 4ualified do"ain na"e, using )-H.:.).). for
ser!erna"e.

'ut I had changed that address in "y.cnf
I a" an new user of LI6FV Mint )5 6adia what did I do wrongD
) year ago
$ouros
than$s a lot222
) year ago
o("an
&oncise, clear and effecti!e. My gratitude to you sir.
) year ago
r"isra)
e(cellent tutorial ..than$s to docu"ent and share sa"e
) year ago
tur$ert
I'!e fi(ed so"e apache pac$et errors y %apt>get update%.
I ha!en't edited php ini ecause it didn't e(ist and the files in
etc.php3.apache-.conf.d see"s already enaled "ys4l support.
Php"yad"in installation also as$s for a password. I'!e gi!en the
sa"e password as "ys4l.root
#ell done, good tutorial.

) year ago
&het
Hi 6isan@-,
After you co"plete the ao!e tutorial, you will now ha!e a new
folder called .!ar.www.. This is where you will put your site. I
personally use the LAMP stac$ to run a local !ersion of #ordpress
on "y "achine.
I install the latest !ersion of #ordpress right in the folder
.!ar.www..
I can then uild the site and test !arious code changes and plugins
%efore% I 8TP the site up to "y we ser!er. I hope this answers
your 4uestions.

) year ago
nisan@-
I ha!e installed the" all, And 6ow i want to open a site through...
#here i ha!e to $eep "y pagesDD
Ko i ha!e to do anything elseD

) year ago
ric$ric$-:)5
I ha!en't edited any custo"i7ation files. &an so"eody get an access
to "y ser!er fro" the InternetD I need the ser!er only for a php
progra""ing so i don't want so"eody fro" the internet has the
access to "y ser!er.

) year ago
5-H::G
Than$ you. Cery usefull
) year ago
"ysoo"ro
I'" happy that so"e of you people found this tutorial helpful. And
I'" sorry for the prole"s or differences that so"e of you ha!e
faced.
I'!e een usy lately and ha!en't updated the tutorial..

) year ago
$ai7er$ing
how to install "ultipl !ersions of php, or apache, or "ys4lD
and enale as re4uird li$e wa"p ser!er addonsD

) year ago
cardiff9c
I found this !ery helpful.
There were a few instances where the tutorial didn't "atch up
e(actly with what I saw on "y "achine, ut I was ale to wor$
around the".
eg ) > when I installed MySQL fro" the co""and line, it
failed .%..unale to fetch so"e archi!es...suggest you run +sudo, apt>
get update%
The apt>get update see"ed to e *L, ut the tests later showed that
MySQL was not present on "y P&. So I too$ the easy way out and
installed fro" the pac$age "anager, which wor$ed with no
prole"s.
eg - The tutorial reco""ends so"e changes to the phpini file to
wor$ with SQL, ut "y phpini file is not as descried. Hope it
doesn't "atter, or I can fi( it.

) year ago
girofleeash
Ho2 here is what I get when testing /
Inde( of .
6a"e Last "odified Si7e Kescription

) year ago
girofleeash
This tutorial is great, 9ust found it and can't wait to try reinstalling. I
9ust started and can't get the ''it wor$s2'' page fro" apache-... I had to
restart fro" scratch and thin$ I "ight ha!e "essed up with so"e
docu"ents perhaps host and hostna"es, i don't $now what I should
do. anyone can helpD

) year ago
"outon
Than$s for the clear instructions.
I installed Apache- through we"inQ the co""and line supplied y
we"in was/
apt>get >y >>force>yes >f install apache-
6o password was re4uested, ut the installation went fine since I got
%It wor$s2%.
How could I "a$e sure that there is a password and that it is not
so"e $ind of default passwordD

) year ago
cc$wes
Than$ you !ery "uch for the guide
) year ago
#esurfaren
Magic2
) year ago
PipoST
Than$ you !ery "uch. This tutorial sa!ed "e a lot of ti"e.
) year ago
"ysoo"ro
Than$s for you co""ents and support.
Aurin ne!er heard anything as you said efore. na"ing files as
so"ething.php3.

) year ago if ta$e per"isson+write.read, error than use this
ercag sudo chown >;
) year ago
Tuo"as
6ot all wor$ed e(catly li$e u said, ut easy to fine the good way.
Than$s for this tutorial.
RTest on Mint 6adia MATIS

) year ago
urin
To "y "achine I need to na"e it so"ething.php3 instead of
so"ething.php or it won't wor$.I don't $now why.+Mint )5
&inne"on (?5,

) year ago
spooge
I(cellent instructions > wor$ed li$e a char". I also learned that
using the co""and line +apt, is etter than using the Software
Manger =FI that co"es w. LMKI. I tried it !ia the =FI first and
had prole"s getting phpMyAd"in installed cleanly +the =FI
doesn't pro"pt for ser!er or php"yad"in setup,. Than$s again2

) year ago
"intstar
Than$s2 #or$ed for LM)0.
) year ago
I"pireITtech
I'" getting this when I try to login/ &onnection for controluser as
defined in your configuration failed.

) year ago
I"pireITtech
Fsing your guide I was ale to do al"ost e!erything, howe!er I
cannot login to the phpMyAd"in page with the user %root%...I'!e
tried to reset the password ut it's not doing anything....where should
I loo$ to either set that password or turn off the passwordD

) year ago
"ysoo"ro
1ou're welco"e2 /,
) year ago
al"ighty:::
Than$s a lot for this helpful tutorial.
) year ago
9ofersu
Than$ you, it's really wor$s.
) year ago
paloalo
Than$s2
) year ago
"ysoo"ro
Than$s2 /,
) year ago
E&)0
=ood one than$s
) year ago
hus$eraider
*utstanding222
) year ago
roinsG:
The install wor$ed great. Howe!er, I'" getting 5:0 foridden errors
trying to retrie!e such things as "y style sheets or 94uery files. How
can I grant access to the !arWwww directory to "y pages, or is there

so"e other directory I can put the"D
) year ago
"ysoo"ro
AMeshy))-/ &hec$ "y co""ent on this page addressed to Mar$
aout a year ago..

) year ago
Meshy))-
Th(. It's !ery helpful. 'ut how I can co""inucate with "y ftp>
ser!er. Ko i need to also install a ftpD #here can i get the data for
connection with file7illa to the local>hostD Ser!er, userna"e,
password, portD

) year ago
"ysoo"ro
you're welco"e /,
) year ago
itsyash
great tutorial "an 2 seriously..
too$ "e 9ust ): "ins /,
than$s 2

) year ago
"ysoo"ro
Aartyart/ Agreed. There are "inor differences. The first ti"e I
installed LAMP the pro"pts were "ostly as "entioned ao!e the
second ti"e I installed they were slightly different.
'ut they don't create any ig confusion..

) year ago
artyart
6ice 9o, than$s so"e of the pro"pts aout passwords and "a$ing a
new d are a little different in l")0, ut the install is !ery clear and
"a$es this a si"ple tas$.

) year ago
"ysoo"ro
1ou're "ost welco"e Athanh5G@:, A$yousan7o, Aoilo and
AHiuhu.. /,

) year ago
thanh5G@:
Than$s, it wor$ed li$e a char"2
- years ago
$yousan7o
than$s for info /K
- years ago
oilo
I tried to a LAMP stac$ on Funtu with repeated frustration. Tried
Mint and followed your tutorial with success2
Linu("int )0 Maya co"es with plu"a rather than gedit, so a
sustitution was needed. Sustitution also wor$s for luefish +"y
fa!ourite, ut generates so"e error "essages.

- years ago
Hiuhu
*h tnan( it wor$ed
- years ago
"ysoo"ro
#here are you sa!ing those .php filesDD
Ma$e sure to sa!e the" in the ;oot U !ar U www ...

- years ago
Hiuhu
I followed those instructions X did e(actly what you said ut now
when I try a file with a .php e(tension it, the rowser downloads it
instead of loading it what could e the prole" D +thn(,

- years ago
"ysoo"ro
1ou're welco"e22
- years ago
htutt
Than$s, !ery helpful one.
- years ago
"ysoo"ro
Sorry for late reply. I couldn't sign in for so"eti"e.
AHarri>P/ 1ou're "ost welco"e2 />,
Asapistic/ I guess stleon ga!e you a good help. And for for
uploading the files to your wesite you need to use an ftp+file
transfer protocol, client. Fse file7illa for it. 1ou can install it with
following co""and in your ter"inal
sudo apt>get install file7illa
or you can download it fro" this lin$/
http/..co""unity.linu("int.co".software.!iew.file7illa
9ust clic$ on install. />,
Astleon/ than$s uddy2 />,

- years ago
sapistic
Than$s
- years ago
stleon
.!ar.www y root. or in your ho"e
directory+http/..co""unity.linu("int.co".tutorial.!iew.G30,

- years ago
sapistic
So I got all this, ut now I want to "a$e a wesite. I ha!e a asic
$nowledge of we languages, including PHP, ut once I ha!e "y
files, where do I sa!e the" so that Apache and PHP ha!e access to
the"D

- years ago
Harri>P
Than$ you so "uch for this2 #as rilliant e(planation and really
clear. I re"e"er trying to do it efore and was not loo$ing forward
to doing it again ut i had done it within -:"ins with this2 than$s

- years ago
"ysoo"ro
you're "ost welco"e stleon...
- years ago
stleon
Than$ you !ery "uch for the wonderful tutorial.
- years ago
"ysoo"ro
Agdawn/ chec$ these out and see if they're helpful.
http/..www.wehostingtal$.co".showthread.phpDtNGH3-33
MySQL/ Irror ):53 +-G:::,/ Access denied for user
YrootZA'localhostZ +using password/ 6*,/

- years ago
gdawg
#hile atte"pting to install "ys4l I get the following error/
9aneAgdawg>Satellite>&?H3 [ \ "ys4l >u root
I;;*; ):53 +-G:::,/ Access denied for user 'root'A'localhost'
+using password/ 6*,
I also tried 'sudo "ys4l >u root' ut got sa"e result. Any help will e
appreciated.

- years ago
"ysoo"ro
Acahyadwiguna/ &hec$ this tutorial. I thin$ you'll find help in it.
http/..co""unity.linu("int.co".tutorial.!iew.-55

- years ago
"ysoo"ro
A"in(, Kid you changed you httpd>!hosts.conf fileD
if you didn't, you need to specify your !irtual hosts there, so"ething
li$e following
JJ
JJSer!erAd"in post"asterAyour!irtualhost.localhost
JJKocu"ent;oot %.!ar.www.your!irtualhost%
JJSer!er6a"e your!irtualhost.localhost
JJSer!erAlias www.your!irtualhost.localhost
JJIrrorLog %logs.your!irtualhost.localhost>error.log%
JJ&usto"Log %logs.your!irtualhost.localhost>access.log% co"ined
JJ
1ou can find location of httpd>!hosts.conf file fro" httd.conf it is
nor"ally in apache.conf.e(tra.

- years ago
"in(
Hello,
How to use !irtual hosts in ApacheD I followed a tutorial of uuntu
and i ha!e acti!ated !host<alias "odule ut it does not wor$.

- years ago
nicol(
I thin$ is i"portant fi( this on apache restart/
&ould not relialy deter"ine the ser!er's fully 4ualified do"ain
na"e, using )-H.:.).) for Ser!er6a"e
Is 9ust a warning ut i hate see the"2 /P
To sol!e it, open .etc.apache-.site>a!aiale.default and att at top of
file Ser!er6a"e localhost.
If you li$e it add this tips in this article2

- years ago
cahyadwiguna
how to "a$e !irtual directory or .!ar.www in ho"eD
how to "a$e change per"issionD

- years ago
slot7ero
=reat write up > than$s2
- years ago
"ysoo"ro
Hey "$<hayes and the?5u.. I'll loo$ into other 4uestion and
co""ents later on. 'ut "$<hayes you're right for
]Dphp phpinfo+,Q DU
not
]2>>Dphp phpinfo+,Q D>>U
'ut I noticed this error long ago and corrected it twice.. If you loo$

at the older co""ents you'll find out.. 'ut I don't $now why it's
changing again and again. I thin$ so"e other codes are "essing up
with the codes in this tutorial..
Sorry for incon!enience.
- years ago
"$<hayes
Than$s for this tutorial as it's a great start ut it needs a few
additions.
1eah, Test PHP instructions are still, or perhaps again screwy.
sudo gedit .!ar.www.testphp.php opens up a file called testphp.php,
not phptest.php as you ha!e written. And the file needs to contain
this/
]Dphp phpinfo+,Q DU
not this/
]2>>Dphp phpinfo+,Q D>>U
And for those loo$ing for Qe(tensionN"ys4l.so in php.ini
search for this without the Q as it is spaced well apart fro" the rest
and you'll e ale to find and unco""ent it. +#hich is what
re"o!ing the se"icolon does.,
I needed "anu$a's co""ent to get php"yad"in to wor$. Also,
while it "ay see" o!ious, php"yad"in login is root plus the
password created during the "ys4l install.

- years ago
the?5u
hi,
i wor$ on LAMP last 0 Kays.
I " wor$ing Linu( Mint Latya 0-it
i also tries Mint co""unity, ther Mr &ollin helped "e..
I want create K' for Krupal
'ut face proele" in log in of localhots.php"yad"in
error / J):53 &annot log in to the MySQL ser!er
when i found i co"pletely re"o!e the "ys4l>ser!er, PHP3,Apache-
and then follow the instruction gi!en y u.
Start was o$,ut the co""end does not show any thing
http/..localhost.testphp.php
After that there is no content for Qe(tensionN"ys4l.so
i still finding another solution..

Help "e to sort out..
- years ago
QianQinK
Than$s for the !ery helpful article/,
- years ago
"ysoo"ro
you're "ost welco"e. />,
- years ago
7aenal)-05
Than$'s for this tutorial...X !ery usefulXhelpfulQ.
- years ago
7ia"s
than$s so "uch ro this is really aweso"e
- years ago
"ysoo"ro
Kear 'o,
1ou're "ost welco"e. I'" glad that this tutorial is assisting the
Linu("int co""unity.
;egards,
1ounis

- years ago
"ysoo"ro
Kear Mar$,
Try using S&P &lient for Mac
Trans"it http/..www.panic.co".trans"it.
or file7illa or cyerduc$.
If you want to setup 8TP following lin$ "ight help you in this
regard.
http/..co""unity.linu("int.co".software.!iew.!sftpd
https/..security.appspot.co".!sftpd.ht"l
http/..www.uni("en.co".linu(>tutorials.5H3>insall>!sftpd>in>
uuntu>

- years ago
"acgraphic
Than$s "ysoo"ro, that got it all set up nicely on Mint.
=ot a 4uestion though, how can I set up 8TP accounts within
Mint.LAMP to allow access +uploading of files ^plugins etc for the
wordpress sites on there_ for use on the" > I also ha!e this installed
on a local P&, ut do "y site coding in Krea"wea!er on a "ac +on
sa"e local networ$,.
Than$ again. Mar$

- years ago
guruwannae
Hi,
Than$s a lot.
Eust "anaged to install Apache, MySQL and PHP following your
tutorial.
;egards,

'o
- years ago
"anu$a
This is a step a lot of LAMP tuts "iss, if you are getting a 5:5 error
after finishing all the install steps for http/..localhost.php"yad"in
then do the following/
Type the following co""and to open up your apache-.conf file/
g$sudo gedit .etc.apache-.apache-.conf
Add the following line of code inside apache-.conf/
Include .etc.php"yad"in.apache.conf
6ow restart Apache/
sudo .etc.init.d.apache- restart
Kone. I can't clai" credit for this and is docu"ented on a few
LAMP installs round the place

- years ago
iluc"aster
How to install pear>php, i ought a oc$ na"ed 'eginning PHP 3
and MySQL I>&o""erce

0 years ago
prati!asic
Than$s for this wonderful tutorial. Although I use Va"pp for it. 'ut
for "y ?5it P&, I thin$ it's the est way.
And dear =ur"an, you can try installing Va"pp for Linu( which is
a pac$age containing the sa"e and re4uires less co""and line.

0 years ago
"ysoo"ro
Kear =ur"an2 try using these ter"inal co""ands you'll see if it's
"ore co"ple( or really fast, easy and con!enient. #ith 9ust one
co""and, it'll locate the site of the application on we, download it
for you, and Install it.. All in one go.. #hat can "e "ore easy and
con!enient than this.. And I don't agree with you.. #e page
de!elopers and designers do need to code a lot.. May e only
graphical part doesn't need coding ut all other stuff needs a lot of
code. PHP, MySQL, &SS, HTML, VHTML, VML, ASP.6IT,
Ea!aScript, all are code ased technologies.. Though you can use
=FI php"yad"in for MySQL, ut all other still need codings.

0 years ago
=ur"an
%If you're a wepage designer or de!eloper...%
If I a" a wepage designer or de!eloper I do not want to understand
the co"ple(ities of co""and line. I need a "odern graphical
interface for fast and con!enient installation and configuration.The
designer should e ale to do the design ut not progra""ing shell.
i"ho.

0 years ago
Ilisa
IM*, for silly noos a$a eginners it's etter instead Apache, use
rather other we ser!er, a nice =FI configured one >U '&hero$ee' /K
or another powerful one > 'lighttpd' Q,
Thin$ aout that /P

0 years ago
8iffifips
Than( to trolloy and than( to "ysoo"ro 2 wor$ing with ter"inal is
fun . and always don't pani$2 things go on . I thin$ it did well. and I
will go on with this stuff wor$ing, than(. My Ho"epage is
waiting ....

0 years ago
"ysoo"ro
=ot it right. /,. I thin$ the wesites code was "essing up with the
code of tutorial.

0 years ago
"ysoo"ro
Than$ you. and yes, you're )::` right. It's ]Dphp phpinfo+,Q DU. 'ut
I thin$ there is so"e prole". #hen I went to edit this, this entire
field of code was e"pty. And I had chec$ed each code efore
uploading the tutorial.
Let "e try it again.

0 years ago
trolloy
=ood tutorial ut Test PHP step - is wrong
It should read
]Dphp phpinfo+,Q DU
instead of
]2>>Dphp phpinfo+,Q D>>U

Potrebbero piacerti anche