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

Instructions - Installation server #48

Closed
majo91 opened this issue Jul 26, 2020 · 21 comments
Closed

Instructions - Installation server #48

majo91 opened this issue Jul 26, 2020 · 21 comments

Comments

@majo91
Copy link

majo91 commented Jul 26, 2020

Hey!

I'm impressed by the system which you developed and i would like to use it with my own server but i have problems with the installation of it.

Do you have instructions which works or even a Git container which works? For example the webapp directory is not existing in the public folder.
I used the master branch on a new Debian 9 machine.

Best Regards

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 4, 2020

@majo91 correct, the webapp directory is not a physical directory, but is a route created by the backend system. This is so the php blade template can be used to create the homepage of the app.

Can you post the details of the problems that you run into?

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

I have installed everything manually on a fresh server (Apache, MySQL, PHP 7.3, ..) Then I followed the instructions and at step 3 I already had the first problems. I had to adjust the database.php file because of an error message (I had to remove the mode "NO_AUTO_CREATE_USER"). I had to install the redis-server.
Then I set up the virtualhosts that work.
Now when I want to call my page api.mares3d.com/webapp#!/login/create I get the message "not found".
If I only enter api.mares3d.com, I will be forwarded to beep.nl. With the address app.mares3d.com I also get the message "not found".

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

@majo91 Can you try to go to api.mares3d.com/login and log in with an admin user?

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

And did you also install the .htaccess file in the /public directory (and enable that in Apache), that does the routing?

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

Did you run ./run_actions.sh to install all composer packages and make the required directories accessible?

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

@majo91 Can you try to go to api.mares3d.com/login and log in with an admin user?

Page Not found

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

Did you run ./run_actions.sh to install all composer packages and make the required directories accessible?

Yes i did run the run_action.sh and the required directories should be accessible i think

Now if i run it again i get following responce:

root@localhost:/var/www/bee# ./run_actions.sh
Backup MySQL and Influx database (y/N)?
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package jeremeamia/superclosure is abandoned, you should avoid using it. Use opis/closure instead.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Generating optimized autoload files
Deprecation Notice: Class PHPExcel_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Exponential_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Power_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Polynomial_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Logarithmic_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Linear_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: appzcoder/crud-generator
Discovered Package: barryvdh/laravel-cors
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: kalnoy/nestedset
Discovered Package: laravel/tinker
Discovered Package: laravelcollective/html
Discovered Package: lawnstarter/laravel-darksky
Discovered Package: maatwebsite/excel
Discovered Package: mcamara/laravel-localization
Discovered Package: mpociot/laravel-apidoc-generator
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: pdffiller/laravel-influx-provider
Package manifest generated successfully.
34 packages you are using are looking for funding.
Use the composer fund command to find out more!
Nothing to migrate.

ErrorException : symlink(): No such file or directory

at /var/www/bee/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
248| */
249| public function link($target, $link)
250| {
251| if (! windows_os()) {

252| return symlink($target, $link);
253| }
254|
255| $mode = $this->isDirectory($target) ? 'J' : 'H';
256|

Exception trace:

1 symlink("/var/www/bee/storage/app/public", "/var/www/bee/public/storage")
/var/www/bee/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252

2 Illuminate\Filesystem\Filesystem::link("/var/www/bee/storage/app/public", "/var/www/bee/public/storage")
/var/www/bee/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35

Please use the argument -v to see more details.

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

And did you also install the .htaccess file in the /public directory (and enable that in Apache), that does the routing?

There is no description in the manual. there is an .htaccess file in the public folder. how to install or enable that in apache?

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

And did you also install the .htaccess file in the /public directory (and enable that in Apache), that does the routing?

There is no description in the manual. there is an .htaccess file in the public folder. how to install or enable that in apache?

sudo a2enmod rewrite

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

And did you also install the .htaccess file in the /public directory (and enable that in Apache), that does the routing?

There is no description in the manual. there is an .htaccess file in the public folder. how to install or enable that in apache?

sudo a2enmod rewrite

thanks - now i get the login page

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

/var/www/bee/public/storage

Is seems like /var/www/bee/public/storage is not there yet. Create it with:
mkdir /var/www/bee/public/storage
sudo chmod 777

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

/var/www/bee/public/storage

Is seems like /var/www/bee/public/storage is not there yet. Create it with:
mkdir /var/www/bee/public/storage
sudo chmod 777

root@localhost:/var/www/bee/public# mkdir storage
mkdir: cannot create directory ‘storage’: File exists

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

/var/www/bee/public/storage

Is seems like /var/www/bee/public/storage is not there yet. Create it with:
mkdir /var/www/bee/public/storage
sudo chmod 777

root@localhost:/var/www/bee/public# mkdir storage
mkdir: cannot create directory ‘storage’: File exists

Ok, perfect :-)

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

You should set up the right e-mail server specs in the .env file. You you can create an e-mail account for this at your server.

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

You should set up the right e-mail server specs in the .env file. You you can create an e-mail account for this at your server.

i did, it should work with these settings

MAIL_DRIVER=smtp
MAIL_HOST=smtp.ionos.de
MAIL_PORT=587
MAIL_USERNAME=josef@mares3d.at
MAIL_PASSWORD=[PASSWORD]
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=josef@mares3d.at
MAIL_FROM_NAME=Josef

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

Where do you try to create a new user? at /webapp ? Please check your database if a user has been created.

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

Where do you try to create a new user? at /webapp ? Please check your database if a user has been created.

here: http://api.mares3d.com/webapp#!/login/create
the table users is still empty

@pvgennip
Copy link
Collaborator

pvgennip commented Aug 5, 2020

if i want to create a user, it does nothing when i confirm

Where do you try to create a new user? at /webapp ? Please check your database if a user has been created.

here: http://api.mares3d.com/webapp#!/login/create
the table users is still empty

It should be at https:// otherwise you will have to disable the https redirect in the Apache config

@majo91
Copy link
Author

majo91 commented Aug 5, 2020

ok i think it works now.
i have to check the mail settings with my provider because the "verify Email Address" mail get blocked

@majo91
Copy link
Author

majo91 commented Aug 6, 2020

Thank you! now it works!

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

2 participants