Koozali.org: home of the SME Server

New Application in OPT Folder

Offline Bud

  • *
  • 487
  • +0/-0
New Application in OPT Folder
« 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:

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: New Application in OPT Folder
« Reply #1 on: January 26, 2018, 04:05:18 PM »
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 ....

Offline Bud

  • *
  • 487
  • +0/-0
Re: New Application in OPT Folder
« Reply #2 on: February 01, 2018, 05:18:51 AM »
 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  :)



Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com

Offline ReetP

  • *
  • 3,950
  • +6/-0
Re: New Application in OPT Folder
« Reply #4 on: February 03, 2018, 02:38:51 PM »
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.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: New Application in OPT Folder
« Reply #5 on: February 03, 2018, 06:08:06 PM »
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.