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

1
vote
1answer
21 views

HHVM w/ FastCGI vs. Uploading via WordPress

I successfully installed nginx, HHVM (running with FastCGI) etc. on an Ubuntu 15.10 installation, and HHVM is, in itself, running fine. My /var/www directory is owned by my user and group (e.g. sam:...
0
votes
0answers
29 views

Mysqld terminates, system low on memory

I've been getting this error repeatedly: "The process “mysqld” was terminated because the system is low on memory". I have a blog running on WordPress and a forum running on XenForo In the log, I ...
1
vote
1answer
33 views

Apache: PHP scripts not executing when running 7.0 [duplicate]

NOTE: This is not a duplicate of, nor is the answer here: Apache is not interpreting .PHP files On my local Apache webserver, and I have PHP 5.6 and 7.0 installed. When I run 7.0 the scripts are ...
0
votes
0answers
30 views

AD LDS - Can't enable LDAP over SSL

I have basically read some kilometers of documentation and I still can't enable LDAPS on AD LDS... I installed a self-signed certificate and a certification authority following for instance this link ...
2
votes
3answers
40 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
1
vote
1answer
38 views

NGINX index.php rewrite rules wont work

Recently I changed my webserver from cpanel and CENTOS 7, to use nginx with an scipt called nDeploy, wich works well with wordpress and the sites hosted on my server. I have this script wich is not ...
-1
votes
1answer
45 views

Why Zabbix still says “At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.”?

At begin of setup, Zabbix shows the following error: At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported. I already have a site working, and this have connections to a ...
0
votes
1answer
22 views

PHP cant connect to postgreSQL in Centos 7 Selinux

After migration to a new VPS and trying website on new server(Centos 7), Selinux somehow prevents http from accessing Postgresql: pg_connect(): Unable to connect to PostgreSQL server: could not ...
0
votes
0answers
86 views

Nginx: unexpected 404 page in php

This is from my NGINX configuration file location / { index index.html index.htm index.php; try_files $uri $uri/ /profile.php?nno=$uri&$args; } So, when file does not exist on the server, Nginx ...
0
votes
0answers
8 views

How intensive is PHP's session garbage collection [migrated]

If I configure session.gc_* such that probability of the GC running is 1% or greater, how intensive is that? Does it slow the site down for the request where garbage collection is happening? If so, is ...
0
votes
0answers
9 views

apache postfix trying to change user “from” address from apache to domain account

This is the same question as of apache sendmail: trying to change user "from" address from apache to domain account but its for postfix. User did not actually mentioned what he did with ...
0
votes
0answers
124 views

CentOS 6.7 can not install php-pecl-memcached module

I have a Vagrant box using CentOS 6.7 with PHP 5.6 and Apache 2.4. I have installed the memcached server, checked if it runs echo stats | nc localhost 11211 but when trying to install the Memcached ...
0
votes
1answer
727 views

How To Fix Padding Oracle (CVE-2016-2107) On Ubuntu/Apache/PHP

I am trying to fix CVE-2016-2107. I consulted several sites, which do not seem to provide a clear answer for all cases: I use Apache2 2.4.12 with PHP 5.5.26. I ran: apt-get install openssl libssl-...
0
votes
0answers
23 views

Nginx returning 404 even though it executes a PHP script which returns http 200

I have a Laravel application (PHP) which when hits a specific URL: /media/1920/1080/565a2f1b4dad50.89312442_a1247a009b30f83db379b4d84ed13132565a2f1b4db019.92277002.jpg Which loads an image from a ...
0
votes
0answers
36 views

Install PHP 5.3 on current Debian

Is there any easy way to get an old PHP-Apache version (in my case 5.3.*) to run on a current Debian? I found this: Install Previous Version of PHP Package from Debian Testing Using Apt But it doesn’...
0
votes
1answer
35 views

Server being spammed with a lot of POST requests

I am getting a lot of POST requests to my server that look like this. 5.113.41.160 - - [20/Jun/2016:16:05:20 -0400] "POST / HTTP/1.1" 200 9451 "-" "-" 46.52.87.170 - - [20/Jun/2016:16:05:27 -0400] "...
-1
votes
1answer
34 views

PHP Issue in error.log [closed]

My website cannot be found when I search the web. So I decided to go into my error.log to look if I could find a solution. This is what I found: [Mon Jun 20 07:24:31 2016] [error] [client 37.26.128....
0
votes
0answers
16 views

Use different PHP version on particular directory of virtualhost. LiteSpeed webserver

Title says it all. Using Litespeed Web Server Standard 5.1.4. I have virtual host configured: http://sv1.domain.com/subdir-1/ http://sv1.domain.com/subdir-2/ http://sv1.domain.com/subdir-3/ ... ...
1
vote
2answers
53 views

PHP parse error syntax error, unexpected end of file

I keep getting this error when i was on a LEMP setup nginx 1.10/PHP 7 and i thought it was because of PHP 7 and now i setup a new server with nginx 1.4.6/PHP 5.5.9 2016/06/19 15:45:18 [error] 4094#0: ...
1
vote
1answer
33 views

Rewrite URL but have php read old URL

In my platform, each user has their own config file. The file is named by the subdomain they created. Example: user1.domain.com user2.domain.com user3.domain.com The system reads the url via $...
0
votes
0answers
103 views

PHP “mysqli.so: undefined symbol: mysqlnd_connect in Unknown on line 0”

I have been trying to get PHP CLI (7.0.7 on Ubuntu) working together with mysqli, but without success. I keep getting the same error message when starting it: mysqli.so: undefined symbol: ...
0
votes
0answers
20 views

LDAPs calls fail through PHP installed on Nginx Server

I have PHP running on an Nginx Server and I want to make calls to my Active Directory over LDAPs. Calls over LDAP run just fine, but LDAPs poses some connection errors. I have ensured that LDAPs works ...
1
vote
0answers
150 views

How to install PHP 5.6 redis extension on Ubuntu 14

We used to install PHP's Redis extension using PECL. But it seems PECL has dropped support for this for PHP versions less than 7.0. What's the best way to do this without PECL? We're on Ubuntu 14.x ...
0
votes
0answers
54 views

Random “PHP Startup: Unable to load dynamic library”

Since yesterday I suddenly started getting a random error on my server: { "name": "PHP Core Warning", "message": "PHP Startup: Unable to load dynamic library '/opt/plesk/php/7.0/lib64/php/...
0
votes
0answers
32 views

phpMyAdmin reCaptcha error allow_url_fopen=0

I've got phpMyAdmin running on Nginx. I also enabled reCaptcha $cfg['CaptchaLoginPublicKey'] = 'secretkey' and $cfg['CaptchaLoginPrivateKey'] = secretkey'. I added the above to config.inc.php. As you ...
0
votes
0answers
17 views

apache error log shows that apache count time between load pages

when I check error log file of apache in my server it shows the content like this, [Mon Jun 13 20:29:35.485434 2016] [:error] [pid 17971] [client 173.***:21703] PHP Notice: Undefined variable: data ...
0
votes
0answers
14 views

Install and test custom *.so extension

I’ve got a proprietary PHP extension myext.so, which needs to be installed into my Linux/Apache/PHP stack. The *.so is all I have. I have no source code. I put myext.so in /usr/local/lib/php/...
0
votes
1answer
32 views

apt-get upgrade breaks PHP

I have installed PHP 5 from source for various reasons (mostly because readline is broken in the Debian packages, and we use that for tab completion in a CLI backend). When I run apt-get update &&...
1
vote
1answer
57 views

Nginx is not passing the request on to PHP

This is related to an old question I asked on SO years ago, for which I never got a proper answer. I'm just setting up a new server (Ubuntu 16.04, Nginx 1.10, PHP 7) and coming back to this. I have a ...
-4
votes
1answer
58 views

Try to Test Hack Attempt with Telnet [closed]

My server recently was attacked by hackers trying to run code on a web site, and I would like to test what they there trying to do. I'm not sure how to build the telnet command to do this. 2016-06-09 ...
0
votes
2answers
50 views

Learning to deal with a large MySQL database

Total newb in terms of databases/server management but currently running a large database: LAMP Stack Ubuntu WordPress platform (can't change) Over 100,000 database entries Site adds new entries via ...
0
votes
1answer
34 views

PHP can't write to a directory

I am trying to configure our server for a client's website that we host. Their site is PHP, which I'm not terribly familiar with, so I don't know if it works in some weird way. (All our sites are in ...
0
votes
1answer
72 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
46 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
23 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
58 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
65 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
30 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
87 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
19 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
122 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
55 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
28 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
50 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
23 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
38 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
163 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 ...
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 ...