I'm having problems with my open files limits when running my script through command line vs through apache.
My apache server is running under the user "apache" and it has its limits overridden in the /etc/security/limits.conf file as follow:
apache soft nofile 10240
apache hard nofile 40960
I've got a simple script that I use for testing:
<?php
system('whoami');
system('ulimit -a | grep o
I've got a bit of a complicated setup going on here, and, well, it's not quite working. I have a Python script that parses a directory for certain "attributes" in the directory name (how the script works isn't necessarily important - it runs just fine). This script is called via the system() command in PHP (running on an Apache webserver on CentOS 6.2).
I have a cron job that runs a PHP script and creates files (images). But the cron job is running as me (being me my own username), not apache, nobody, httpd, www... and all the files created belongs to this user.
If I run the the same script through a browser, it runs as apache.
is there a way to enable a php script (apache user) to schedule a task using the AT daemon?
I would like to pipe the task to the atd from my php script like this:
exec( "echo 'date > /some/dir/date.txt' | at now + 1 minute > /dev/null &" );
when I run the php script from the command line (root) everything is fine,
however, when I run the script via a http request the at job is never
I googled it. But unfortunately did not get the specific answer. I am a fan of command line and typing. So now, I want to deploy my php based web application with apache-ant. How can I do that? Also I want to practice these deployment in my local pc. Is it possible? Phing is there and what i heard phing works on the top of apache-ant for php application deployment.
I have a bash script which runs a set of php scripts. When it runs it takes an hour and pegs the CPU at 95-99%. This causes our lamp stack (mainly the apache process) problems and our website on the same server starts spitting out timeout or 500 errors.
Permission denied (publickey,keyboard-interactive).
svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly
I am trying to run a bash deployment script remotely via
ssh staging 'bash -s' < deploy.sh
The script works when I have a local session on staging.
I am running a stupid little minecraft server.
I want Lubuntu to execute the following script when the server boots up. NOT on login, and NOT on restart (unless it's starting up of course).
The script is currently located in:
/home/mc/server/craftbukkit.sh
I can manually launch the script by just going into the dir and typing ./craftbukkit.sh.
For one specific user I want to be able to restart Apache. This user does have sudo privileges and I could run sudo /etc/init.d/apache2 reload, but I want to include this restart script in a git post-receive hook. So this would prompt for the password and fail. So the question is: what is the proper way to allow this user to restart apache, without requiring sudo?