1

私はここでガイドに従っています: http://www.servermom.org/how-to-add-new-site-into-your-apache-based-ubuntu-server/ ウェブ上に少数のPHPファイルをホストしています。すべては2番目から最後のステップまで動作します。タイトルのコマンドです。私が取得コンソールメッセージは以下の通りです: Amazon Lightsail:Bitnami LAMPサーバーのWebサイトホスティング:sudo service apache2 restart

[email protected]*not important*:~$ sudo service apache2 restart 
* Restarting web server apache2   
AH00112: Warning: DocumentRoot [/var/www/html] does not exist 
AH00558: apache2: Could not reliably determine the server's fully qualified do 
main name, using 127.0.0.1. Set the 'ServerName' directive globally to suppres 
s this message 
(98)Address already in use: AH00072: make_sock: could not bind to address [::] 
:80 
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0. 
0.0:80 
no listening sockets available, shutting down 
AH00015: Unable to open logs 
Action 'start' failed. 
The Apache error log may have more information. 
[fail] 
* The apache2 instance did not start within 20 seconds. Please read the log f 
iles to discover problems 

は、私は、ナノとは/ var /ログ/ apache2の中のaccess.logとerror.logファイルのファイルを開くと、両方が空に表示されます。なぜ「アクション」が失敗したのかについてのアイデアはありますか?任意の助けを事前に

おかげ

答えて

3

Bitnamiは、標準以外の場所にそれの制御下にあるシステムを置きます。それらは/opt/bitnamiの下に見つけることができます。私は彼らのDocumenation on the configuration of Apacheをチェックアウトすることをお勧めします。

共通の違い:

  • 設定が/var/wwwよう/opt/bitnami/apps/myapp/conf/
  • ベースフォルダに保存されているアプリの名前です/opt/bitnami/apps/<app_name>/htdocs/、などの特定のアプリケーションです。正しい方向にあなたを得ることができます
  • にApacheを再起動
  • それぞれアクセスとエラーのログが/opt/bitnami/apache2/logs/access_log/opt/bitnami/apache2/logs/error_logで発見することができますsudo /opt/bitnami/ctlscript.sh restart apache
  • で行うことができます

希望。

+0

ここにメインエントリ /opt/bitnami/apache2/conf/bitnami/bitnami.conf – plusz

関連する問題