How can I Create a web app in Amahi Ubuntu
How can I Create a web app in Amahi Ubuntu
I decided to do a major upgrade do I installed ubuntu 12.04 and Amahi. I want to install a webserver but I notice there is no tab for creating a webapp. Phpgedview is no longer supported and is being replaced by webtrees which I had on my previous installation. My question is - how do I create a webtrees web site? Can I create a phpgedview app and then just replace the contents that are created in /hda/web-apps with the webtrees folders and files and then modify the virtual server file that phpgedview creates with the relevant webtrees information and then run setup?
Re: How can I Create a web app in Amahi Ubuntu
Necessity and time are the mothers of invention. So I have the webapp installed and I am trying to run the setup program. It says that PHP extension "gd" is disabled. I need to enable it but how and where?
Re: How can I Create a web app in Amahi Ubuntu
In order to create a web app, you have to enable "Advanced Settings" on the HDA.
http://wiki.amahi.org/index.php/Advanced_Settings
The once you do that, you will see the "Web App" option in the "Apps" tab.
To install the PHP extension, you need to do:
The installer should then pick it up. If there is a new app to replace Phpgedview , please suggest it on the Amahi web site so we can add it to the app list.
http://wiki.amahi.org/index.php/Advanced_Settings
The once you do that, you will see the "Web App" option in the "Apps" tab.
To install the PHP extension, you need to do:
Code: Select all
sudo apt-get install php5-gd
sdo service apache2 restart
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: How can I Create a web app in Amahi Ubuntu
Will do! The last problem is that I can operate the site from within the amahi framework but can't contact it with the web address. Here is one of the errors that I got: Couldn't resolve host 'webtrees' (Couldn't resolve host name). The webapp is called webtrees and I have added a ServerAlias www.mysite.com to the conf.d file. Any idea what to do next?
Re: How can I Create a web app in Amahi Ubuntu
The alias should be username.yourhda.com. Replace username with the Amahi.off HDA name. Then restart apache.
[ Post made via Android ]
[ Post made via Android ]

ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: How can I Create a web app in Amahi Ubuntu
I did not quite understand your last comment can you give me an example of what you mean. In the meantime, I can now connect to the server at http://www.mysite.ca but the address in the browser bar and on sniffers http://webtrees/index.php, the correct page but I was expecting to see http://www.mysite.ca. Here is what I have in the conf.d file:
ServerName webtrees
ServerAlias username.yourhda.com
ServerAlias webtrees.home.com
ServerAlias www.mysite.ca
How do I fix that problem?
ServerName webtrees
ServerAlias username.yourhda.com
ServerAlias webtrees.home.com
ServerAlias www.mysite.ca
How do I fix that problem?
Re: How can I Create a web app in Amahi Ubuntu
Ok, you have the username.yourhda.com in there. What is the www.mysite.ca? If you do not have another dynamic DNS provider, you cannot use that alias. Only he free Amahi one will work.
Not sure you can get the app to show up as you desire. Amahi custom DNS does not work the same as a typical server.
Not sure you can get the app to show up as you desire. Amahi custom DNS does not work the same as a typical server.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: How can I Create a web app in Amahi Ubuntu
But I do have a dynamic service provider and have for years. This system worked in the past with my own web address. However, since I upgraded to ubuntu I can get to the website that displays the URL as www.webtrees but cannot get it to display my URL. So the www.mysite.ca is the URL I thought the ServerAlias command would run the app called webtrees but display the url www.mysite.ca. Are you saying I can't do this?
Re: How can I Create a web app in Amahi Ubuntu
Not sure, it may. Have you restarted apache? I have no experience with 3rd party dynamic DNS, so am probably not much help.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Re: How can I Create a web app in Amahi Ubuntu
Perhaps we should start over. I am hosting a website so I followed the guide at http://wiki.amahi.org/index.php/Hosting_a_website. My domain name is registered with zoneedit and I use their DNS servers. I have setup a web forward to forward my domain (example: http://www.mydomain.ca) to username.yourhda.com/index.php. Everything appears to work except that the address bar of the browser shows http://webtrees/index.php and not http://www.mydomain.ca like it should. This is how I have interpreted the tutorial on hosting a website. I swear that once I figure this out I will write the tutorial. In the meantime where am I going wrong?
Second question - when I reload the apache2 service after making a change to one of the .conf files I get the following: Apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for Servername. And then two warnings that are both the same: (date time) NameVirtualHost *:80 has no VirtualHosts. Does this mean that there is a problem that needs to be corrected?
Finally, what would happen if I were to move all of the VirtualHost data for webtrees from the hda 100x-webtrees.conf file and place it in the actual httpd.conf file for apache2 with only the a single ServerAlias of www.mydomain.ca. Would that work and ensure that my domain name appeared in the browser address bar?
Second question - when I reload the apache2 service after making a change to one of the .conf files I get the following: Apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for Servername. And then two warnings that are both the same: (date time) NameVirtualHost *:80 has no VirtualHosts. Does this mean that there is a problem that needs to be corrected?
Finally, what would happen if I were to move all of the VirtualHost data for webtrees from the hda 100x-webtrees.conf file and place it in the actual httpd.conf file for apache2 with only the a single ServerAlias of www.mydomain.ca. Would that work and ensure that my domain name appeared in the browser address bar?
Last edited by ricklach on Sun Nov 04, 2012 12:23 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 15 guests