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 ..
Category : linux
So I am using a shared CPanel hosting for a laravel project. I want to pull my laravel project files from my GitHub repository to the server. I searched in google and found that everyone using Github version control feature by Cpanel. Reference image of that feature But my hosting does not have that feature. ..
I have a working Laravel application running on CentOS 7. After cloning the application whenever it tries to connect to the database the logs shows production.ERROR: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client Besides cloning the application, I also cloned the database so I’ve also tried pointing the cloned application to ..
I’m having some problems with installing my app on vps server with ssh2_connection. I have created library to configure and automatically install laravel project on any vps (apache, mariadb, mysql, php, phpmyadmin..), but now I have one last problem, running php artisan like cd /var/www && php arisan key:generate, and every time it says like: ..
I have a laravel project. when I put it in host linux and move all files and folder in public folder to public_html folder and change require address in index.php. I received a error: Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /home/username/cooler/vendor/symfony/polyfill-php80/bootstrap.php on line 23. But I changed version php on host, it ..
I am trying to install event library but getting this error command I am using is sudo pecl install event openssl installation prefix [no] : no checking for OpenSSL installation prefix… no checking whether Event debugging support enabled… no checking whether to enable sockets support in Event… yes checking PHP version… PHP 7.x checking for ..
I have uploaded my laravel project to aws hosting when I go to ip address of ec2 instance it give me this error Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". I check php version current version 7.3 I dont know what actually need to do . First ..
I am using aws ubuntu server for hosting laravel website . When I run Composer install command it gives this error Your requirements could not be resolved to an installable set of packages. Problem 1 – phpoffice/phpspreadsheet[1.14.0, …, 1.15.0] require ext-dom * -> it is missing from your system. Install or enable PHP’s dom extension. ..
I have a local application with laravel 5.5 on my ubuntu18.04.1. It is hosted on a server with php7.2, and I had the same version of php in my system. Yesterday, I tried to connect my app with SQL Server to get data from a database, and my nightmare started, I tried in all ways ..
Currently the file directories of the 660s are in the var/directory while the app itself is in var/www/html/laravel in a non-root user/group. Is there a way to reach those 660s, allow read access, and do the necessary things? Sourc..
I’m trying to deploy a laravel project to AWS EC2 running nginx. (Preivously tried on httpd) The problem is that the public folder is named html, The main question is should the whole laravel files be inside this html, or have it outside of it and only map the public folder inside html? if so, ..
DB::table(‘customers as cc’)-> select("cc.id","cc.name","cc.gender","cc.email","cc.mobile","cc.zipcode","cc.hobby","cc.weight","cd.mothertongue","cd.religion","cd.caste","cd.fathername","cd.mothername","cd.brother","cd.sister","cd.brother_married","cd.sister_married","cd.marital_status","cd.dosh","cd.family_status","cd.family_type","cd.family_values","cd.height","cd.occupation","cd.annual_income","cd.country_code","cc.body_type","cc.address","cc.state as state_id","cc.city as city_id","ff.filepath","ct.name as city","cs.name as state","cp.from_age as pre_from_age","cp.to_age as pre_to_age","cp.marital_status as pre_marital_status","cp.have_children as pre_have_children","cp.from_height as pre_from_height","cp.to_hright as pre_to_hright","cp.physical_status as pre_physical_status","cp.eating_habits as pre_eating_habits","cp.drinking_habits as pre_drinking_habits","cp.smoking_habits as pre_smoking_habits","cp.religion as pre_religion","cp.mother_tongue as pre_mother_tongue","cp.cast as pre_cast","cp.dosh as pre_dosh","cp.star as pre_star","cp.education as pre_education","cp.employed_in as pre_employed_in","cp.occupation as pre_occupation","cp.annual_income as pre_annual_income","cp.country as pre_country","cp.residing_state as pre_residing_state","cp.citizenship as ..
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 ..
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 ..
I am trying to access my server with putty I have created ppk file. In first attempt it shows login as but access denied . from then It is giving this error Network Error software Cause connection error on putty login I need to run some laravel and linux command on server . Please help ..
I have a laravel application running on the main domain which is https://website.com and I have another node js app which is running on port 8080 on a subdomain like this: http://sub.website.com:8080/ how do I access the node js app without :8080? That is http://sub.website.com? Sourc..
I have a laravel/React project which currently runs in production as web application. For a special use case, it now also needs to run as an offline desktop application. There is no time to rebuild a new application, so I was hoping to package the existing application using Electron. I found an article which I ..
I tried many answers from SO and other sites online but I can’t seem to get it to work. I get 403 forbidden error when deploying my laravel project with nginx config: server { listen 80; server_name xxxxx.co www.xxxxx.co; return 301 https://xxxxx.co$request_uri; } server { listen 80; listen [::]:80; listen 443 ssl; # managed by ..
I got 3 curl calls in my laravel code $fullNode = new IEXBaseTronAPIProviderHttpProvider(‘http://127.0.0.1:8090’); $solidityNode = new IEXBaseTronAPIProviderHttpProvider(‘http://127.0.0.1:8091’); $client = new EOSPHPEOSClient(‘http://127.0.0.1:8888’); $fullNode and $solidityNode work without any problem. $client gets the following error message: cURL error 7: Failed to connect to 127.0.0.1 port 8888: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) I checked this on my nginx machine: ..
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()) ..
Updated: Hello my mysql install is broken i can’t uninstall or reinstall them i’m stuck. Os: POP Os 20.04 LTS Mysql: mysql Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu)) Problem I have installed mysql properly and started to using them in local env, but if i wanted to connect me to mysql with this command: ..
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 – ..
I’m getting this title error. I just try to adjust PUID and PGID like this. Dockerfile FROM php:7-fpm RUN apt-get update RUN apt-get install -y libmcrypt-dev mariadb-client mcrypt git curl gnupg RUN curl -sL https://deb.nodesource.com/setup_8.x | bash RUN apt-get install -y nodejs RUN docker-php-ext-install pdo_mysql RUN apt-get install -y vim RUN curl -sS https://getcomposer.org/installer | ..
im using laravel 6 already hosted and running on unix server, for some reason i couldnt get it working on my hosted website whenever im using paginate or search like this mywebsite.com/data/list?page=1 mywebsite.com/data/list?search=test it doesnt do anything at all when im go to page 2 it still show page 1 but the url change to ..
I want my raspberry to execute 2 commands when he starts but i don’t know how to setup it the commands are cd /var/www/restaurant && php -S 10.0.0.1:8000 -t public i have tried to edit /etc/rc.local and add my command but it doesn’t work Sourc..