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

0
votes
1answer
55 views

How can I run nginx as an SSL reverse proxy and a web server simultaneously?

My SSL reverse proxy works fine but I can't figure out how to make nginx work as both an SSL proxy and web server for one PHP directory simultaneously. server { listen 10.0.0.20:80; ...
0
votes
0answers
19 views

Apache returns invalid Content-Length for gzip compressed 204 response

When apache returns a gzip compressed response with 204 response code and empty body server returns invalid header Content-Length: 20 instead of Content-Length: 0. Without gzip compression (without ...
0
votes
0answers
17 views

Wordpress Access Logs

I've recently had a wordpress site compromised and the www-data user was able to create new files in the webroot. After looking at the apache acess logs I've found the following request which seems a ...
0
votes
0answers
38 views

Occasional “could not execute mail delivery program /usr/sbin/sendmail”

I seem to be having an infrequent issue with PHP and sending email. Most of the time it works fine but occasionally the email doesn't get sent. Looking in the website logs I can see a bunch of these ...
1
vote
1answer
38 views

After I installed php 7.x phpinfo is still showing older php 5.x

After I installed php 7.x phpinfo is still showing older php 5.x should i purge the older version? or what? thanks
0
votes
0answers
23 views

send php PEAR mail() to remote sendmail over SSH

I am migrating some applications to AWS and trying to seperate some mailing functions from the application servers. To cut a long story short I am trying to configure PHP (using PEAR Mail.php) to ...
-1
votes
1answer
51 views

How do I only reverse proxy php files with nginx?

Currently I have the following in my nginx config file: server { listen 80; return 301 https://$host$request_uri; } server { listen 443; server_name envy.zone; ...
0
votes
0answers
16 views

Update libcurl, but php curl still showing oldversion

I've updated the libcurl to the latest version (7.49.1) from the city-fan.org repo. However, when I do php -i | grep curl, it is still showing the old curl version (7.19.3). Any help would be ...
0
votes
1answer
80 views

Install PECL v8js on Debian Jessy

I try to install pecl-v8js on Debian/Jessy for PHP-5.6. $ apt-get install php5 php5-dev libapache2-mod-php5 apache2 php5-cli libv8-dev g++ cpp ... $ pecl install v8js-0.6.3 ... checking for ...
0
votes
1answer
33 views

PHP-FPM using too much memory

I have a VPS box that runs a few websites for me as well as some scripts and it seems like its running out of memory. It has 1GB total memory. It looks like php-fpm exhausts the memory. Before it was ...
0
votes
0answers
6 views

What does the “web transaction” mean in new relic transactions report?

In new relic transaction report breakdown table, I often see an entry called "web transaction" and then there are various DB calls and cache calls. Initially I assumed that it's the time my script is ...
0
votes
1answer
17 views

Server is wrapping PHP output in HTML and escaping JSON — what would do this?

I'm generating a JSON array for AJAX usage, but for some reason something is automatically surrounding my JSON response with HTML and encoding the characters like so: <html><body><p>...
0
votes
0answers
35 views

Negative OPcache memory consumption by using php_admin_value

I have a setup with multiple PHP5-FPM masters (as I described here) with PHP 5.6. In the general OPcache configuration (in /etc/php5/fpm/conf.d/05-opcache.ini) I have the following settings: ; ...
0
votes
0answers
17 views

aws beanstalk php worker scaling

I have a very lightweight PHP script running in my worker environment. CPU utilization is next to nothing. To get my SQS queue under control I have to keep manually launching new workers to bring the ...
0
votes
1answer
28 views

Different Local Values and Master Values for PHP Session settings

I have configured PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27) on Centos7.0 to use memcached for session handling. [Session] ; Handler used to store/retrieve data. ; http://php.net/session.save-...
0
votes
0answers
96 views

PHP 5.6 - mbstring extension is missing

I'm trying to install mbstring extension for the new version of php - 5.6.21. I ran the following command: sudo yum install php56w-mbstring to install package from webtatic yum repository. The ...
1
vote
0answers
35 views

Someone Uploaded PHP Backdoor to Wordpress Site [duplicate]

I have enough security that I was alerted to a PHP backdoor that was uploaded to a WordPress site hosted on one of my servers. It was removed within minutes of being uploaded so no damage was done. No ...
-1
votes
0answers
21 views

NFSen Shadow profile “Statistics timeslot” does not reflect change in polling value (CYCLETIME=60)

I have googled extensively and searched on the NFSen mailing list regarding this issue with no success so far (although I might have missed something obvious). Using the information provided in this ...
0
votes
0answers
29 views

LDAP modify doesn't change anything

Got an issue with Active Directory LDAP and setting passwords. I'm connected through the LDAPS protocol to my AD server, and binding is successful. When attempting to set a user password, no error is ...
-1
votes
0answers
17 views

Enabling pdflib option without reinstalling php

I have installed PHP version 5.3.5 in a RHEL 5.10 server. I need pdflib support to be compiled along with PHP, But while compiling I am getting the below error. I understand that current configure ...
0
votes
0answers
8 views

How scalable is ratchet php socket server and php build in server? [duplicate]

I am using ratchet php to build a chat apps and it uses a php file to create a chat-server as shown in http://socketo.me/docs/hello-world chat-server.php code. The problem is I modified the code so ...
-1
votes
0answers
16 views

php with mysql and IIS not working

I have followed online tutorials and installed PHP, and pypmyadmin on my windows server but when i am trying to install the mySQL server instance window its just freezing on "prepare configuration", ...
0
votes
1answer
56 views

Nginx only recognises files in root dir (Permission denied on symlink'ed dir/files)

UPDATE -- This is driving me nuts (or back to Apache...) The issue is definitely symlinks and permissions When I setup symlinks to directories in the same tree, for example /var/www/html/html2 --> /...
0
votes
0answers
25 views

Connection failed: php_network_getaddresses: gethostbyname failed. errno=0

I need you'r help please... I created php web site in google engine. I open connection to mysql server using appharbor. When i run it local it connect very good and there was no errors in my web ...
0
votes
0answers
38 views

Wordpress tries to allocate Terabytes of memory

I am currently running Apache on windows and occasionally it will seemingly instantly spike and try to allocate anywhere from 10s of GB to hundreds of TB of memory. After this error log happens a few ...
-7
votes
1answer
75 views

get database deleted backup via command [closed]

i have by mistake emptetied my databases for where can i get database backups. my server team told i do not have backup activated now what to do to solve my issue .Please guide me the way to fix it. ...
0
votes
0answers
23 views

Exim can't send email (unable to set gid or uid forcing real = effective)

I've a debian Jessie and Exim4. I can't send email from php, error given is: unable to set gid=33 or uid=0 (euid=0): forcing real = effective I've tried to search for this problem but nothing helps ...
0
votes
0answers
63 views

Site unreachable due to attack - xmlrpc.php

Today our server was not reachable. It was returning a 502. We are running Nginx 1.10 on Ubuntu 14.04. We also use PHP7 (only, no PHP5). In the logs, we got the same error from the same client (2 ...
0
votes
2answers
124 views

How to install an older version of php (5.2.17) in Linux?

I want to study some security vulnerabilities in php 5.2.17, but I can't install it from source, because then I need also all the older versions of all the other application which have something to do ...
0
votes
0answers
30 views

Elastic Beanstalk and Worker Tier? (PHP)

I'm trying to setup my app that's hosted on EB with a worker that will run some basic cron jobs to feed an RDS database with data that the app consumes. I deployed this cron.yamlat first: version: 1 ...
1
vote
1answer
47 views

Nginx & PHP in a subdirectory

I have an app behind nginx. But i need a specific path in this app redirect to a Wordpress Blog Example : example.com/ -------> Redirect to my app example.com/whatever/ -------> Redirect to ...
0
votes
1answer
76 views

php unable to connect to MySQL via SSH tunnel

I have executed both commands via SSH with no error and than when I try to connect to the MySQL server via SSH tunnel I get no results even if I do a simple query like select * from table. I get no ...
-1
votes
2answers
27 views

php to limit included file to access below and upon directory tree

I am trying to find solution for this problem for days. I have structure like this. index.php /app /plugins/ /users/%site%/functions.php /other stuff all requests goes to ...
-1
votes
1answer
88 views

Removing 1 line of code from all php files

I can see same code under all php files. Starting from <?php $rfghoh = '*f%)sfxpmpusut)tpqssu6 And end $rfghoh=$yuoopi-1; ?> I am just looking for script using which only first line of ...
1
vote
1answer
50 views

Permission Denied for fastcgi_pass using PHP7

I'm running LEMP with PHP7.0. I've got this in my server block fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; But when I open the site, it returns a 502 Bad Gateway. Below is the error log. *1 ...
0
votes
0answers
57 views

Redhat 6.8 - Where to install php-mssql

I tried following tons resources online to install php-mssql on Redhat 6.8 by using the Extra Packages for Enterprise Linux (EPEL) repo and it says that "No package php-mssql available". I made sure ...
0
votes
1answer
14 views

How to log request forwarded to fpm at Nginx

How to configure Nginx to log requests send to php-fpm into log? Goal is to have e.g. script path information ofter Nginx location etc. have been applied to.
1
vote
2answers
146 views

AWS WordPress site - OOM kills Apache

This question was originally asked on StackOverflow.com, and I've duplicated it to the more appropriate ServerFault.com site. The original question, which I've voted to close, can be found here I ...
0
votes
0answers
32 views

IIS 7.5 & Joomla very slow TTFB response

I have a Joomla site (Joomla! 3.4.1 Stable) running on Windows & IIS that takes almost 11 seconds to even respond to any request. Other subdomains (sub.domain.com) respond almost instantly but ...
0
votes
0answers
35 views

How to overload package_name in Chef cookbook using AWS custom JSON?

I never worked with Chef and OpsWorks before. What I'm doing, I'm trying to overwrite some Chef conf to use modern PHP 5.6. I wrote a JSON for Layer PHP App Server { "mod_php5_apache2": { "...
0
votes
0answers
34 views

Should PHP FastCGI be running multiple instances on windows?

Im running PHP under iis 8.5 on Windows Server 2012. The server runs asp.NET without a hitch. Pages are rendering in well under a second, but PHP is not running so well. It takes upwards of 40 seconds ...
0
votes
1answer
73 views

Nginx php5-fpm varnish taking high CPU. Load average is over 32

I'm on a server with the following config: 32 GB RAM 12 core processor and it's running single wordpress on nginx, varnish, php5-fpm, fastcgi. Everything was running fine, but suddenly after ...
0
votes
0answers
23 views

Laravel real time data add and send update from mysql

I have been developing a system which is on laravel, i need a few knowledge on technology i am not sure of which should i follow. On my laravel i have an end point link which hits whenever someone ...
1
vote
1answer
34 views

Secure AD Access

I was just trying to access and Active Directory-Server via php (ldap) to be able to use Windows credentials for a Website Login. I did this using xampp on my standard Windows connecting to a Windows ...
0
votes
1answer
26 views

Windows server 2012 IIS 8 php data post upload failure to mysql

I'm getting a php data upload fail when attempting to transfer data up to a mysql database from a html5/webgl built app off of Unity. All of the data downloads work regardless of the upload issue. The ...
1
vote
0answers
9 views

PHP-FPM child processes are created and not going away

I have a ubuntu 15.04 server with 160GB of RAM and 40 cpu cores. Nginx is the web server and varnish is used for the cache. The site is in wordpress with very high traffic on weekdays. The www.conf is:...
2
votes
0answers
112 views

How to verify network quality before running important benchmarks?

I have multiple CentOS servers around the world. They all are running a PHP script that tests the latency of some services once per minute. The problem is that sometimes these servers have local ...
0
votes
1answer
29 views

Why is apache writing two access log outputs per request?

We are currently running a apache2/mod-php site on docker, deployed to google kubernetes. In order to leverage the severity level filtering of google cloud logging I've created a LogFormat in our ...
0
votes
0answers
19 views

Monit for PHP7 connection failed

Trying to get monit working for PHP7 but getting a connection error. Here is the config file: check process php7.0-fpm with pidfile /run/php/php7.0-fpm.pid group phpcgi start program = "/usr/sbin/...
0
votes
1answer
25 views

postfix/opendkim not sign email from php on second domain

I have two domains, called them example1.com and example2.com on example1.com all emails sent with dkim sign. on example2.com emails from php sent without dkim sign, but if send email from console, ...