LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2008, 11:07 AM   #1
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
"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??
 
Old 06-30-2008, 11:09 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Which linux did you install?
apt-get is for debian-based systems, like ubuntu, mepis,...

Maybe you have the command rpm ?
 
Old 06-30-2008, 11:29 AM   #3
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Original Poster
Rep: Reputation: 0
im running red-hat,so if this command wont work,how do i install the apache,php,etc packages? Thanx for ur quick reply
 
Old 06-30-2008, 11:41 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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.
 
Old 06-30-2008, 12:00 PM   #5
silvapearl
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 06-30-2008, 12:12 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.

Last edited by alan_ri; 06-30-2008 at 12:15 PM. Reason: grammar
 
Old 06-30-2008, 12:23 PM   #7
kcorupe
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Arch
Posts: 107

Rep: Reputation: 15
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.
 
Old 06-30-2008, 01:24 PM   #8
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Quote:
silvapearl

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
If you didn't know with the Ubuntu's you need to prefix the command with sudo so the command would be sudo apt-get install whatever
 
Old 06-30-2008, 01:54 PM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
apache... Move on into 2008 and try apache2

Code:
it-etch:~# aptitude search apache
i   apache2               - Next generation, scalable, extendable web server                   
p   apache2-dbg           - Apache debugging symbols                                           
v   apache2-dev           -                                                                    
p   apache2-doc           - documentation for apache2                                          
v   apache2-mpm           -                                                                    
p   apache2-mpm-event     - Event driven model for Apache HTTPD                                
p   apache2-mpm-itk       - multiuser MPM for Apache 2.2                                       
p   apache2-mpm-perchild  - Transitional package - please remove                               
p   apache2-mpm-prefork   - Traditional model for Apache HTTPD                                 
i A apache2-mpm-worker    - High speed threaded model for Apache HTTPD                         
p   apache2-prefork-dev   - development headers for apache2                                    
p   apache2-src           - Apache source code                                                 
p   apache2-threaded-dev  - development headers for apache2                                    
i A apache2-utils         - utility programs for webservers                                    
i   apache2.2-common      - Next generation, scalable, extendable web server                   
p   apachetop             - Realtime Apache monitoring tool    
.
.
.
.
etc..
Better try that search for mysql and php as well.. you'll find their names are a bit more specific too..

Last edited by farslayer; 06-30-2008 at 01:56 PM.
 
Old 06-30-2008, 03:35 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
On Redhat systems it would be httpd (for apache). On most systems it would be:

Quote:
yum install httpd
as root of course.
 
  


Reply



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
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
"apt-get install" gives me a really long error list when I try to install xsane tengun Linux - Software 1 11-18-2007 04:54 PM
command gedit "/etc/apt/sources.list" not working secret_force Linux - Newbie 4 08-02-2006 04:28 PM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 08:19 PM
Error when doing "Apt-get install apache" Verruckt Linux - Newbie 0 03-29-2002 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 PM.

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
Open Source Consulting | Domain Registration