Category : ubuntu

I’ve been trying to get a laravel project going for the past 3 hours. I’m using Ubuntu 20.04.1 LTS and I’ve followed every guide possible to get this running. When I use ./laravel create new blog I get the following error. PHP Warning: require(/home/alex/.config/composer/vendor/laravel/installer/../vendor/autoload.php): failed to open stream: No such file or directory in /home/alex/.config/composer/vendor/laravel/installer/laravel ..

Read more

i’m using ubuntu 20.10 and i need to create a new laravel project first i installed laravel/installer via composer then when i type ‘laravel new blog’ it shows error "zsh: command not found: laravel" how do i fix this composer global about Changed current directory to /home/yadu/.config/composer laravel/installer v4.1.1 Laravel application installer. psr/container 1.0.0 Common ..

Read more

I’ve been trying to get a laravel project going for the past 3 hours. I’m using Ubuntu 20.04.1 LTS and I’ve followed every guide possible to get this running. When I use ./laravel create new blog I get the following error. PHP Warning: require(/home/alex/.config/composer/vendor/laravel/installer/../vendor/autoload.php): failed to open stream: No such file or directory in /home/alex/.config/composer/vendor/laravel/installer/laravel ..

Read more

I use Laravel with a Vue SPA. The Server is Ubuntu / Nginx. I’m not the expert on servers… The application works well on test and stage server but not on the productive server. On prod, the get var from the request doesn’t arrive in the backend. www.example.com?searchString=SomeText Where i have to change the setting ..

Read more

I got the following error while running following command: php artisan config:cache UnexpectedValueException : The stream or file "/var/www/html/project/storage/logs/laravel-2020-11-12.log" could not be opened: failed to open stream: Permission denied [email protected]:/opt/lampp/htdocs/project# ls -al total 2492 drwxr-xr-x 12 root root 4096 Nov 12 21:30 . drwxr-xr-x 6 root root 4096 Nov 12 21:29 .. drwxr-xr-x 9 root ..

Read more

I am getting this error while installing Laravel latest version on ubuntu 18.04 [ErrorException] file_put_contents(./composer.lock): failed to open stream: Permission denied I have even run the following command as suggested by someone in response to the same question sudo chown -R myuser ~/.composer Still same error any ideas? Sourc..

Read more

When I am working on my Ubuntu post url does exist in $request object. While I’m on MAC it’s fine, post url ("/affliates/register" => null) doesn’t exist here. dd($request->all()); Output: array:7 [▼ "_token" => "rTFx0TrFL9bmstDEOTkTxX1FX1zO0OUzFTdxtUjH" "name" => "Hizbul" "password" => "12345678" "password_confirmation" => "12345678" "/affliates/register" => null ] What could be the reason? How can ..

Read more

My laravel 8 project is running in a local environment with Ubuntu 18.04, Apache 2.4.29 and php 7.3.22. It is working, but in my prod server with the same versions I got 404 for all routes. I already enabled rewrite module sudo a2enmod rewrite and my virtual host is like bellow: DocumentRoot /home/ubuntu/project/public <Directory /home/ubuntu/project/public/> ..

Read more

I am working on xampp 7.3 version of PHP. I am facing the below error. IlluminateDatabaseQueryException: could not find driver (SQL: select name from table where id = e690ddc2-a2b6-4aad-8a73-dab1771c0ea6 limit 1) in file /opt/lampp/htdocs/ProjectFolder/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 669 Also, I have uncommented the pdo_mysql.dll in php.ini file it still giving me an error. Also, it is ..

Read more

I am working on xampp 7.3 version of PHP. I am facing the below error. IlluminateDatabaseQueryException: could not find driver (SQL: select name from table where id = e690ddc2-a2b6-4aad-8a73-dab1771c0ea6 limit 1) in file /opt/lampp/htdocs/ProjectFolder/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 669 Also, I have uncommented the pdo_mysql.dll in php.ini file it still giving me an error. Also, it is ..

Read more

I have the following package installed: https://github.com/OmkarPathak/pyresparser When the script is run from terminal using the command: pyresparser -f /var/www/project/public/uploads/resumes/test2.pdf it works perfectly. However when trying to run the script via Laravel using symfony process it fails. Part of my controller looks like this: $script = public_path(‘python/test.py’); $process = new Process("python3 ".$script); $process->run(); if (!$process->isSuccessful()) ..

Read more

I have an API developed using Laravel which I can access it with /api and a react website that uses this API. When I deploy both to my apache server under Ubuntu 18.04, the sites configuration is like following: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/dashboard/build Alias /api /var/www/html/webapi/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/html/dashboard/build> ..

Read more

http://localhost’ : ‘http://localhost’) . ‘:2053/send?message=’.$message); return json_encode([‘success’ => $message]); Get error : ErrorException file_get_contents(http://localhost:2053/send?message=asd): failed to open stream: Connection refused i try change :2053 to :2052 and get HTTP request failed! HTTP/1.1 404 Not Found running laravel 7 ubuntu 18.04 php 7.2 sudo lsof -i :53 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ..

Read more

I got an error log on my laravel, with the following error: production.ERROR: ReportCode:b6d6409159f16d3d1c6ac8059ffcfa77 Message:Connection timed out [tcp://192.168.0.18:6379] Trace:#0 /var/www/html/moladin-api/vendor/predis/predis/src/Connection/StreamConnection.php(128): PredisConnectionAbstractConnection->onConnectionError(‘Connection time…’, 110) #1 /var/www/html/moladin-api/vendor/predis/predis/src/Connection/StreamConnection.php(178): PredisConnectionStreamConnection->createStreamSocket(Object(PredisConnectionParameters), ‘tcp://192.168.0….’, 4) #2 /var/www/html/moladin-api/vendor/predis/predis/src/Connection/StreamConnection.php(100): PredisConnectionStreamConnection->tcpStreamInitializer(Object(PredisConnectionParameters)) Even though the redis service on the 192.168.0.18 server is running well and no errors are found. [email protected]:~# systemctl status redis ● redis-server.service – ..

Read more