Page 1 of 1

LAMP server

Posted: Sat Dec 03, 2011 10:09 am
by kpkguru003
I am using ubuntu 10.04LTS version , i love ubuntu and now i am doing my college project in PHP and MySql. Can you tell me how to install LAMP server or something else to use PHP ? and tell me how to use it in a nice way ?

Re: LAMP server

Posted: Sat Dec 03, 2011 3:43 pm
by bowersbros
Well.. Are you using Linux? Windows or mac?

LAMP = Linux, Apache, MySQL and PHP

you are most likely using Windows, so go for XAMPP or WAMP (There are others, like. AppServ)

If mac, then MAMP

Decide which one you need / want, Then Google it. It will take you to a download page for that specific one.

Eg XAMPP takes you to http://www.apachefriends.org/en/xampp.html

So, go and find the version you want.

Eg. http://www.apachefriends.org/en/xampp-windows.html

Then download, run installation window and you have it installed.

From there, i think your files go in C:/username/htdocs or www im not sure, sicne i use MAMP, and mine is in htdocs.

But you will find it somewhere on your HDD, then you should be setup. Go to http://localhost/ and you should get a page display.

There you have your local server setup

Re: LAMP server

Posted: Sat Dec 03, 2011 4:26 pm
by EcazS
bowersbros wrote:Well.. Are you using Linux? Windows or mac?
kpkguru003 wrote:I am using ubuntu 10.04LTS version
:roll:

Either download XAMPP for Linux or install LAMP "manually", I suggest the latter one.
Installing LAMP; http://www.howtoforge.com/ubuntu_lamp_for_newbies
XAMPP for Linux; http://www.apachefriends.org/en/xampp-linux.html

Re: LAMP server

Posted: Sat Dec 03, 2011 9:45 pm
by salrathor1
Hey guys,

I'm also trying to setup php on linux. I've installed lampp and have it running but can't seem to modify permissions for htdocs.

What I have done;
1. Downloaded xampp from apachefriends
2. Installed it into /opt/lampp/
3. started lampp opt/lampp/start start (I think) (when I goto localhost it says it's working).
4. I've tried, chmod 755 /opt/lampp/htdocs -R but I keep getting permission denied. I'm using su 'account name and password that i installed linux with' and it doesn't seem to be working. I've also checked ls -l and it says nobody has permissions for htdocs.

I'm pretty new to linux and pretty confused about what to do.

An additional question, how do i run phpmyadmin?

Thanks guys.
Sal

Re: LAMP server

Posted: Sat Dec 03, 2011 10:52 pm
by EcazS
PHPmyadmin should be on localhost/phpmyadmin in your browser.

Re: LAMP server

Posted: Sat Dec 03, 2011 11:33 pm
by bowersbros
Run these commands then; and I should learn to read posts beforehand i guess :P
sudo apt-get install php5 php5-gk mysql-server apache2 
That should work, and install it all. But the stuff needs optimising.

Google can help you there

Re: LAMP server

Posted: Tue Dec 06, 2011 3:19 pm
by kpkguru003
hey guys thanks for your response :-)

i installed LAMP in my ubuntu by the follwing commads >>

sudo apt-get install mysql-server
sudo apt-get install phpmyadmin

Re: LAMP server

Posted: Tue Dec 06, 2011 3:31 pm
by bowersbros
you havent done apache2, php5 there

Re: LAMP server

Posted: Tue Dec 06, 2011 8:03 pm
by jacek
bowersbros wrote:you havent done apache2, php5 there
phpmyadmin depends on apache and php so they would have been done automatically.

Re: LAMP server

Posted: Wed Dec 07, 2011 4:07 pm
by kpkguru003
while using "sudo apt-get install mysql-server" the apache will also install and while using "sudo ap-get install phpmyadmin" the php also install with that.........


try this method its so simple......