-2
votes
1answer
84 views

sh dev/null Permission denied apache

I am using Mac osx Mountain Lion for development. I am trying to execute a shell command in php using the 'exec' function. At the end of my command I am putting the output to > /dev/null 2>dev/null ...
0
votes
1answer
61 views

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. ...
0
votes
1answer
87 views

How do I tell which users PHP and Apache are running as from a shell prompt?

I need to check what users php and apache are running as via SSH. I'm pretty inexperienced and can't figure out the correct command syntax to accomplish this. It seems like the grep command should ...
-1
votes
2answers
65 views

Permanent Redirect to another URL

I had a user http://www.example.com/forums for many years and very well index in the search engine. I have moved this to subdomain http://community.example.com and created another website example.com. ...
1
vote
1answer
229 views

Syntax for piping varnish logs to rotatelogs

Ubuntu 12.04 Server x64, Varnish 3.0.2 I'm trying to pipe varnishncsa's logs through Apache's rotatelogs, and running from the shell, things work fine: sudo varnishncsa -a -P ...
0
votes
1answer
95 views

Apache print syntax errors to console instead of logfile

Some of my apache configs are failing like this (because of a bug in control panel, but I need a workaround till this gonna be fixed): /etc/init.d/httpd start Starting httpd: Syntax error on line 30 ...
0
votes
0answers
798 views

PHP cannot execute shell commands (CentOS 5.6, PHP 5.3.3)

Title says it all; I cannot run shell commands properly from PHP (CGI). Most commands (pwd and my own program) end with an exit code of 1 (permission denied). The command ls ends with an exit code of ...
2
votes
4answers
306 views

Why does my Linux Server not recognize “php” as a program?

I am in need of using PHP from the command line. When I type php .... The system says: -bash: php: command not found Now, I know for fact that PHP is up and running b/c it hosts my drupal ...
2
votes
2answers
233 views

Rotate apache logs based on file size in Ubuntu

I have three sites on my server and their logs (Apache logs) are in their root folder not in /var/log. I need a script that rotates the access_log and error_log base on their file size for example ...
1
vote
3answers
2k views

run shell command as other user called by PHP

I have a PHP script which is called by HTTP and not as command line script. This script should call a shell command as an other user than the current webserver user www-data. Example: <?php echo ...
0
votes
1answer
423 views

Compile PHP as CLI and not as CGI

I have multiple sites ruiing on my server with php 5.2.11 and it as CGI Now i want to install my source matrix and it needs PHP as CLI versions. CAn anyone guide me how to do that and will that ...