0
votes
0answers
13 views

How do you setup a solid CRON job for a PHP process? [duplicate]

After lots of googling I have come up with something like the following to execute a PHP process every hour. However, it doesn't seem to work and there doesn't appear to be any errors in the syslog or ...
0
votes
1answer
163 views

Updating php5-mysql for MySQL 5.6 under Debian 7

After a lot of troubles installing MySQL 5.6 for Debian 7 (with ISPConfig) (FYI, I followed this tutorial : http://xmodulo.com/2013/12/upgrade-mysql-server-debian-ubuntu.html) my PHPMyAdmin shows me ...
0
votes
3answers
24 views

How do you remove a dot deb package (Upgraded from Squeeze to Wheezy)

I have run sudo apt-get remove php5 and it says php5 is removed but I can still load phpinfo() from one of the web pages and all the websites still load. I have also restarted the server. I don't ...
0
votes
2answers
47 views

Cronjob screen PHP does not executed [duplicate]

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a ...
1
vote
1answer
67 views

Why is PHP open_basedir not considered a security model

On servers doing shared web hosting, or sharing the PHP environment between different PHP applications, I usually implement a security policy that uses PHP open_basedir to restrict each user to ...
-4
votes
2answers
76 views

Run a script.sh with www-data like it was root user [duplicate]

I need to get all mac Addresses from my network-card. So i use nmap from Debian, combined with PHP. But, without root privilege, this only gives me the IP address and status from a target. With root ...
0
votes
0answers
76 views

Final stage of configuring Informix PDO with Apache - stuck :(

I've been working on configuring a server to connect to a remote Informix server to perform queries from Debian/php/apache2. I've been able to successfully install and configure the Informix Client ...
0
votes
1answer
32 views

Activating Informix variables on Apache2/Debian

I'm working on adding PDO for Informix on my Debian server. I have a strong set of instructions from a gentleman who has set this up to run on suse, I'm trying to figure out how to add these ...
0
votes
1answer
53 views

suhosin patch error in PHP 5.3.27

When I try applied suhosin patch, I get this errors: patch -p 1 -i ../suhosin-patch-5.3.2-0.9.9.1.patch patching file Zend/Makefile.am patching file Zend/Zend.dsp patching file Zend/ZendTS.dsp ...
0
votes
1answer
188 views

Debian Wheezy PHP downgrading/upgrading questions

Hello serverfault guys, I have a Debian Wheezy (7.2) server and it came with PHP 5.4 by default, I was installing Ensignia Mail which is a PHP 5.3 only application and it gave me a lot of errors, so ...
0
votes
0answers
75 views

After a PHP script timeout, Apache logs the error but may not cleanly exit the script

We're using PHP and Apache, hosted on a dedicated server running Debian Linux. The specific versions in each case are mostly immaterial, as this problem has been around since Debian 6, and is still ...
1
vote
1answer
74 views

How does fastCGI PHP alter a file and escape detection by auditd?

The other day I set up a little shell script on a Debian server to send me an email when files change; it looks like this: #!/bin/sh items=`find /var/www/vhosts -regex ".*/httpdocs/.*" -newer ...
0
votes
1answer
93 views

PHP 5.3 for recent Debian versions, with security backports (for Legacy apps)

Is there any way, to get a PHP 5.3 package for recent debian versions (i.e. wheezy) which is still getting security support? There are legacy projects which depend on register_globals() - and while ...
0
votes
1answer
135 views

error when trying to install rar package - php centos

building in /tmp/pear/temp/rar running: phpize sh: phpize: command not found rolling back 388 file operations ERROR: `phpize' failed getting this error when trying to install the RAR package for php ...
0
votes
0answers
56 views

Nginx/fastcgi using old php.ini

I'm having problems with debian + nginx + fastcgi + php setup. For some reason when I update my php.ini (/etc/php5/cgi/php.ini) the settings don't get updated. I checked phpinfo() and it says it's ...
5
votes
2answers
955 views

Why does Debian clean php sessions with a cron job instead of using php's built-in garbage collector?

Debian and derivatives (Ubuntu) don't use the php session garbage collector session.gc_probability = 0 instead they use a cron /etc/cron.d/php5 09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] ...
0
votes
1answer
48 views

PHP Not running on specific directories [closed]

Ok. This is a pretty weird error: I made a folder named 'hello' at /etc/apache2/sites-enabled/ with hello.php. Then i created an Alias that told /hello would go to /etc/apache2/sites-enabled/hello. ...
0
votes
1answer
41 views

Installed Apache2.2 on Debian (squeeze), replacing lighttpd, now all .php files return an error 324

.html files are fine, but .php is a no-go. My Wordpress and MediaWiki are not functioning, I made a page with phpinfo() that isn't working, and I am stumped. My error log shows nothing except for ...
1
vote
2answers
91 views

Easiest way to keep users in their home directory on a web server

I was wondering what would be the easiest and most secured way on a web server to prevent users from browsing directories other than their home folder. I have a mutualised web server with several ...
0
votes
2answers
285 views

Debian webserver - Crontab error (not running php script)

I've a webserver with several sites and I'm trying to run a script by crontab but it gives me a error (126 and 127) My script is in: /var/www/site1/script.php When I run the command: php ...
0
votes
1answer
93 views

How does one rebuild a single PHP extension package on Debian?

In trying to get ODBC PDO working with Microsoft's MSSQL driver on Debian I've found that I need to apply patches to the PHP extension (see https://bugs.php.net/bug.php?id=50444 for those patches). ...
0
votes
1answer
276 views

Multiple VHosts with FastCGI and Suexec

I have a Debian virtual machine server which I have full control over, but I have someone who wants to host a single domain on it. This is obviously a security concern, as even if his particular user ...
0
votes
1answer
141 views

PHP processes keep overwhelming my server, eating up the CPU and making it lock up :(

I have a Debian Squeeze Lighttpd server with PHP and MySQL, and also with XCache and Varnish set up. I am quite new to this, but have tried as hard as I can to resolve this problem with no success. ...
0
votes
2answers
310 views

PHP - can't use function chroot

I've installed Debian 6.0.6 x86 on a VPC with the least possible software packages and when the installation completes I take a backup of the VPC and put it aside for later use. I have installed PHP ...
0
votes
2answers
362 views

Apache doesn't parse PHP on VHOST while it works on default

I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one. Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
1
vote
1answer
284 views

Can't compile PHP with Sybase

Trying to compile Sybase with PHP 5.4.13 in Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2 # apt-get install freetds-dev ...
1
vote
3answers
631 views

Sendmail Exception reached when thousands emails sent in bulk mail script. Has sendmail a email-sent limit for a given process?

I am a little desperate with a problem in our web server. Our web is a community with a lot of users and activity. We send to users personalized mails of the activity of their interest. We have a ...
1
vote
1answer
286 views

I manually deleted my /etc/php5/ config files and now they don't reinstall

I wanted a clean reinstall of php5-cli, php5-common, php5-fpm. So what I did was: rm -rf /etc/php5 rm -rf /usr/local/lib/php5 rm -rf /usr/local/php5 rm -rf /usr/lib/php apt-get autoremove php5* ...
-2
votes
1answer
1k views

How to set up SUDO rights for execution of Python script from PHP [closed]

I run Raspbian Wheezy on my Raspberry Pi, and i want to call a Python script from PHP. That all works great (i call 'exec python go.py' from php) but now i want to call a script which needs root ...
1
vote
1answer
144 views

Cronjob not working properly on debian

I'm trying to run a PHP script everyday at midnight, so my cron has the following entry @daily /usr/bin/php /websites/xxz/misc/wU5HaFre.php /websites/xxz/misc/wU5HaFre.php has 755 rights, so it's ...
1
vote
1answer
170 views

Blank PHP pages when using php-fpm and nginx on a Debian VPS

I keep receiving a blank page whenever I try to access a PHP page on my nginx webserver on a Debian VPS. nginx is working fine; I can access any normal HTML page. PHP-FPM is at least running, as I can ...
0
votes
1answer
107 views

Was around Postfix and PHP sent emails always get tagged as spam [duplicate]

Possible Duplicate: How to send emails and avoid them being classified as spam I have a legitimate website that sends out emails using postfix for user signup validation. I am running a VPS ...
0
votes
0answers
50 views

VPS upgrading, actually using the capacity PHP

We have a PHP webserver (debian 6) running on a VPS. The site hosted on it is rather heavy. The VPS specs are: 1 CPU Core 1024MB RAM 100GB HDD When loading the website the CPU would jump ...
0
votes
1answer
146 views

Pligg user verification error

i installed pligg CMS on my site. But the problem is if i choose to validate user email option, then if any user register on my site it is showing the error below: "Could not instantiate mail ...
0
votes
5answers
87 views

Where to store custom php scripts called via cron

I want to move my php scripts out of the /var/www so that they are not accessible via a URL. But where is the most logical place to store these?
0
votes
1answer
60 views

MySQL table records changes every second

I was using a PHP script running on background to grab data and insert them into the mysql database... i stopped the PHP from logging and checked the table records, i found that its being changed ...
4
votes
2answers
2k views

“The server closed the connection without sending any data”

Server setup The problem Diagnostic information What I've tried Specific Help needed 1. I have the following server setup: (Running in a VM using Hyper-V) Debian Squeeze Linux 2.6.32-5-amd64 ...
1
vote
0answers
306 views

NGinx - PHP / CGI - No input file specified

I know this is a common problem. I googled and tried a lot but still doesn't work. "No input file specified" while calling PHP files from browser. I Installed nginx php/cgi on a fresh debian machine. ...
2
votes
1answer
205 views

Updating to PHP 5.4 on Debian 6.0.5

Figured there would be an easy answer on Google, but no luck. Most of the tutorials, while similar to what I need, don't work on Debian: ...
2
votes
2answers
1k views

Keep source IP after NAT [closed]

Until today I used a cheapy router so I can share my internet connection and keep a webserver online too, while using NAT. Users IP ($_SERVER['REMOTE_ADDR']) was fine, I was seeing class A IPs of ...
1
vote
2answers
328 views

PHP-FPM for nginx on debian

What is the preferred/recommended way of installing php-fpm on debian for use with nginx? I read about a "php5-fpm" package everywhere, but it's not available in the official debian repos any more. ...
0
votes
2answers
140 views

Debain server “HTOP”: shows several PHP-CGI instances

I'm new to Debian servers, (Linux VPS in general) and have a question about /usr/bin-php-cgi showing up several times as "tasks" when I run the HTOP "app." I couldn't find any information online ...
0
votes
1answer
524 views

PHP/APC Canonicalize not working as expected

Basic Info: APC Version 3.1.13 PHP Version 5.4.7-1~dotdeb.0 APC Host pcgamingwiki.com (li263-94) (173.255.253.94) Server Software nginx/1.2.4 In my config, I have apc.stat = 0 and ...
1
vote
1answer
741 views

How to get php mail function to work on Debian “squeeze”? [duplicate]

Possible Duplicate: Getting PHP mail() function to work on Debian Lenny I have installed Apache and PHP5 on my debian server. Firstly I tried it using sendmail. Here is the step by step ...
0
votes
2answers
287 views

Setup Postfix to send email to same domain as server [duplicate]

Possible Duplicate: Why does Postfix deliver mails locally instead of relaying them to Google Apps? I have a Debian Linux server setup on Linode. I am using Postfix for mail and have set it ...
0
votes
1answer
45 views

PHP Requests Being Blocked After Making About 25 in Ten Minutes

We have an administrative portal where we run PHP functions through a JavaScript portal using Ajax for administrative purposes. For example, we might have a function called updateAllDatabaseEntries() ...
1
vote
1answer
181 views

nginx clean url router/rewrites

im having difficulties with a relativity simple rewrite rules / router in nginx config. All I want to do is, if requested dir or file 'host/my/request/path[/[index.php]]' does not exist, rewrite to ...
2
votes
1answer
244 views

MySQL: 5000 core users, 2GB Table Heavy Write / Read: How to Prevent Crashing

This is a controversial issue for sure, since many might want to recommend the simple things right away, like: Split up the tables! Split up the read/write into master/slave configurations! Amp up the ...
1
vote
1answer
83 views

Will APC work with multiple versions of PHP

I have two versions of PHP running (5.2 & 5.3). I would like to know how to install two separate versions of APC for PHP, or is that even necessary? I can't find any info on alternative methods ...
1
vote
1answer
267 views

can't send mail with exim4 and php

i'm using debian & apache. if i install sendmail, the php mail() function works perfectly. but else i install exim4, the php mail() function does nothing. i have changed the php.ini editing the ...