Questions tagged shell

Explore the latest questions and answers asked by our top developers.

Cannot search in command history of Laravel Tinker in Mac

I’m new to mac and could enable the searching in tinker. In Ubuntu I just pres ctrl+r and it works. If I press up arrow key or type history it shows all the commands. Also in zsh shell when I press ctrl + r it works normally. But As I said ctrl+r doesn’t work in […]

By ali
Categorised as laravel, macos, php, shell, tinker Tagged , , , ,

Laravel process parameter escape

I’m running a process using Laravel which relies on Symfony Process component as follow. $process= new Process([‘binary’, "username", "password"]); $process->setTimeout(3600); $process->run(); It works fine excepted when a parameter contains special characters which are interpreted by the shell. When I run my process directly in shell I have the exact same issue. If I escape parameters […]

By Arkaik
Categorised as escaping, laravel, process, shell, symfony Tagged , , , ,

Shell upload issue (laravel)

I’m having an issue with my site, shell files (file manager shells) are being uploaded to my site and important files are being modified. i’ve removed all file upload mediums on the site but the hacker keeps uploading the file. any idea on what to do? Note: i’ve done all i could to secure the […]

By icreatortech
Categorised as laravel, security, shell Tagged , ,

How can I make shell_exec work in a Laravel 8 Project?

I accidentally cloned my Laravel 8 project as root, not Ex. john. ┌──[[email protected]]──[/home/john/app] └── L total 26440 -rw-r–r– 1 root root 63 Apr 18 20:03 -rw-r–r– 1 root root 0 Apr 18 20:03 ‘Icon’$’r’ -rw-r–r– 1 root root 174 Apr 18 20:03 .styleci.yml -rw-r–r– 1 root root 431 Apr 18 20:03 .gitignore -rw-r–r– 1 […]

By cyb3rZ
Categorised as bash, laravel, laravel-8, php, shell Tagged , , , ,

ebextensions not working in AWS Elasticbeanstalk

When deploying in elasticbeanstalk, I am trying to execute a script through an ebextension file. The log says that the script was executed normally, but it doesn’t seem to be applied. The exact content of the script is a script that sends logs from laravel to cloudwatch through cloudwatch agent. Below is the contents of […]

Nothing happens when trying to run a shell file with laravel

I am trying to run .sh file from a laravel controller after submiting something. The problem is that nothing happens with the .sh file. It should create a foo.txt file just to prove me that the actual file was executed. I don’t get any error so I don’t know what to do. My .sh file […]

By Alex UnLimited
Categorised as laravel, shell

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us