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
0answers
49 views

How do I install PDO drivers for PHP on Windows?

I installed Apache, PHP 5.6 and MySQL 5.7 on a Windows server. In php.ini, I enabled the following: extension=php_mysql.dll extension=php_mysqli.dll extension=php_oci8_12c.dll ...
0
votes
0answers
32 views

I can't send emails from PHP in my new server (but the same code was working in the old one)

Note: I have checked several possible duplicated answered questions but none of them are similar to this, I've been looking for information on the web for more than one week. I don't think that I have ...
1
vote
0answers
35 views

Is there any way to get opcache on php 5.6 working with CloudLinux? [closed]

A bit of background. We have a server running WHM/Cpanel software. Previously, all our sites were combined in the account. Then when we came to upgrade Magento, due to business reasons, we ...
-1
votes
1answer
36 views

Syncing MySQL backup with GIT tags

We have a large Yii2 / PHP application using MySQL database and versioned by GIT. The application is under continuous development as customer require new features. The database gets changed quite ...
0
votes
1answer
21 views

How do I install mysqli_ for PHP on Linux without affecting anything else?

I have root access to a server and it is currently running a live e-commerce site with lots of sales. The site currently uses mysql_ for everything. mysqli_ is not installed at all. I need to keep ...
0
votes
0answers
55 views

PHP file causes error if not accessed via symlink

