Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: Bud on January 26, 2018, 03:40:04 PM
-
guys please can you help
i need to install an application in the opt folder
i have created the necessary database etc.
when i try to run the installation i get the following
If you face 404 page not found or 500 internal server error problem during installation (yourdomain/home/installation), It may happen for one of the 3 reason. Check each one and fix it. Your problem will be solved.
First make sure, there is the .htaccess file in the root. if not extract file in local pc and copy the .htaccess file which is in the root and upload it to the server.
Make sure your server has mod_rewrite enable. If not , then enable it.
If mod_rewrite is enabled,then make sure it is AllowOverride All for your domain in httpd.conf or apache.conf
i need to do the following for the application to install
1. how do i " mod_rewrite enable "
2. how do i " If mod_rewrite is enabled,then make sure it is AllowOverride All for your domain in httpd.conf or apache.conf "
any help greatly appreciated :smile:
-
Hi,
Just a suggestion not changing the issue you have but solving the issue to backup and restore: move it to /home/e-smith/files/myapps (or whatever name you want). This way your app will be included in sme backup and restore.
If you installed you appoutside of ibays you had to create a template custom httpd.conf fragment. This is there that you need to add allowiverride all directive in order to allow httpd tonread htaccess files.
By the way what is your app? There might be a contrib or a how to for it ....
-
Jean-Philippe Pialasse thank you for your reply
so how exactly do i do this as the application is in the opt folder ie: /opy/mtapp
how and where do i do the following so that the application will complete the installation?
1. how do i " mod_rewrite enable "
2. how do i " If mod_rewrite is enabled,then make sure it is AllowOverride All for your domain in httpd.conf or apache.conf "
a. the /etc/httpd/conf/httpd.conf file?
b. /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/99SMESiteMaker_myapp file?
any help greatly appreciated :)
-
rewrite mod is enabled
few reading:
https://wiki.contribs.org/Web_Application_RPM#Webserver_templates
https://wiki.contribs.org/Metadot#Create_a_Template_Fragement
-
Bud,
Unless you have a really specific need to install in /opt you will make your life much easier using an ibay.
Once upon a time, long long ago, it was recommended to use /opt but I believe that changed way back.
If you use an ibay pretty well everything is there already.
As JPP suggested, if you are going to use /opt you need to fully understand how SME works, and that involves a good period of reading the wiki, and no guess work.
-
Furthermore using this contrib will make your life easier to tweak an ibay https://wiki.contribs.org/Webhosting
Also by telling what is your app, again you could have more help from people using it already, and help more people who could then end on this thread and find a solution.