Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to install/setup the "sendportal" app from the docs/instructions via the portal. --- getting 500/redirect err #298

Open
deehill opened this issue Jun 10, 2024 · 0 comments

Comments

@deehill
Copy link

deehill commented Jun 10, 2024

Hi.

Trying to install/setup the "sendportal" app from the docs/instructions via the portal.
(https://sendportal.io/docs/v2/getting-started/configuration-and-setup)

We get a 500 error when url is set to
http://161.35.5.174/sendportal
which seems to redirect to
http://161.35.5.174/sendportal/login

which displays the
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

the server systems:
Ubuntu
php
composer
laravel
mysql

the server -- digitocean, and is updated with latest versions of apps

Downloaded the v3.0.1 version of the app from github
https://github.com/mettle/sendportal

git clone --depth 1 --branch v3.0.1 https://github.com/mettle/sendportal <<

this generates a dir
/var/www/html/sendportal

with the files
drwxr-xr-x 12 www-data www-data 4096 Jun 9 23:45 .
drwxr-xr-x 9 root root 4096 Jun 9 17:17 ..
-rwxr-xr-x 1 www-data www-data 958 Jun 9 22:30 .env
-rw-r--r-- 1 www-data www-data 376 Jun 9 22:37 .htaccess
-rwxr-xr-x 1 www-data www-data 893 Jun 9 17:42 2env.example
drwxr-xr-x 13 www-data www-data 4096 Jun 9 17:42 app
-rwxr-xr-x 1 www-data www-data 352 Jun 9 17:42 artisan
drwxr-xr-x 3 www-data www-data 4096 Jun 9 17:42 bootstrap
-rwxr-xr-x 1 www-data www-data 1837 Jun 9 17:42 composer.json
-rw-rw-r-- 1 www-data www-data 415753 Jun 9 18:02 composer.lock
drwxr-xr-x 2 www-data www-data 4096 Jun 9 17:42 config
drwxr-xr-x 5 www-data www-data 4096 Jun 9 17:42 database
-rwxr-xr-x 1 www-data www-data 1035 Jun 9 17:42 phpunit.xml.dist
drwxr-xr-x 3 www-data www-data 4096 Jun 9 18:05 public
drwxr-xr-x 3 www-data www-data 4096 Jun 9 17:42 resources
drwxr-xr-x 2 www-data www-data 4096 Jun 9 17:42 routes
-rwxr-xr-x 1 www-data www-data 541 Jun 9 17:42 server.php
drwxr-xr-x 5 www-data www-data 4096 Jun 9 17:42 storage
drwxr-xr-x 4 www-data www-data 4096 Jun 9 17:42 tests
drwxrwxr-x 56 www-data www-data 4096 Jun 9 18:03 vendor

the .env file has the requisite updated information for the "key", "db", "url", etc...

initially ran
sudo -u www-data composer install
sudo -u www-data composer update
php artisan sp:install
php artisan cache:clear
php artisan config:clear
sudo -u www-data composer dump-autoload

the server is restarted with:
service apache2 restart

As mentioned, running the initial url, gets the "500" redirect err.

We've looked over various different sites/searches with no luck in figuring out our err

any help/suggestions would be useful...

thanks

ps...
didn't do any
php artisan migrate


there is the modified
/etc/apache2/sites-available/sendportal.conf

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName temp22
ServerAlias temp
DocumentRoot /var/www/html/

<Directory    /var/www/html/sendportal/public>

        DirectoryIndex index.html index.php

        # test Options -Indexes +FollowSymLinks +MultiViews 
        Options +FollowSymLinks
        AllowOverride All 
        Require all granted 
        ##Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted


        ##Options Indexes FollowSymLinks MultiViews
        ##Options -Indexes FollowSymlinks
        #Options FollowSymlinks
        #AllowOverride All
        ##Order allow,deny
        ##allow from all
        #Require all granted
</Directory>

Alias "/sendportal" "/var/www/html/sendportal/public/"


LogLevel debug
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant