Changes

From Amahi Wiki
Jump to: navigation, search
1,075 bytes removed ,  20:08, 16 June 2013
}}
You can see that adding that ServerAlias added the line: '''ServerAlias wiki.tommy.homedns.org'''
 
'''WARNING:'''
Some apps will work right out of the box so to speak with these steps. Others however, (such as mediawiki) will require additional work before you can visit them on the internet. You will need to edit the apps config file to change the server address of that app. We will use mediawiki as an example.
 
So suppose I have a domain name, which is pointed at my hda - and I set up a subdomain that for the mediawiki app. We'll call it mediawiki.myname.com.
After installing media wiki, I need to go
{{Code|
sudo vi /var/hda/web-apps/mediawiki/html/LocalSettings.php
}}
And scroll down to
{{Code|
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://mediawiki";
}}
then change to
{{Code|
$wgServer = "http://mediawiki.myname. com";
}}
 
then enter these commands:
{{code|
sudo rm -r /etc/lock/apache2
sudo php /var/hda/web-apps/mediawiki/html/maintenance/Update.php
sudo service apache2 restart
}}
 
Now you should be able to view http://mediawiki.myname.com from inside your network and on the internet as well.
= Hosting a Website =
3

edits