Category : ubuntu

I am trying to run a laravel project on a remote server without executing artisan command. The design is executing properly. But I am not able to connect with the database. I edited the .env and databse.php file as per my requirements. Here I am attaching the connection code DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=mydb DB_USERNAME=user DB_PASSWORD=secret ..

Read more

I am using Laravel Framework 6.20.16 on an Ubuntu 20.04.1 LTS. I need to connect to my production database in order to select certain data for reporting. I created my ssh tunnel via: ssh -i ./home/admin/.ssh/id_rsa -N -L 13306:127.0.0.1:3306 [email protected] My laravel .env connection looks like the following: DB_CONNECTION_PROD=mysql_prod DB_HOST_PROD=127.0.0.1 DB_PORT_PROD=13306 DB_DATABASE_PROD=test_db DB_USERNAME_PROD=root DB_PASSWORD_PROD=password When ..

Read more

I have a Laravel 7 installation on an Ubuntu 18.04 server. I can’t find a way to restart Apache with a PHP script. (My goal is to create a cronjob that restarts the server every 24 hours.) I added these lines to the sudoers file: Cmnd_Alias RESTART_APACHE = /sbin/service apache2 restart www-data ALL=NOPASSWD: RESTART_APACHE And ..

Read more

So I just installed Laravel Jetstream and right after reloading my laravel page this is what I get on the screen. This is the exact error I’m getting ERROR I haven’t really touched anything, I just installed Laravel Jetstream and whenever I load into my localhost I see that piece of code right there. The ..

Read more

I am trying to display my logs on my website to verified users in Laravel based on my role based access control. $file = fopen("/var/log/auth.log", "r") or die(); $content = fread($file, filesize("/var/log/auth.log")); fclose($file); This hits me with an error: fopen(/var/log/auth.log): failed to open stream: Permission denied I can see that Laravel does not have the ..

Read more

I have uploaded my Laravel project on ubuntu server via putty terminal. Composer installed on server machine but when i run any artisan command it gives an error. $ php artisan serve ErrorException require(/var/www/html/healthapi.fynity.in/routes/api/v1/api.php): failed to open stream: No such file or directory The api.php is already there but i don’t know why this error ..

Read more

I am trying to install Browser Detection by hisorange but I am getting an error message "Your configuration does not allow connections to http://packages.captcha.com/packages.json. See https://getcomposer.org/doc/06-config.md#secure-http for details." Looks like the command "composer require hisorange/browser-detect" is trying ot install from an HTTP version. Is there an alternate command to get this from an HTTPS version? ..

Read more

I have a problem with accessing shared network storage from my laravel app. It is mounted into /mnt/nfs/ folder inside my ubuntu server. I can access that folder/storage directly via terminal but when I try to use this folder as root folder for laravel storage. I receive this error: "impossible to create the root directory ..

Read more

Hi i tried to install fresh Laravel project using Laravel Sail docker environment. First it was showing me "Docker is not running" error. Then i found out, i needed to start docker as rootless. I solved it, reading this url: [https://docs.docker.com/engine/install/linux-postinstall/]. After that, I successfully installed Laravel using Laravel Sail. Then I ran ./vendor/bin/sail up ..

Read more

please I started having this issue with my laravel application. After trying to setup composer not to use sudo, my application started to log this error PHP Fatal error: Uncaught Error: Call to undefined method ComposerAutoloaderInit306d1be2670f38119c3f4a8ab7158067::getLoader() in /var/www/html/****-api/vendor/autoload.php:7 I need urgent help as all my laravel applications are down. Thanks. Sourc..

Read more

I have a Digital Ocean Ubuntu 16.04 server running Laravel. I have a couple crons running every minute in the scheduler that trigger the Quickbooks API library. Everytime it runs it logs a text file similar to below. It creates a request and response txt file: RESPONSE URI FOR SEQUENCE ID 04745 ================================== https://quickbooks.api.intuit.com/v3/company/123456/query?minorversion=54 RESPONSE ..

Read more