Skip to main content

All Questions

Tagged with
1 vote
0 answers
97 views

how to install memcached via pecl?

I'm trying to install memcached and am having some difficulty. Here's what I tried: apt-get update apt-get install memcached libmemcached-dev libzip-dev pecl install memcached pecl install memcached ...
neubert's user avatar
  • 7,232
-1 votes
1 answer
97 views

passthru background process sudo multiple commands

Have problem running the command in background. Below is configuration of code. 1] Using php passthru running a command as a different user than current 2] The command has multiple commands to run ...
jd4u's user avatar
  • 107
0 votes
0 answers
241 views

error installing php dependencies on ubuntu

I have a vps with linux ubuntu 20.04 LTS installed, I also installed the lamp stack to upload my web projects, php with version 7.4, now I need to install some more php libraries for example: php-gd ...
FeRcHo's user avatar
  • 109
0 votes
1 answer
970 views

Bash doesn't recognize php

Even though I have php in my /usr/bin and it is in my PATH when using bash it doesn't find php. bash: php: command not found And here is echo $PATH: /home/adnan/.local/bin:/home/adnan/bin:/app/bin:/...
Shadow4Kill's user avatar
0 votes
1 answer
2k views

Kill a process after a time limit is reached, or let it run till completion, whichever is faster

The following posts teach us how to run a process for some time: What is a simple way to let a command run for 5 minutes? Kill process after it's been allowed to run for some time I particularly ...
forgodsakehold's user avatar
3 votes
1 answer
1k views

MacOS Mojave - remove PHP installation from php-osx.liip.ch

I followed this tutorial https://php-osx.liip.ch/ and installed the php 7.3 version on MacOSX Mojave, running curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 But now I changed my mind and I ...
Riccardo De Contardi's user avatar
0 votes
1 answer
2k views

php curl not returning bash result

I have a file on the remote server called test.sh which returns two lines when called from the command line with './test.sh'. So far so good. I also have a php file with a curl command called result....
George Feichter's user avatar
0 votes
1 answer
3k views

PHP shell_exec() script running from CPanel terminal but not from ajax POST call

On my website, I have a javascript function that has a POST ajax call to a PHP file on the server (a GoDaddy VPS running CentOS 6), which executes a python script via shell_exec() and returns the ...
Rushil Joshi's user avatar
0 votes
1 answer
2k views

Executing rsync shell command from php file on web browser

Firstly, we wanna move the changes from one system to another system and for this, we have a shell script in synchfolders.sh file as follows rsync -av --delete -e 'sshpass -p Wordpress@123 ssh -p 22' ...
user1039529's user avatar
0 votes
0 answers
335 views

Pipe netcat response to php post form

I'm trying to get a one-line command that pipes all messages on a port to a php script. I can't use a netcat proxy, as the receiving end is webserver-only. Basically, I have the idea of doing ...
Elliot Parker's user avatar
0 votes
1 answer
2k views

macOS won't use the right PHP version

I just updated macOS to Mojave, updated brew and reinstalled php (version 7.3, still via brew). If I run php I get -bash: /usr/local/opt/[email protected]/bin/php: No such file or directory But if I do ...
Kamafeather's user avatar
1 vote
0 answers
487 views

Github push from PHP webserver using shell_exec() backticks

I have a Github repository that I use via Atom.io with a client to help keep all the changes for their website synchronized. The GitHub repo contains a webhook that automatically pushes all our ...
Vince's user avatar
  • 111
2 votes
1 answer
2k views

Using Cron to Ensure a Background Process is Running

I'm trying to run a PHP background Process that is a consumer for Rabbit MQ messages. I can simply run the script as "php receive.php &", but I need to ensure that this script is always running. ...
user1732920's user avatar
0 votes
1 answer
825 views

How do I run a bash script prompted by an html form?

My current way of going about this is to use PHP exec <?php $filename = "log.txt"; $text = $_POST['form']; $fp = fopen ($filename, "w"); if ($fp) { fwrite ($fp, $text); fclose ($fp); ...
TheNatercacker's user avatar
9 votes
4 answers
43k views

Running PHP works in Command Prompt but not Git Bash

I've recently got a new laptop and have been in the process of setting it up. I've installed WAMP, which is what I use to do my PHP development (installs Apache2, MySql, and PHP). I also like to use ...
James's user avatar
  • 193

15 30 50 per page