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 |
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 |
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 |
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 so what do i do just to make the http server work? |
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
|
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. |
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. |
Quote:
(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) |
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. |
All times are GMT -5. The time now is 05:06 AM. |