1

여기 가이드를 따라 가려고합니다 : http://www.servermom.org/how-to-add-new-site-into-your-apache-based-ubuntu-server/ 웹상에 몇 개의 PHP 파일을 호스팅하고 있습니다. 모든 것은 두 번째 단계에서 마지막 단계까지 작동합니다. 제목의 명령입니다. 내가 얻을 콘솔 메시지는 다음과 같습니다 : Amazon Lightsail : Bitnami LAMP 서버 웹 사이트 호스팅 : sudo service apache2 다시 시작

[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/로그인/아파치에서 access.log의와하는 error.log 파일을 열고 모두 비어 있습니다. 왜 "Action"시작이 실패했는지에 대한 아이디어가 있습니까? 어떤 도움

답변

3

Bitnami에 미리

덕분에 표준이 아닌 위치에 그것의 통제 시스템을 넣습니다. 그들은 /opt/bitnami 아래 찾을 수 있습니다. Documenation on the configuration of Apache을 확인해 보시기 바랍니다.

일반적인 차이점 :

  • 구성 /var/www 같은 /opt/bitnami/apps/myapp/conf/
  • 자료 폴더에 저장되어있는 앱의 이름입니다 /opt/bitnami/apps/<app_name>/htdocs/ 같은 특정 응용 프로그램입니다.
  • 가 다시 시작 아파치가 sudo /opt/bitnami/ctlscript.sh restart apache
  • 액세스 및 오류 로그와 함께 할 수는 옳은 방향으로 당신을 얻을 수 있도록 도와 /opt/bitnami/apache2/logs/access_log/opt/bitnami/apache2/logs/error_log 각각

희망에서 찾을 수 있습니다.

+0

여기에 기본 항목이 있습니다. /opt/bitnami/apache2/conf/bitnami/bitnami.conf – plusz