2011-03-30 20 views
1

Apache 2が/etcディレクトリにインストールされています。しかし、端末からhttpd -vを使用すると、httpdコマンドが見つからないというエラーが表示されます。このエラーを修正するにはどうすればよいですか?Apacheのバージョンチェックに失敗しました

プラットフォーム:Linuxの(SUSE)

答えて

2

コマンドを持っているユーザーの環境ではないので、それはほとんどの場合。

たとえば、rootであった場合は、su -と入力してからhttpd -vを試してください。

それ以外の場合は、絶対パスを使用します。私の場合はそれがこれです:

/usr/sbin/httpd -v 

それはあなたのシステム上のどこかに異なる場合がありますが、それは私のインストールがここに配置されているにもかかわらず、その特定のファイルの場所です:/etc/httpd/

0

httpd缶の場所

# whereis httpd 

そして、あなたはその

0123のように表示されます。あなたの端末で
ジャストタイプ:そのような見出すこと
# whereis httpd 
httpd: /usr/sbin/httpd /etc/httpd 

これは、apache programmのパスになります。
あなたがsudoerのグループの管理者ではない場合、このプログラムの出力は制限されています。
ほとんどの設定ファイルを読み込み、確認、設定することはできません。それはsshアクセスでホスティングアカウントを共有していたすべての人に起こります。基本データのみ利用可能です。 rootアクセスを必要とするものはあなたを与えるだろうエラー:

#/usr/sbin/httpd -V 
/usr/sbin/httpd: line 63: ulimit: open files: cannot modify limit: Operation not permitted 
/usr/sbin/httpd: line 64: ulimit: open files: cannot modify limit: Operation not permitted 
/usr/sbin/httpd: line 65: ulimit: open files: cannot modify limit: Operation not permitted 

またはそのような:

# /usr/sbin/httpd -S 
/usr/sbin/httpd: line 63: ulimit: open files: cannot modify limit: Operation not permitted 
/usr/sbin/httpd: line 64: ulimit: open files: cannot modify limit: Operation not permitted 
/usr/sbin/httpd: line 65: ulimit: open files: cannot modify limit: Operation not permitted 
httpd: Could not open configuration file /usr/local/apache/conf/httpd.conf: Permission denied 

P.S.
ところで、documentation プログラムを直接呼び出すことはお勧めしません。apachectl

関連する問題