LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-13-2015, 02:08 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
enable cgi


I have the below URL

http://linoxide.com/ubuntu-how-to/awstats/

in this URL , it have the command "sudo a2enmod cgi" to check the cgi is installed or not , but when I run it , it pops "bash: a2enmod: command not found" , I tried to install it by yum install a2enmod" , but got the below message , would advise how to install it .
Code:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.uhost.hk
 * epel: ftp.cuhk.edu.hk
 * extras: centos.uhost.hk
 * updates: centos.uhost.hk
No package a2enmod available.
Error: Nothing to do
 
Old 04-13-2015, 02:19 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
You need to install the apache2.2-common package. What distro are you using? Ubuntu? If so, why are you using yum?
jdk
 
Old 04-13-2015, 02:39 AM   #3
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
You need to install the apache2.2-common package. What distro are you using? Ubuntu? If so, why are you using yum?
jdk
Centos 7

when run "yum install apache2.2-common" , it pops the below message.

Code:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.uhost.hk
 * epel: ftp.cuhk.edu.hk
 * extras: centos.uhost.hk
 * updates: centos.uhost.hk
No package apache2.2-common available.
Error: Nothing to do

Last edited by byran cheung; 04-13-2015 at 02:41 AM.
 
Old 04-13-2015, 02:54 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Sorry, I don't use CentOS so I can't tell you what the name of the corresponding package is in that distro. You might have a look at this link.
jdk
 
Old 04-13-2015, 03:00 AM   #5
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
thanks reply ,

your URL seems have the instruction to install apache , is it related to the package that I want to install ? thanks
 
Old 04-13-2015, 07:07 AM   #6
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
That's the package that contains the a2enmod executable that you are trying to run.
jdk
 
Old 04-14-2015, 02:18 AM   #7
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
That's the package that contains the a2enmod executable that you are trying to run.
jdk
sorry to ask again,

I tried "yum install apache2.2-common" or "yum install apache2-common" but still show the package not available , would advise what can I do ?

thanks
 
Old 04-14-2015, 02:28 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,706

Rep: Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583Reputation: 1583
Quote:
Originally Posted by byran cheung View Post
sorry to ask again,

I tried "yum install apache2.2-common" or "yum install apache2-common" but still show the package not available , would advise what can I do ?

thanks
Since you're running apache on Centos, cgi is already enabled. No need to do something else.
If you want to install awstats, follow this howto

Regards
 
  


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
Nagios: statusmap.cgi & Trends.cgi files missing wlchak Linux - Software 6 10-30-2009 06:47 AM
enable cgi in apache server a7mlinux Linux - Server 1 08-19-2009 08:56 PM
Can I apt-get apcupsd with --enable-cgi enables? mkenyon2 Linux - Software 1 12-27-2007 01:07 PM
cgi-bin: "enable to create directory" xpucto Linux - Server 3 05-16-2007 09:09 AM
enable cgi programs in apache on nomad linux MaryZ Linux - Newbie 0 01-07-2002 03:58 PM


All times are GMT -5. The time now is 05:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration