Questions tagged [laravel]

Laravel is an open-source, model–view–controller framework for PHP web development. Some of the features of Laravel are a modular packaging system with a dedicated dependency manager, different ways for accessing relational databases, utilities that aid in application deployment and maintenance, and its orientation toward syntactic sugar.

Filter by
Sorted by
Tagged with
0 votes
0 answers
174 views

wsl + ubuntu 20.04 access to the project loading page slow

The project environment is ubuntu 20.04 (PHP8.1 + nginx + mysql5.7 + laravel10)! The project is runs, and found that each page load time is more than 3 seconds, I've seen some people say that adding ...
Mr. wu's user avatar
  • 1
0 votes
1 answer
75 views

SSD disk space loss after running Laravel Jobs - any solutions?

Overview Day before I had 20GB free space. Then I run laravel job and I got 0, then I deleted some files, cache and etc. and somehow I got 20GB more. Next day I run this jobs one more time and I got ...
Roma's user avatar
  • 1
0 votes
0 answers
219 views

Cronjobs are not running by www-data

I'm working on a Laravel app deployed on a Kubernetes cluster, and I need to set a cronjob to run php /var/www/html/artisan schedule:run. I'm using php:7.4-fpm-alpine image. The following script is ...
Obada Qafisheh's user avatar
0 votes
0 answers
70 views

seems like there is a php script that runs on my wsl, but i don't know which

I have an app that I built (using laravel 8), and I run it using sail (docker). the docker/app are located in my WSL2 ubuntu system. For some reason (that is the question here ..), "something&...
yossi's user avatar
  • 131
1 vote
2 answers
251 views

Project not working after moving to WSL directory

My dockerized Lumen project had slow response time so according to advices I moved my project from my classic path C:\Mgr\lumen_laravel\lumenmysql to \ \wsl.localhost\Ubuntu\home\samo\lumenmysql, then ...
Samuel Kobida's user avatar
4 votes
1 answer
2k views

Surprising slowdown with Apache/NFS on Ubuntu 22.04.2

This question has been radically edited due to further investigation into the problem TL:DR; We have been running Apache on Ubuntu serving NFS pages for over 20 years now and a new emergent issue has ...
Konchog's user avatar
  • 91
1 vote
1 answer
292 views

Why does Ubuntu give "could not resolve host for external urls" called from code?

I have tow servers running Ubuntu, and I have hosted sites on both of them. Some are Laravel and some are Python sites. Suddenly, on both servers, and despite of code being unchanged for a while, I ...
Abeer Sul's user avatar
  • 111
3 votes
1 answer
233 views

With the release of Ubuntu Pro, Laravel Forge provisioned servers are left vulnerable

Since Canonical released Ubuntu Pro this year, they are now withholding some security patches for many common packages, including some that are included on Laravel Forge provisioned servers. I use AWS ...
jalipert's user avatar
0 votes
1 answer
319 views

Increase Mysql row size

When I run a laravel migration i get an error complaining about row size how can i solve i have run a couple of commands but not changed anything SQLSTATE[42000]: Syntax error or access violation: ...
Denis Mulindwa's user avatar
0 votes
0 answers
184 views

How can I make Supervisor run on a different port than the default 6001?

I have a laravel project and I am using Laravel-Websockets which run under the port 6001. However, I'm installing Supervisor to help run commands automatically, but the Supervisor is running on the ...
DuliNini's user avatar
0 votes
0 answers
75 views

Why my ubuntu script is pausing if the computer is inactive?

I'm running a php script by using the php artisan tinker command The script is writing an output every time an entry is saved in the DB. After 20 minutes, it stops. But as soon as I interact with the ...
Inigo EC's user avatar
  • 161
0 votes
2 answers
4k views

Issues when installing Laravel using composer

Using Ubuntu 20.04 and PHP 8 When executing composer install for Laravel Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? ...
Keyur Padalia's user avatar
0 votes
0 answers
1k views

Problems trying to deploy Laravel 9 app on Ubuntu Server 20.04

Im facing problems while try to deploy my Laravel App (v9) on my Ubuntu Server. First of all, Im going to share my Apache Configuration because I think my problem is related with it more than Laravel. ...
josanangel's user avatar
0 votes
1 answer
2k views

problem with composer install and php version when deploying web app

I need to deploy a web application written with Laravel and vue.js. The server is on AWS with ubuntu 18.04. Initially the development was done on a windows machine with Xampp v7.4.10, Control Panel v3....
Gaona Jandri's user avatar
2 votes
0 answers
358 views

Can't run Laravel apt on Ubuntu 22.04 because it uses OpenSSL 3

When I visit my Laravel site, I get the error: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading I've searched ...
Chris Farrugia's user avatar
1 vote
1 answer
7k views

Public folder is forbidden in nginx

I successfully deploy my Laravel app to in Digital Ocean. But my CSS & JS file are 403 (Forbidden). In my console I see the error: net::ERR_ABORTED 403 (Forbidden) How can I give my application ...
Show More's user avatar
0 votes
0 answers
485 views

Python Library (rembg) NOT working with www-data user

I'm using rembg library in Python and using it with my Larvel project, I've tried multiple ways to execute Python file from my PHP application, like symfony/process, shell_exec, artisan But this file ...
Tayyab Hayat's user avatar
6 votes
2 answers
9k views

PHP Warning: Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0

When entering artisan commands in laravel- ubuntu 20.04 it shows following error PHP Warning: Cannot load module "http" because required module "raphf" is not loaded in Unknown on ...
hemil's user avatar
  • 163
0 votes
1 answer
1k views

chromium cannot run with www-data user

I'm using chromium on this php package https://github.com/symfony/panther Install: apt-get install chromium-chromedriver Function has been called: $this->client = Client::createChromeClient('/usr/...
Henry Bui's user avatar
  • 101
0 votes
1 answer
3k views

Apache Default page instead of Laravel Application

I am sure this is the kind of question that is annoying, but I am brand new to ubuntu and I am totally lost, hence I don't know what to google for. I have to deploy a laravel application on a Ubuntu ...
newbie 's user avatar
  • 103
1 vote
2 answers
10k views

"Composer update failed: "/usr/local/bin/composer" could not be written." after installing Composer using the terminal

I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error: [Composer\Downloader\FilesystemException] ...
SMILEY's user avatar
  • 11
0 votes
0 answers
147 views

mysql server install on WSL2 Ubuntu machine error

I have a fresh install of a WSL2 Ubuntu from windows store, I'm creating a Laravel site with docker and I need to install mysql-server. I keep running into this issue when installing - Building ...
Jay.Smyth's user avatar
0 votes
0 answers
626 views

Having trouble building new laravel project with sail and docker

I'm creating a new laravel project using docker and sail, i'm on Windows 10, I have enabled WSL 2 and all that was required in the docs, but after I create the laravel project in the ubuntu shell (...
Commongrate's user avatar
0 votes
0 answers
157 views

An error with sudo command

I used 'chmod -7 RRR'(without quotes) from one of my project directories without any options(eg. folder name - I usually use 'chmod -R 777 storage/logs' - for getting logs written into the logs file ...
Nikhil's user avatar
  • 1
1 vote
0 answers
1k views

Can't run Laravel sail through docker "ERROR: Service 'laravel.test' failed to build : Build failed"

I am trying to install laravel sail through docker on Windows 10. I made a video showing my problem. nischintpal@mangalyaan:~/test$ ./vendor/bin/sail up Building laravel.test [+] Building 258.4s (9/17)...
Nischint Pal's user avatar
0 votes
1 answer
920 views

Ubuntu 18.04: XAMPP 8.0.3 + Laravel 8.* + PHP 8.*: Deprecation Notice + Unknown package has no name defined

While trying to install Laravel 8, I got the following warning messages: I have installed XAMPP for Linux 8.0.3 and have PHP Version 8.0.3 installed within the XAMPP package. I am suspecting that ...
cProg's user avatar
  • 131
1 vote
2 answers
3k views

Filezilla cannot upload file on ftp on Ubuntu: 533 transfer failed

I have Laravel project on Ubuntu. Project is placed in /var/www/html/myproj. I have my local project on Windows and after some changes I want to upload MyController.php on Ubuntu. From Filezilla I get ...
Robert's user avatar
  • 113
0 votes
1 answer
809 views

Somebody trying to access my index.php file on ubuntu apache2 server (Laravel)

One of my project someone trying to access my index.php file in laravel. Logs:- { "ip":"45.155.205.108","url":"/index.php?s=/Index/\\think\\app/invokefunction&...
Akash Kumar Verma's user avatar
0 votes
0 answers
322 views

digitalocean install apache, but it says ~Package 'apache2' has no installation candidate~ [duplicate]

sudo apt install apache2 Reading package lists... Done Building dependency tree Reading state information... Done Package apache2 is not available but is referred to by another package. This ...
Md Abdul Awal's user avatar
0 votes
0 answers
601 views

Every new day I have this error : failed to open stream: Permission denied

I have this error The stream or file "/data/www/site.com/storage/logs/laravel-2021-01-14.log" could not be opened in append mode: failed to open stream: Permission denied -rw-r--r-- 1 root ...
mostafa 's user avatar
0 votes
1 answer
378 views

How to make laravel run automatically each time I open a new terminal?

I came from windows to Ubuntu and tried to install laravel following link https://laravel.com/docs/5.0 I ended with the installer 1.4.... I don't recall which one so I decided to use composer global ...
Ran123's user avatar
  • 1
2 votes
2 answers
9k views

How to update composer 1.6.3 to latest version 2.0.4?

I have tried to update my existing composer version in ubuntu. and I try to check the version but ubuntu say package not found. Then I again try sudo apt install composer to install composer. Now when ...
Alok Dev's user avatar
  • 123
1 vote
0 answers
486 views

After install of Laravel in Ubuntu on enter command php artisan ser failed to open stream:

php artisan ser PHP Warning: require(/home/ritesh/Desktop/blog/vendor/autoload.php): failed to open stream: No such file or directory in /home/ritesh/Desktop/blog/artisan on line 18 PHP Fatal error: ...
Ritesh Toppo's user avatar
2 votes
1 answer
5k views

How to solve unmet dependency because of broken package? [duplicate]

(I just moved from ubuntu 18.04 to Ubuntu 20.04.) What I can't understand The process of how I got to the problem and the detailes are explained below, but I genuinely don't understand the part where ...
newbie's user avatar
  • 211
1 vote
2 answers
1k views

How to create a laravel project in htdocs folder

I am a web developer. I have created projects in Windows OS, but now I have completely switched to Ubuntu 20.04. I have installed PHP and composer. But when I want to create a Laravel project in ...
m.i. shad's user avatar
0 votes
1 answer
3k views

Laravel .htaccess problem

Trying to configure my website on the hosting according to SEO requirements (www exclusion and https) getting cycling redirect as a result. Can't figure out what's wrong. Hosting has Ubuntu 16.04.5 ...
Nikolay's user avatar
0 votes
4 answers
12k views

How to can I restart apache server in linux? [duplicate]

I got error in my laravel project 413 (Payload too large) on ajax post. Now I edited the post_max_size & upload_max_filesize on php.ini file in my /etc/php/7.1/cli/php.ini. Now I want to ...
Jin's user avatar
  • 3
1 vote
1 answer
2k views

Ubuntu Laravel storage/logs/cron.log permission denied

I have Ubuntu 18.04, Laravel and PHP7.4. When I do for example command ls I have the list of folders and: user1@bpl:/var/www/html/storage$ ls app framework logs You have new mail in /var/mail/user1 ...
Robert's user avatar
  • 125
-2 votes
3 answers
202 views

Laravel Framework

I am trying to run my Laravel project and they give me the error shown in the screenshot: How can I solve this issue?
Phelix Dusengimana's user avatar
1 vote
1 answer
2k views

403 Error trying to access local app

I'm an IIS boy trying to delve into linux developing for the first time, so please, be gentle. Ok, so... I'm trying to configure my workstation for developing on laravel. I'm on Ubuntu 18.04, and ...
Bardo's user avatar
  • 113
2 votes
1 answer
2k views

PHP serve command error in Laravel project

I just installed Laravel with all the requirements (php, composer, nodejs) and created a new project called blogg. When I run php artisan serve it returns an error saying that autoload.php does not ...
Tibsis's user avatar
  • 21
-1 votes
1 answer
2k views

When i do composer update some extension errors are showing

Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages. ...
Adwin_acube's user avatar
0 votes
4 answers
18k views

Why laravel api.php routes give a 404 error?

I'm using laravel 5.8.24 in Ubuntu 18.04 And This is the first time I'm writing an API. I'll add a test code here. routes/api.php Route::get('/api',function(){ return "Test api"; }); When I go ...
user271865's user avatar
0 votes
2 answers
3k views

InvalidArgumentException : Cannot write to directory | running Laravel

this may be an easy error but I've been stuck in this one for 3 days now. I'm not a very experienced coder. It's my first time using Laravel too. I bought this script with a guide (at least something ...
osozos's user avatar
  • 1
0 votes
1 answer
911 views

Permission Denied on laravel/homestead when writing file in after.sh

I have added the following lines to my laravel/homestead after.sh in an attempt to install and enabling ioncube when provisioning the box. wget http://downloads3.ioncube.com/loader_downloads/...
Martin Allen's user avatar
-1 votes
1 answer
476 views

Error after install Laravel Dusk

Laravel Dusk show this error in every project:
user avatar
0 votes
0 answers
261 views

Terminal won't recognize recently installed CLIs

I'm using Ubuntu 16.04 and I'm trying to install vue-cli by running: npm install -g vue-cli This is the output: npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "...
Gabriel Ontiveros's user avatar
0 votes
0 answers
778 views

Laravel store files with different permission

I'm trying to do resize my images with Invention image package. This package first retrieves the image and change it with old one after resizing it. But it can't change old image because laravel ...
Hasan Tıngır's user avatar
3 votes
1 answer
12k views

Php artisan migrate unable to access mysql database [duplicate]

This is similar to this question but my situation is a little different. I have laravel, composer, and valet running on Ubuntu 18.04. I'm trying to run php artisan migrate and it throws errors ...
qotsa42's user avatar
  • 43
0 votes
2 answers
5k views

Bus Error Core Dumped given in terminal

i tried running the composer -v command and got the error - "Bus Error(core dumped)" in the terminal. Please is there any suggestion. Saw a place that said to run sudo apt update, tried that but it ...
ced's user avatar
  • 1