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
2answers
1k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use ...
2
votes
1answer
5k views

Yum: php55w-common conflicts with php-common-5.4

I am trying to install mysqli on a CentOS machine using yum install php-mysqlnd.x86_64 on the command line but I keep getting the message: Error: php55w-common conflicts with php-common-5.4.16-36....
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
52 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: ...
0
votes
1answer
1k views

PHP not working with Apache on Centos 7

I'm on centos 7 and have the httpd service (2.4.6) installed from yum no problems and I had to install PHP from a different repo remi to get php 5.6 installed. PHP works on the command line and the ...
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
91 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
135 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 ...
-2
votes
2answers
1k 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: http://docs.whmcs.com/...
7
votes
11answers
38k views

In Ubuntu I make changes to php.ini but nothing happens

Hi, Apache with php works well, but none of the changes I make in php.ini have effect, I've even delete all the contents of the file, then restart Apache, and run phpinfo() and surprisingly everything ...
0
votes
3answers
570 views

PHP not working on Ubuntu 10.10

I just recently installed an Ubuntu Server 10.10 but php doesn't seem to work. I created a file to show phpinfo() to make sure php works but it doesn't show anything. I looked for php.ini and I found ...
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
1answer
33 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 ...
1
vote
0answers
12 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:...
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
1answer
31 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 &&...
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/...
1
vote
1answer
54 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
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; ...
4
votes
2answers
2k views

Nginx/PHP-FPM long log lines get truncated

I am unsure is that is a Nginx or PHP-FPM setting, but long log lines are getting truncated. Is there a setting to increase the max log line length?
0
votes
0answers
44 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 ...
1
vote
3answers
7k views

How to use SSL certificate on my web-site?

I'm new to SSL, but my php web-site will contain secret information from users. I hear that ssl (https) can establish a solid security level. But, how to use it? How to implement it to my html files? ...
1
vote
2answers
110 views

pecl install pecl_http fails - upgrading to php7 and http.so makes trouble

Similar issue: pecl_http failed to load So I wanted to upgrade to PHP7.0 and I believed all was fine. But I think I was missing somepages packages because i.e. I was not able to login into my ...
0
votes
0answers
22 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 ...
1
vote
1answer
57 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
55 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 ...
3
votes
2answers
186 views

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 ...
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
82 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; ...
22
votes
3answers
49k views

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it's rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum ...
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
113 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
36 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
1answer
51 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
2answers
323 views

Kill process that hogs all CPU

So ImageMagick has the "convert" command which I use for my (Linux) web platform to deal with image resizing and such. Sometimes this command gets "stuck", meaning it starts eating machine resources ...
15
votes
4answers
48k views

nginx errors “recv() failed (104: Connection reset by peer) while reading response header from upstream”

I have a server which was working ok until 3rd Oct 2013 at 10:50am when it began to intermittently return "502 Bad Gateway" errors to the client. Approximately 4 out of 5 browser requests succeed but ...
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
0answers
49 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: ; ...
1
vote
1answer
1k views

mod_deflate, centos, application/x-httpd-php

I trying enable output compression for Apache 2.2.15, and 5.3.3, but web-pages generated by php is not compressing :( My deflate.conf: [user@host conf.d]# cat deflate.conf <IfModule mod_deflate....
0
votes
1answer
27 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
22 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
0answers
151 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 ...
0
votes
1answer
106 views

Setting up nginx and php-fpm on CentOS 7 - which config file do I alter? I'm so lost

I'm intermediate with Ubuntu and Apache, but a total noob to CentOS. I want to setup a 1 CPU 1 GB RAM test VPS for a phpbb 3.1 forum, and I'm following this tutorial: How To Install Linux, Nginx, ...
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 ...