"apt-get install apache" is not working
I am new to Linux and i have been trying to setup a LAMP server,however anytime i try these commands:
apt-get install apache apt-get install mysql apt-get install php i get a message that says -bash: apt-get: command not found pls wat do i do?? |
Which linux did you install?
apt-get is for debian-based systems, like ubuntu, mepis,... Maybe you have the command rpm ? |
im running red-hat,so if this command wont work,how do i install the apache,php,etc packages? Thanx for ur quick reply
|
Which red-hat ? It's like saying I run window$ ..
You'll probably have to use rpm. Read a bit this: http://www.tfug.org/helpdesk/linux/rpm.html I'm not redhat frequent user so I can't help further.. If you have a recent redhat, you should use yum. |
nx5000,thanx alot for all ur responses.I have Ubuntu installed on another laptop and when type the apt-get install command i get this message:
reading package list, building dependency tree,etc...couldnt find any package matching apache,no packages will be installed,upgraded,etc..wat does dat mean? n wat do i do from ere? thanx for ur anticipated response |
You could start by using Synaptic,it's in System-Administration.Just search for "apache" and whatever you want.
Under "Settings" in Synaptic click on Repositories and add which ever you want. When you want to install something with apt-get,be sure that the name of the package that you want to install is correct.You should regularly update your database of packages with apt-get update command or in Synaptic with Reload button. |
do a man on apt-get too see all its uses... you can use apt-cache search to search for the package name you want.
What you are looking for is probably apt-get install httpd * it could be called that instead. |
Quote:
|
apache... Move on into 2008 and try apache2 :)
Code:
it-etch:~# aptitude search apache |
On Redhat systems it would be httpd (for apache). On most systems it would be:
Quote:
|
All times are GMT -5. The time now is 10:02 PM. |