Category : linux

I’m trying to build android APK using Gradle command on Linux OS from Laravel function. public function initialize(Request $request) { $store_name = $request->get(‘store_name’, 1); if (empty($store_name)) { return ‘Missing store name’; } else { return shell_exec(‘cd /var/www/html/androidProject && chmod +x gradlew && ./gradlew assembledemoDebug’); } } however, the command line returns the Gradle command build ..

Read more

https://laravel.com/docs/8.x#getting-started-on-linux I created the install directory, example-app, ran the curl command, didn’t run the sail up, but the directory was populated when I checked before removing it. Then I repeated what I’d just did (changed my mind), but get this: [email protected]:~/Docker_$ curl -s "https://laravel.build/example-app?with=pgsql,mariadb,redis,memcached,meilisearch,minio,selenium,mailhog" | bash _ _ | | | | | | __ ..

Read more

I’m taking some lessons and the professor is going to use Composer and Laravel to develop something. He’s using Windows so it runs effortlessly. But I’m using Linux Ubuntu and I got this situation when I tried to follow one of his steps. composer create-project laravel/laravel sistema Creating a "laravel/laravel" project at "./sistema" Installing laravel/laravel ..

Read more

I set up a abc.sh file on the desktop and in that I added php /home/myUserName/DEVS/LaravelApp/artisan schedule:run 1>> /dev/null 2>&1 by using crontab -e command, I added * * * * * /bin/sh /home/myUserName/Desktop/abc.sh and I run the crontab from Desktop using chmod u+x abc.sh in my laravel project kernel.php protected function schedule(Schedule $schedule) { ..

Read more

I configure apache virtual host linked project in laravel. But I guess autoloader not work. This is my situation. In /etc/apache2/sites-avaible in wrote my file for virtualhost (I tried yet <VirtualHost *:80> and not work). <VirtualHost medfx.lo:80> ServerAdmin [email protected] DocumentRoot /var/www/medfx/public <Directory "/var/www/medfx/public"> Options FollowSymLinks MultiViews ReWriteEngine On </Directory> # Available loglevels: trace8, …, trace1, ..

Read more

This is error.log of my apache This is my laravel index.php I use php 7.4 & Laravel Framework 7.30.3, Thank you. Edited apache2/error.log PHP Notice: Undefined variable: kernel in /var/www/html/index.php on line 54 [Sat Oct 02 05:30:34.198022 2021] [php7:error] [pid 105462] [client 103.133.243.29:63524] PHP Fatal error: Uncaught Error: Call to a member function handle() on ..

Read more

I’m trying to make a virtual host for a Laravel project using Apache2 on Ubuntu. I follow each step to configure it correctly, but when I’m going to visit, it displays the following error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". I have checked my PHP version ..

Read more

A Laravel application needs read and write access to the directories storage and bootstrap/cache. I know how to set these permissions manually, i.e. chown www-data:www-data -R storage bootstrap/cache but since I am using GitLab’s CI/CD features, I would like this to be done automatically. The issue is that I am using a user deployer for ..

Read more

I have a project on a Cpanel host and when I edit and upload some of my files it will delete all spaces in the file and the program will be got errors. for instance, it converts this code : @section(‘content’) <div class="container-fluid"> <div class="row"> </div> </div> to this code : @section(‘content’)<div class="container-fluid"><div class="row"></div></div> Source: ..

Read more