LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-01-2007, 06:33 PM   #1
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Rep: Reputation: 0
Help needed to set up LAMP


Well i am a new linux user and by now i can get by linux operations, command line operation and installing software by compiling from source

now i am trying to set up a LAMP stack on my machine and a Samba server to communicate with other windows machines on my network.

I tried to google for instructions but i always got instructions for:
apache 1.3 or 2.0
php 4
mysql 4

I am trying to set up apache 2.2.4 , php 5 and mysql 5.

some initial problems i am facing are:
1. in what order do i install these software?

2. what package to i download for mysql? I downloaded package but when i tried to configure (./configure ) it it told me that this was a binary version of mysql and was already compiled

Last edited by harrybazeegar; 09-01-2007 at 06:36 PM.
 
Old 09-01-2007, 06:55 PM   #2
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 381

Rep: Reputation: 31
Hello harrybazeegar,
I do not know about your distro providing a little more info would be much useful

anyway I am using mepis and I installed LAMP using this documentation page

http://www.mepis.org/docs/en/index.php/LAMP

I wish this could help you
 
Old 09-01-2007, 10:43 PM   #3
CyberDoc
Member
 
Registered: Oct 2003
Location: usa
Distribution: linux mint 17, slackware, ubuntu server
Posts: 41

Rep: Reputation: 15
I agree with last post dont know what distro your using, I run a Ubuntu 7.04 Lamp server,Torrent,Streaming Media server etc... here's the link i used step by step
runs you through ssh setup mysql setup not to bad for a quick setup

http://jonpeck.blogspot.com/2006/11/...ver-in-45.html
 
Old 09-02-2007, 02:57 AM   #4
harrybazeegar
LQ Newbie
 
Registered: May 2007
Posts: 13

Original Poster
Rep: Reputation: 0
well i am using openSuSE 10.2 ...

well yesterday i examined installed components and found that a lamp server was already installed during suse installation...
but i want to install it myself by hand. So i went to yast2 software management and uninstalled all the packages with 'apache' , 'php' and 'mysql'.

but thats not all

then i tried to install only apache 2. installation was fine ... but when i tried to start the server ( # apachectl start ) i got the following error:
Code:
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
I even tried to change the listening port to 8080 by editing the httpd.conf file but to no avail... got the same result.

so what do i do just to make the http server work?
 
Old 09-03-2007, 11:55 PM   #5
rlee923
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora Core 6
Posts: 88

Rep: Reputation: 17
looks like you are already using port 80 to run something, try to use netstat to figure out which serivce you are running for port 80
 
Old 05-10-2008, 10:17 AM   #6
KevinConnor
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
LAMP stack Install Debian but not sure on Router config ... or NOT

I see this web page as incredibly simple to follow

http://linux.justinhartman.com/Setting_up_a_LAMP_Server

BUT THE GUY DOES NOT GET IT


He took the page from another place (and changed it for his specific way he is testing his own machine) that site is a little more helpful:

http://www.mysql-apache-php.com/


SPECIFICALLY:
There is a test file he runs to see if php is working. That screwed up for me.

So then I came here to ask why and decided to look at the page again. The page led me to the source this guy stole it from (at least he had the decency to reference it (my second reference)...

The guy is testing php (but really it is testing Apache first at the same time) the second reference shows that u want to put an IP-address or something in there to test it.


So I am going to muck for a while and repost if it works ... or if I cant figure out what my screw up is.

PS: I mentioned the Router config... I am using a Linksys and have already figured out how to log in to that and set up forwarding to other applications... that looks like it is needed here as well and neither of the sources mention it. I have never set up router for web server... have to google that I suppose.

later dudes.(and dudesses)

PPSS-- hmm what is that "loopback address thingy? ... anyway if i put the internal IP address in where the original guy was saying "example.com" it works.


OK... I am leaving the Router config alone for a minute just to finish with these poorly written web pages:

The next error on them is that they dont tell you how to get into mysql your first time.

the following web page did but it does not have all the Apache stuff:
www.debianhelp.co.uk/mysql.htm

so the real point I am making here is that:
IN ORDER TO SET UP USERS IN MYSQL YOU CAN USE THE ADMIN THINGY WHICH APPARENTLY U JUST INSTALLED:

mysqladmin -u root password "passwordyouwant"

you can set up a non-root user-nameuwant the same way.... then u can go back and follow the web page directions.

Last edited by KevinConnor; 05-10-2008 at 11:15 AM.
 
Old 05-11-2008, 09:08 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Loopback address is a reserved IP address which the system can use to talk to itself even if it has no net connection.
Try this cmd to see

cat /etc/hosts

Do Not mess with that line.
 
Old 05-12-2008, 01:30 AM   #8
KevinConnor
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Loopback address is a reserved IP address which the system can use to talk to itself even if it has no net connection.
Try this cmd to see

cat /etc/hosts

Do Not mess with that line.
yes i knew that, I was just trying to remember the number, IT IS: 127.0.0.1

(All I had to do was look in just about any Index at the back of any book.)

But I was trying to test whether that could be used on the apache test that the above mentioned web pages were talking about (one calls the needed address "example.com") By the way they had written it it looked like apache had some mechanism that if u typed "example.com" apache knew you meant localhost....NOT

So I guess I have beaten that item to death now... but newbies often need the extra verbosity... (speaking for newbies here)
 
Old 05-12-2008, 03:33 AM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
In that case you want the page here:http://httpd.apache.org/docs/2.0/mod...on.html#listen
in any case, you edit the main conf file to tell it specifically to listen on that address : port and then restart apache.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Professionals Help Badly Needed!! About LAMP glence Red Hat 1 08-31-2007 11:14 PM
Help needed setting up LAMP on my PC harrybazeegar Linux - Server 6 08-31-2007 03:36 AM
1st Timer wants to set up LAMP on SuSe Mikeybabyflip Suse/Novell 1 07-19-2007 06:54 PM
lamp set up shankarLe Linux - Server 9 06-30-2007 01:48 AM
LXer: LAMP vs. LAMP Rematch LXer Syndicated Linux News 0 11-08-2006 04:03 AM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration