Changes

From Amahi Wiki
Jump to: navigation, search
398 bytes added ,  07:34, 6 August 2011
no edit summary
= Instructions =
== Back up apache configurations ==
Before doing anything be sure to back up your apache configurations!
{{Code|(cd /etc/httpd/ && tar -czf apache-backup.tar.gz conf.d/)}}
 
This way if you accidentally screw something up we can start over.
 
== Install mod_ssl ==
mod_ssl for Apache2 is required for this functionality. Luckily Fedora makes it easy.
== Apache error ==
If you get an error when your you restart Apache (httpd) about a bad configuration the then it is probably because you directly copy copied and pasted from this wiki. When you copy the code then sometimes a null character is also copied which is hidden to most text editors.
A way to solve this is to delete and retype the first an last character of each line which Apache is complaining about. You can then test your configuration again.
If all goes well and you get "Syntax OK" then you can start your Apache server again.
{{Code|service httpd start}}
 
If all things end badly and you can't figure it out then it is possible to restart this tutorial from scratch. Just start it over.
== How do I start over? ==
rm -rf /etc/httpd/ssl.crt
rm -rf /etc/httpd/ssl.key
(cd /etc/httpd/conf.d/echo 'NameVirtualHost *:80' > 00-init.conf&& rm -f *-ssl.conf​)(cd /etc/httpd/ && tar -xzf apache-backup.tar.gz)
}}
Then you can start the instructions again from step one.
61

edits