I have a PHP file which randomly causes a 502 Bad Gateway error in Nginx. The Nginx configuration is the following: location ~ ^/dscms3/bo3/(.+\.php.*)$ { client_max_body_size 1000M; include ...
0
votes
0answers
78 views

How to create custom graph in Observium

I`m trying create custom craph in Observium(http://www.observium.org/). I use this manual http://www.keithrogers.co.uk/?p=12 I can telnet myhost 36602 and receive result: ...
1
vote
1answer
30 views

Use NGINX to whitelist IP for specific folder (aka example.com/administrator) [closed]

I am looking for a way to whitelist a specific set of IP addresses for a specific area of my website. For example, I would like to only allow xxx.xxx.xxx.xxx to access "example.com/admin", and deny ...
1
vote
1answer
28 views

Include common configuration in several php5-fpm pools

Shortly: how can I include the same settings across several php-fpm pools without repeating them for each pool? Details In php5-fpm there are global directives and per pool directives. In all ...
0
votes
0answers
15 views

Is there any difference in the PHP application behavior between running it on Windows Server 2008 with IIS and on Windows 8.1 with IIS?

As the title says, Is there any difference in the PHP application behavior between running it on Windows Server 2008 with IIS and on Windows 8.1 with IIS ? I'm supposed to develop some additional ...
0
votes
0answers
28 views

Nginx - File uploading with a php backend?

I want to set up a simple nginx server that takes uploaded files and runs a few checks and shell commands on them before moving them to the /files directory. Is it possible to do this with a php file ...
0
votes
1answer
281 views

Configuring php7.0 with apache2

I'm running the newly released php7.0 on debian jessie. By now it works all fine. Enabling the pdo_mysqli, I have found mutliple configuration directories for php7. There are: apache2 cli fpm I'm ...
0
votes
1answer
37 views

php script from sh from crontab die with no traces

in my crontab there is a script starting at 2:40 AM, executing some routines both from sh commands and php scripts starting from sh files. the line in crontab looks like this: SHELL=/BIN/BASH ...
-1
votes
1answer
65 views

MySQL: Why would I have to repeatedly FLUSH HOSTS after a few minutes? [closed]

I have a web system setup in AWS that we are building up to migrate an existing web app to. I have 2 VPCs: 1 for web and 1 for data. These VPCs are Peered and Security Groups are setup to isolate each ...
2
votes
2answers
1k views

Running phpMyAdmin and php-7 at the same time?

After upgrading php5 to php7, I get this error when I want to apt-get install phpmyadmin The following packages have unmet dependencies: phpmyadmin : Depends: libapache2-mod-php5 but it is not going ...
0
votes
1answer
25 views

Can/should PHP-FPM and Apache be run under the same user/uid and/or group/gid?

I decided to reinstall my box's PHP and Apache today to give FPM a go, never used it before and wanted to do some performance tests as I've heard it is a lot faster. Right after compiling and ...
0
votes
1answer
54 views

Single Sign On with multiple Identity Providers from PHP web app

I'm building a SAAS web app in PHP that needs to integrate SSO. We'll have multiple client organizations, each that have their own Identity Provider (Active Directory). While researching ...
0
votes
1answer
46 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
0answers
15 views

Home became 主页

After I ran software upgrade "apt-get upgrade" on DB server, chinese characters become weird Joomla 2.5.16 PHP 5.5.9-1ubuntu4.14 with fpm-fcgi/php5-fpm nginx 1.4.6 mysqld (Percona XtraDB Cluster) ...
0
votes
0answers
101 views

FastCGI sent in stderr: NGINX error upstream

Hoping that anyone can help me with a cryptic error in nginx I have. If you look below I've pasted the error I get when I try to upload a movie, and if it helps it's with this ...
1
vote
1answer
31 views

Limit redis connections when using PhpRedis as session store

We are using PhpRedis as a session handler for PHP sessions. Other than that, we are running a standard Apache/PHP configuration. Since we are using an external Redis-as-a-service provider, we would ...
0
votes
0answers
30 views

HTTP keeps crashing, due to session errors?

I have a server that runs various Wordpress / WooCommerce websites. Today, out of the blue, HTTP kept crashing on my server. I took a look at the error_log and I keep seeing messages like this: ...
0
votes
0answers
52 views

Php5-fpm starts and then fails after a few seconds

After an upgrade from ubuntu 14 to ubuntu 15, if I run sudo php5-fpm start, it hangs in ssh but the webserver is online and I can access the website. After a few seconds (maybe 30) the ssh command ...
1
vote
0answers
17 views

sending back rewrote url without forcing a new request

The user of my application issue commands (create new post, delete comment etc.) via links with nonce parameter. As this is transported via GET the URL bar contains this technical detail. I want to ...
2
votes
1answer
80 views

Laravel and Wordpress on same server/domain

I am trying to host a WordPress site inside a Laravel(5.1) project. I have the following structure (stripped down some) ├── app ├── config ├── public │   ├── index.php │   ├── wordpress -> ...
0
votes
1answer
76 views

LAMP server with remote MySQL on CentOS 6.4 [duplicate]

I am pretty new to linux and LAMP setup. I want to setup a LAMP environment with AP on one linux server and M on a different linux server. I have a hard time finding a relevant document with such a ...
-1
votes
1answer
101 views

LAMP stack with apache and php on one linux server and mysql on a different linux server [closed]

I am pretty new to linux and LAMP setup. I want to setup a LAMP environment with AP on one linux server and M on a different linux server. I have a hard time finding a relevant document with such a ...
0
votes
1answer
39 views

Can not connect to Cloud SQL using local IPv6 address

I want to connect to a Google cloud SQL instance using its free IPv6 address instead of buying an IPv4 address. For that I looked up my IPv6 address and allowed it. I also looked up my routers IPv6 ...
1
vote
0answers
55 views

CentOS PHP upgraded, now downloads all pages

I had to upgrade PHP to 5.6 to get access to a new function for locales and translation. I removed the old PHP and added the new PHP from the Remi repo as specified here. I restarted Apache and now ...
18
votes
6answers
1k views

Any ideas on how to run maintenance on a site that is always under use?

I help out with a large gaming site in Australia. We run competitions from 7am local time to 1am the next day, every day of the week. We haven't skipped a day since the site was released. Naturally, ...
0
votes
1answer
56 views

Wrong JPEG library version: library is 62, caller expects 80 [closed]

I have problem with imagick php extension. When trying to manipulate jpeg files error occurs: Wrong JPEG library version: library is 62, caller expects 80 I was trying to find where that library ...
-1
votes
1answer
101 views

Nginx 404 Not Found

I have the problem that my http://kd41364.zap-hosting.com/ Webpage works on my Linux. However, all other sub-pages get a 404 Not Found error from nginx. (www.kd41364.zap-hosting.com/owncloud) I tried ...
0
votes
3answers
478 views

php56w-common conflicts with older version of php (Centos)

I am trying to update my vagrant box to use PHP 5.6, and I am basically doing the following process on the command line. sudo yum remove php* (remove PHP) wget ...
1
vote
1answer
20 views

PHP sessions without an expiration period. What happens to the sticky session on the load balancer?

I'm using PHP sessions without an expiration period, using Amazon EC2 Elastic Load Balancing with Sticky Sessions.. What happens to the generated application sticky session on the load balancer? When ...
0
votes
0answers
28 views

Run a different version of PHP on a domain directory?

I'm aware that it's perfectly possible to run different PHP versions on different domains/vhosts. But, someone is asking me to run a different PHP version on a domain directory because "there are ...
0
votes
0answers
14 views

Email piping giving a php error

I'm getting a php error when sending an email to a piped address which runs to a support ticket system. The ticket get's opened fine, but there is a bounce email that is also sent to the sender (get ...
0
votes
0answers
13 views

Service written in php stops working

I have written a php script that acts as a messageserver. The messageserver uses websockets in order to establish connections between multiple mobile applications in order to provide realtime chat ...
0
votes
1answer
102 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
votes
1answer
31 views

Best practice connecting to a galera cluster?

If I have 7 servers, with 7 IPs, what is the best way to connect to them? I have thought of: 1.) Pointing all my queries through one IP 2.) Using rand() to randomly select an IP and connect to it, ...
0
votes
2answers
515 views

Joomla 2.5: JError: Unable to load Database Driver: mysql

I've suddenly started receiving the message "JError: Unable to load Database Driver: mysql" when browsing to any page within a particular Joomla 2.5.x site. Other Joomla sites on the same server, that ...
1
vote
1answer
247 views

Laravel 5.1 deployement Your requirements could not be resolved to an installable set of packages

When I am trying to deploy my laravel project and do a php composer.phar install I get this annoying error. I pulled in my project via git with a git clone. And when I surf to my domainname I would ...
0
votes
2answers
91 views

Stop PHP scripts being able to read files in other virtual host's directory

Okay, so let's say I have two virtual hosts in my Apache config. One defines the directories and such for example.com, whilst the other is for second.org. The server root for apache is /var/www/ and ...
0
votes
0answers
22 views

PHP Webserver Not Sharing Sessions With Memached

Background & Question I'm trying to set up a load balanced structure to host PHP applications in Azure. To accommodate session sharing among web servers, I am trying to set up memcached as a ...
0
votes
0answers
18 views

HEROKU php-buildpack but upgrade cURL and LibSSH2 to support SFTP

Im trying to enable my php app to use cURL to do SFTP via a proxy. phpseclib is not an option as it dosn't support proxies for SFTP. I'm using the ddollar/heroku-buildpack-multi to try and "upgrade" ...
0
votes
1answer
25 views

Where do pear packages get installed on the IBM i?

I have a V7R1 system with zend zerver and pear seems to work: $ /usr/local/zendsvr6/bin/pear channel-discover pear.phing.info Adding Channel "pear.phing.info" succeeded Discovery of channel ...
0
votes
0answers
21 views

How to modify “Path” environment variable on Azure?

I have an Azure Web Application developed in PHP and I try to add the Imagick library. The issue is that I have to set the location of some dll's in the PATH environment variable, but Azure does not ...
0
votes
1answer
71 views

Millions of requests and MariaDB vs. PostgreSQL

I do not ask for comparison. I already know what PostgreSQL and MariaDB is and differences. I am looking this issue from another point. Such companies like Facebook uses MySQL (of course patched) but ...
0
votes
0answers
14 views

speed: nginx on windows with php fastcgi hosting laravel [duplicate]

I'm trying to host a laravel app on a windows machine and I am trying to find out whether I should use WAMP or WNMP for best speed. Right now I have nginx and php fastcgi running in service wrappers. ...
0
votes
1answer
83 views

FFMPEG works on Console but doesn't work in PHP script on Ubuntu

I have this aplication where I need to convert video files to MP4 and then compress it. I'm trying to use FFMPEG to get this to work. Tried the command lines in the console and it works great ...
1
vote
1answer
28 views

Finding source of rapid concurrent mysql connections

So we have a large number of scripts running on our server that periodically open up mysql connections and we are generally good about closing the connections as soon as they are done being used. ...