PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

learn more… | top users | synonyms

2
votes
0answers
72 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
-1
votes
1answer
50 views

Backdoor:PHP/Shell.P keeps regenerating.Caught by Antivirus. [duplicate]

I have a windows server 2008 with PHP on it and a few Wordpress sites on it. I got a virus some time ago. I thought I had it deleted and everything was fine but after looking at my Quarantine section ...
0
votes
0answers
43 views

How to find which PHP file is opening socket connection? [duplicate]

Apache status page is showing a lot of requests to http://TheServerName.com/wp-login.php coming from 127.0.0.1. This domain is not even active. I suspect that a malicious php script has infected one ...
0
votes
1answer
36 views

Apache process growing despite limiting MaxRequestsPerChild

Server Version: Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.4.27 mod_perl/2.0.6 Perl/v5.8.8 CENTOS 6.6 PHP handler - DSO The server is running with prefork ...
-2
votes
1answer
48 views

how can I understand if IMagick is installed? [closed]

I install Imagick according this tutorial: http://www.imagemagick.org/script/install-source.php#unix I used this code: function alist ($array) { //This function prints a text array as an html list. ...
1
vote
0answers
120 views

2006: MySQL server has gone away

I am getting 'Lost connection to MySQL server' and '2006: MySQL server has gone away' errors so frequently that the server is unusable. There are questions related to this issue, but none that apply ...
-1
votes
3answers
76 views

pear on CentOS with “No Package” message

I googled for hours to find a solution but couldn't find anything. What can I do with this error? I couldn't install php-pear on centOS 6.5. [root@server ~] # yum search php-pear Loaded plugins: ...
0
votes
0answers
238 views

nginx hhvm bad gateway

I do have an issue with Nginx 1.6.2(compiled) and HHVM 3.4.2. Everything is installed 'fine' when I run hhvm info.php it returns 'HipHop'. But when I visit the website I get an 502 bad gateway, so ...
0
votes
0answers
162 views

Monit fails to restart HHVM

Seems like monit has trouble to restart HHVM when it goes down, but judging by the error logs I don't quite get why it can't restart it : [UTC Dec 22 09:45:36] info : 'hhvm' trying to restart ...
0
votes
0answers
26 views

PHP configure prefix not finding php-config

I am installing phalcon, and while I have my setup working fully I am confused by the configure generated by phpize. Specifically, why do I have to pass --with-php-config - I thought setting ...
1
vote
4answers
135 views

Blocking Invalid HTTP Requests to PHP Application

For the first time in a number of years, I'm semi-responsible for helping out with the server administration of a PHP web application (served out using Apache). We're seeing a number of requests for ...
1
vote
0answers
117 views

PHP mail() function - “from” name overwritten by Exchange Server

I originally posted this on stack overflow but was told it might be better placed here on Serverfault. I am trying to send a very simple email from a php script ...
1
vote
0answers
70 views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command ...
0
votes
0answers
35 views

How configure apache to allow simultaneous requests from the same ip

I am working on project in Zend Framework 2 using apache 2 (develop on windows, production on linux). All requests sent to server are queued (second start after first ends) locally and on production. ...
1
vote
0answers
22 views

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get ...
-2
votes
2answers
144 views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: ...
0
votes
2answers
67 views

php servers without apache/nginx/cgi stack

In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket ...
1
vote
2answers
80 views

Can't connect to MySQL from another server

I have two servers on the same subnet. 192.168.100.1 (mysql) 192.168.100.2 (php) MySQL seems to be running fine on it's box but I can't seem to connect to it. These are both ubuntu boxes and ...
0
votes
1answer
84 views

Does PHP mail function need a mail server? [duplicate]

We recently moved our Drupal sites to a Linode server. One of those sites has a lot of users filling forms. The previous server sent, with no problem, all form registrations to an email address, this ...
1
vote
1answer
50 views

Dont allow to override php.ini values for certain headers as a root

