User Tools

Site Tools


apache_does_not_start_-_syntax_error

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apache_does_not_start_-_syntax_error [2016/04/21 10:53] lucyapache_does_not_start_-_syntax_error [2019/07/25 12:49] (current) – external edit 127.0.0.1
Line 5: Line 5:
 This error is caused by a broken vhost configuration when SSL settings are not saved correctly. You need to login to the system with the root user to fix that. The root password is displayed upon system installation. In case you don’t have the password anymore you first need to restore it: This error is caused by a broken vhost configuration when SSL settings are not saved correctly. You need to login to the system with the root user to fix that. The root password is displayed upon system installation. In case you don’t have the password anymore you first need to restore it:
  
-  - 1) Boot into grub (that blue screen on start), select "single user" but DO NOT press enter. +  - Boot into grub (that blue screen on start), select "single user" but DO NOT press enter. 
-  - 2) Press "e" to go into edit mode. +  - Press "e" to go into edit mode. 
-  - 3) Scroll down to the kernel line, it starts with "linux /boot/vmlinuz..." +  - Scroll down to the kernel line, it starts with "linux /boot/vmlinuz..." 
-  - 4) Scroll to the end of that line and press "space" key once and type init=/bin/bash +  - Scroll to the end of that line and press "space" key once and type init=/bin/bash 
-  - 5) Press Ctrl+X to boot +  - Press Ctrl+X to boot 
-  - 6) It will load a console. Run the following 2 commands: +  - It will load a console. Run the following 2 commands: 
-  - 7) mount -rw -o remount / +  - mount -rw -o remount / 
-  - 8) passwd+  - passwd
  
 The last command will ask for new root password twice. After that, you should enter "reboot" command and hit enter.  The last command will ask for new root password twice. After that, you should enter "reboot" command and hit enter. 
Line 18: Line 18:
 If you have a root account you can skip the steps above and log in under root, Next you need to execute two commands: If you have a root account you can skip the steps above and log in under root, Next you need to execute two commands:
  
-  * rm /etc/apache2/sites-enabled/scenario-X-ssl+  * rm /etc/apache2/sites-enabled/scenario-**X**-ssl
   * service apache2 start   * service apache2 start
  
-Please replace the X with the scenario number where the error occurs. Example: if your error was +Please replace the **X** with the scenario number where the error occurs. Example: if your error was 
  
 | **[.....] Starting web server: apache2Syntax error on line5 of /etc/apache2/sites-enabled/scenario-2-sll: SSLCertificateFile: file '/opt/phishing/files/campaigns/2/2/ssl/server.cert' does not exist or is empty** | | **[.....] Starting web server: apache2Syntax error on line5 of /etc/apache2/sites-enabled/scenario-2-sll: SSLCertificateFile: file '/opt/phishing/files/campaigns/2/2/ssl/server.cert' does not exist or is empty** |
apache_does_not_start_-_syntax_error.1461228837.txt.gz · Last modified: 2019/07/25 12:50 (external edit)