We are having this issues in shared hosting environment. FYI: Under shared hosting environment each user can have a php.ini in their folder to override the global settings. There will be many users ...
1
vote
0answers
85 views

PHP temp uploaded files are not deleted on IIS due to 'Access Denied' for IUSR

When uploading a file by a HTML form to a PHP script, the uploaded file will remain in upload_tmp_dir, even when the request ended and this file was not removed explicitly by the PHP code. Expected ...
0
votes
1answer
313 views

PHP 5.4 PSA-Horde and Plesk 12 - How do I configure Active Sync? [on hold]

PHP 5.4 PSA-Horde and Plesk 12 - How do I configure Active Sync? Ladies and gentlemen after a lot of hours getting more and more depressiv I hope one of you could help me figure out why my active ...
1
vote
1answer
87 views

setting up suPHP with puppetlabs/apache on centos 6.5

I am trying to set up suPHP on a centos 6.5 box with the puppetlabs/apache module. Apache Configuration file { "/var/www/vhosts": ensure => "directory", owner => "root", ...
1
vote
1answer
307 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
0
votes
1answer
271 views

Nginx serves php files as plain text (Mod_Rewrite)

Grr.. Okay, I have this problem... So there is no .htaccess (Mod_Rewrite) in Nginx.. So I've converted my .htaccess to a format which can be read and placed in the default.conf. Original htaccess: ...
-1
votes
1answer
93 views

Excluding a directory from a root .htaccess rewrite rule to disallow from caching

On my lamp installation, I have in the root folder "/" (mydomain.org) a wordpress multisite with W3 total cache activated, I have also a sub_dir called "sub" (mydomain.org/sub) with a PHP script ...
0
votes
0answers
119 views

PHP APC cause server crash on Prestashop 1.6

I run Prestashop 1.6.0.9 on a Debian Wheezy dedicated server with Apache2 and PHP 5.4 with APC and 32Gb of memory on the server. The shop perfectly run without using APC, but when I enable this ...
0
votes
1answer
51 views

Serving different charsets per virtual host

On a centos Server 6.5, apache 2.2.15 is it possible to server multiple charsets to different virtual hosts? I know that setting the default Charset is done by adding into the httpd.conf file: ...
1
vote
0answers
83 views

Ubuntu upgrade PHP not working anymore and nor error log

I made a apt-get update, followed by a apt-get upgrade on my Ubuntu (Homestead VM). Since then I can't access my PHP app anymore. I've tried accessing a txt file from my application and this works ...
0
votes
2answers
97 views

RHEL 6.6: redis-package for php54

Redhat Enterprise Linux Server 6 contains php54 packages, in addition to the normal php packages that ship version 5.3. Unfortunately for me, a php-redis package exists, but no php54-redis package. ...
1
vote
0answers
126 views

How to enable ffmpeg php extention in Cent OS 6.5 server with php 5.5

I need to create a screen shot from video, I have followed this tutorial to do the intial setup in window 8, php 5.3 I downloaded the ffmpeg from here for 64 bit operating system. I followed the ...
0
votes
1answer
88 views

Composer works as root but not as a common user, why?

I have installed Composer Globally as this docs shows and it works for root user on my server CentOS 6.6 but as a normal user lets said webvm user it doesn't saying that composer is not found (see ...
2
votes
2answers
449 views

Windows Server 2012 R2 runs out of ephemeral ports, though it shouldn't

We are regularly experiencing strange issues with networking on our dedicated server. It runs Windows Server 2012 R2 x64 on Xeon E5620 with 16 GB RAM and Intel 82575EB network adapter. Please note ...
1
vote
0answers
28 views

Configuring openldap/PHP LDAP against “signed” LDAP connections with Active Directory

This may sound like a stupid question, and maybe it's already been answered, but I can't find a definitive answer anywhere, so I thought I'd ask. When someone enables "Domain controller: LDAP server ...
0
votes
1answer
68 views

PHP Script causing server to run out of RAM and wont release

Ive been running a very resource hungry script the past 2 days. I manually trigger the call and it lasts for about 30 minutes then stops. Last night the script stalled when ram hit 100%. I restarted ...
0
votes
1answer
33 views

Disable Apache server signature [closed]

I've just set expose_php to off via WHM's Configure PHP and suExec. For security purposes I want to additionally hide: Apache ServerSignature/ServerTokens/PHP X-Powered-By I can't find a relevant ...
2
votes
1answer
30 views

Php-fpm process always running

I am using Nginx with Php-fpm (php 5.5 + opcode) for a very high traffic web site, php-fpm status endpoint to monitoring what going on. After a big traffic peak, 200 "active process" are still running ...
0
votes
0answers
90 views

Apache + PHP (fast-cgi) + Wincache on Windows Server crashing

We have one PHP application that runs on Windows Server 2008 Apache 2.2.23 PHP-5.4.27 (FastCGI) Wincache 1.3.4.0 and crashes from time to time and I'm not able to figure out what's going on. ...
0
votes
1answer
190 views

How to configure SPF and DKIM to prevent mail going to spam folder

When creating a mail with PHPMailer my emails are getting sent to the spam folder of my recipients mailbox I have been told I need to configure my SPF and DKIM correctly, I think I have done this ...
1
vote
0answers
30 views

Multiple pearl processess all hitting one IP address DDOS source hack? [duplicate]

I have been running at high CPU loads 45 45 45 ish for a while, updated cpanel / apache so far but tracing PID's that are running I find the following all with the same IP.. [code] select(8, [3], ...
-1
votes
1answer
52 views

What Does 'HELO_LH_HOME' Means In Spamassassin's result?

I'm trying to send emails from PHPMailer using php on my IIS server. But My emails are going to spam, So I've used spamassasin to detect what is wrong? and here is the result: pts rule name ...
-1
votes
1answer
87 views

send a command via a website to a windows server

Is there an interface or something else which provides a connection between a website and a windows server to send commands via the website to the server and the server itself perfoms it? I want to ...
1
vote
1answer
74 views

How can I monitor resource usage for PHP sites on a per-virtual-host basis on GNU/Linux?

Running a bunch of PHP sites via apache2.4/mod_php on RHEL using the prefork MPM. My apache children are using a fair bit of RAM and lots of CPU. I would like to be able to attribute RAM/CPU use on ...
-1
votes
1answer
264 views

red hat - glibc version too low for a lot of needed packages [closed]

I am running a Red Hat server with the following version: webtatic-release-6-5.noarch **redhat-release-server-6Server-6.6.0.2.el6.x86_64** epel-release-7-2.noarch rpmforge-release-0.5.2-2.el6.rf.i686 ...
0
votes
1answer
58 views

nginx: Append to proxied URL with proxy_pass

I'm dealing with some legacy issues where I have to reconfigure servers hosting a PHP based application. One of the decisions was to move away from Apache onto Nginx. Now the application hosts two ...
-1
votes
2answers
30 views

access hierarchy between php and httpd

The objective is to control access to a php/httpd app, owncloud, to specific identified ip addresses. Both php and httpd appear to have mechanisms to do this, php is through a config.php file with ...
0
votes
0answers
90 views

PHP+nginx, normally super fast, sometimes %100 504 Gateway Time-out errors

I am running an nginx webserver serving php files with FPM. Normally it works super well and fast, but sometimes though there are periods where all page loads will hang and return 504 Gateway ...
-3
votes
1answer
114 views

I can't configure php on serwer nginx for BigBlueButton [closed]

Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in ...
1
vote
2answers
531 views

Apache 24 not serving PHP on FreeBSD 10

I've been at this for a few hours now. I cannot figure out WHAT is wrong with my configuration. When I navigate to any php file (wordpress installation is the intent), it opens the file for download ...
-1
votes
2answers
131 views

How to use .htaccess and .htpasswd for selective redirects & passwords

In my /var/www/ directory I have many directories some like: /var/www/impdata/ /var/www/data/ So can I achieve this: When I go to: www.websitename.com/data/ it should give an 404 error. And when ...