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
27 views

How gzip compression still happening?

I am using Ubuntu 14.04.4 LTS,Apache/2.4.7 and PHP 5.5.9. I installed Wordpress 4.4.2 in my machine. When I run my site in localhost, I noticed that js/css are compressed in gzip format. I didn't ...
0
votes
2answers
76 views

“sudo apt-get install php7.0-dev” not working

I am trying to install Xdebug to server and pre-requisite in tutorial I am following is php5-dev but I am using php7.0.5 so I tried sudo apt-get install php7.0-dev. It gives me Reading package ...
-1
votes
0answers
40 views

Installing mysqlnd for php 5.6 on CentOs 7

I get php warning: mysql_connect(): Headers and client library minor version mismatch. Headers:50547 Library:50624 Also I read that I need to install mysqlnd to my server. I tried do it using: ...
0
votes
0answers
12 views

How did my non-CMS based website get hacked? I have a file called mails.php which contains a preg_replace statement [duplicate]

I have a series of websites in my server, all of which share the same set of PHP files. They're not based in any CMS (no Wordpress, no Joomla, etc.). All of them contain my own "CMS" so to speak. I've ...
1
vote
1answer
78 views

Server is often slow to serve webpages and takes long to ssh into

First of all, I am in no way a professional running a server for about two years from home, so keep in mind that the cause to my problems can be very basic and with a simple solution. My problem is ...
-1
votes
1answer
13 views

Connection reset when trying to access / with a FallbackResource rule

I am having an issue where my site is working as intended for all urls except the base url of example.com/. When I try to access that in particular I get a connection reset. I have reduced my site to ...
0
votes
0answers
5 views

How can you set PHP-CGI in IIS to run in the same app domain as an asmx web service?

We have an IIS web server that's running PHP-CGI, a few asmx web services, and some other things on the same general website. That being said, I've created a dll that is used by the web services ...
0
votes
0answers
24 views

mysqli non-standard socket location configuration for php5-fpm on ubuntu 14.04LTS

Feel free to migrate this. Its ambiguous to me if it belongs in serverfault, stackoverflow, or Unix & Linux. I recently deployed a handful of wordpress sites for a client. I started to notice ...
0
votes
0answers
30 views

Unable to get Nginx/Apache + FastCGI + PHP-FPM + HTTP/1.0 to use Keep-Alive

For a reason beyond my control (an app that cannot be modified), I need to get a server that processes HTTP requests for PHP pages over FastCGI, to honour "Connection: Keep-alive" (sent by said ...
-1
votes
0answers
29 views

Wordpress LAMP server stop serving after a year

A LAMP setup running Wordpress have been working fine for a year, but suddenly stop serving pages a few days ago, going to the website gives the error ERR_EMPTY_RESPONSE in Chrome browser. Question: ...
0
votes
1answer
19 views

pear/MDB2_Driver_oci8 requires PHP extension “oci8”

I got this Error: unable to find package 'MDB2_Driver_oci8' file 'MDB2/Driver/oci8.php' so I tried to install it with pear install MDB2_Driver_oci8-1.4.1 but following Error is showing up ...
0
votes
0answers
45 views

ownCloud 9 MySQL not supported

I'm trying to install ownCloud 9 to FreeBSD 10 with nginx as web server. I am using this official manual, which tells me to use this command: sudo -u www-data php occ maintenance:install --database ...
-1
votes
1answer
30 views

Server got blank with error: -bash: fork: Cannot allocate memory [closed]

My Vps is not executing any command. Server load is high and memeory usage is 100% due to which this error occured -bash: fork: Cannot allocate memory. I just want to what is this process PHP and ...
0
votes
2answers
52 views

restart php5-fpm from php script

Ok, this is a tricky one (I think) I need to reload php5-fpm from a php script The obvious issue is that once the reload command is executed, the current script is disturbed, I tried to delay the ...
-1
votes
0answers
36 views

Error compiling a php 5.6.20 on a Centos 6.7

I'm compiling a php 5.6.20 on a Centos 6.7. I have the following error: configure: error: Can not find IMAP library (libc-client.a). Please check your c-client installation. In searching the ...
0
votes
1answer
25 views

Apache <VirtualHost> tag, do NOT redirect if client's IP = x… how to do that?

so I couldn't find an answer to this question anywhere... I am redirecting my clients from http to https when they're using http by having this in my httpd.conf <VirtualHost *:80> ServerName ...
2
votes
0answers
109 views

Php 7 opcache v php 5.6 xcache

We're provisioning a new server and are deciding between (php7 / opcache) and (php5.6 / xcache). We run a few chunky ecommerce sites and want the best possible performance. I'm looking for ...
0
votes
0answers
37 views

PHP7 “fails” Intermittently - 502: bad gateway

I am running Ubuntu 14.04 with PHP7.0-fpm (from the Ondrej/php PPA). PHP now randomly fails, and by fail I mean serving a 502/504 error, the processes themselves are still running. It is sitting ...
0
votes
0answers
19 views

Apache folder permissions issue

I've been searching for a solution for this for hours and just can't seem to find a topic where the user is facing the same issue as myself. There are similar threads but having followed all of the ...
0
votes
2answers
32 views

nginx+fastcgi+php-fpm step from standard config = 404

I want to work simple url like http://host/test.php, note there are no trailing / at the end. I start from standard config from nginx site + serverfault: location ~ [^/]\.php(/|$) { ...
0
votes
0answers
19 views

Sef, Joomla 3, PHP 5.3.3 (fpm-fcgi), nginx 1.4.2

The server hosting two virtual host. Each of them must be reached at http://www.pincopallino.it (VH1) and http://www.pincopallino.it/Ufsoit (VH2). Everything works correctly if not active SEF form , ...
-1
votes
0answers
48 views

What's wrong with this server config for Wordpress (nginx, varnish, apc)?

I'm setting up the Wordpress backend for a high traffic website (gets around 15-20 million pageviews a month). It's up ad running but it's not performing as I wished. The components are: Php5-fpm ...
1
vote
2answers
56 views

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the ...
-1
votes
1answer
30 views

Windows server 2008r2 not executing PHP in sub-folders

I run windows server 2008r2 for purpose of web-hosting. I have plesk panel 12.0 installed on server. I created hosting for one website hardworkerz.net and default physical path is ...
0
votes
1answer
32 views

Can I point a folder hosted on AWS, to my current hosted site in Aptible?

I have a domain www.example.com (which is built with PHP/MySQL) hosted on Aptible server. Now, I am planning to create a blog with WordPress which will be hosted on AWS, and will be integrate to the ...
1
vote
0answers
25 views

have xmpp (ejabberd) server authenticate with existing user database (MySQL)

Let me start off by stating that I know very little about the XMPP protocol or real-time communication in general. I did however manage to set up an ejabberd server with TLS encryption. I have written ...
0
votes
1answer
33 views

Php mail is erratic: sometimes sends, sometimes doesn't

I have a server set up to use postfix to send mail from the server. When a user registers at my Wordpress site, an email is sent to the administrators, both of whom have gmail addresses. Sometimes ...
1
vote
1answer
24 views

https not recognized by PHP when lighttpd url.rewrite used

I'm deploying a PHP website using lighttpd. To get nice URLs working, I've put this into the configuration file: url.rewrite = ( "^/(?!(wp-admin|wp-includes|wp-content))/(.*)" => ...
1
vote
1answer
27 views

Nginx rewrite rule subfolder 404 error

I cannot figure out how should I setup my index.php file with Nginx rewrite rules that it will work like example below. If I visit the url it gives me 404 error not found instad echo 'hello'. URL: ...
0
votes
0answers
85 views

PHP 5.6 Broken after trying to upgrade to PHP 7

I've tried reinstalling PHP5.6 a dozen times now with sudo aptitude purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "` Nothing seems to help. Tried installing PHP7 - no luck. Error I get ...
0
votes
1answer
33 views

Amazon SES not sending to multiple recipients (AWS SDK for PHP)

I've set up Amazon SES on my server. I'm using AWS SDK for PHP. It's version one. Here's the documentation. Here is the code I'm using to send: $to = $_POST['mailto']; $response = ...
0
votes
1answer
41 views

Let php PDO work with newest version of PostgreSQL (Debian/Ubuntu)

I installed PostgreSQL and the php PDO driver on my 14.04 Ubuntu like this: sudo apt-get install postgresql postgresql-contrib sudo apt-get install php5-pgsql Which installed PostgreSQL 9.3 and ...
-1
votes
0answers
24 views

php-Authentication always fails [migrated]

I am trying to set up a simple athentication with php: <?php if ($PHP_AUTH_USER != "a" or $PHP_AUTH_PW != "b"): header('WWW-Authenticate: Basic realm="Protected Page: ' . 'Enter your ...
0
votes
1answer
65 views

Php script - Have I been hacked [closed]

Here is the PHP script I have found at the root of each of my website folder. Script name is fcb.php Content is : <? $GLOBALS['_1303753477_']=Array(base64_decode('YX' ...
2
votes
2answers
22 views

What are the benefits of connecting to MySQL using PHP-PDO's SSL attribute?

I primarily develop PHP applications using MySQL as my database. Generally, the server running the application is on the same box as the MySQL server, though not always. I was reading in the PHP docs ...
0
votes
2answers
27 views

Wordpress plugin update/install failure

I've been reading all sorts of information all over the web on this topic. I just installed Wordpress on my Fedora 22 box, x64. The installation went perfectly, I'm able to access the site, but cannot ...
0
votes
1answer
23 views

SLES12 PHP without buying modules

We need to install a SUSE Enterprise Linux 12 Server with PHP and Apache. I've read about the "Web and Scripting Module" - but we just need the server for testing purpose of a live server. And I ...
0
votes
0answers
15 views

Is it safe for nginx-php-fpm servers in a pool to share config files on a GlusterFS volume?

I'm in the middle of setting up a pool of webservers using nginx with php-fpm. I'm using a glusterfs volume to hold php/html files. I've realized that keeping things like php.ini, and sites-enabled ...
0
votes
1answer
38 views

Cron Job error says ioncube is not installed when it is

I have a website (mivprofit.com) and this website works with a script that requires a couple of cron jobs to run once a day. I have a cron email set and whenever the cron job runs this is the email ...
1
vote
0answers
24 views

Install Pecl PAM authentication Apache

I want to setup horde webmail 5.2.9 on my server (debian Jessie). When I go to localhost/horde/test.php I get: PAM Support (PECL extension): No The PAM PECL extension is required to allow PAM ...
0
votes
1answer
51 views

Postfix won't send PHP mail() function from form

I got postfix to send me emails from my server via console using echo "body example" | mail -s "subject example" my@email, but when I try to send an email from my website via mail(), the php function, ...
0
votes
0answers
212 views

Weird CLOSE_WAIT statuses at standard PHP application

I am asking for help regarding tcp problems on a webserver serving a web application built in PHP. The client is a standard html/js page viewed in the web browser. This client sends Ajax requests ...
1
vote
1answer
40 views

How to expire image and force reload in Apache only when file in server changes

I have a PHP application running on an Apache2 server. I started off with HTML5 Boilerplate, and the .htaccess includes "1 month" expiry policy for all images. For example: ExpiresByType image/jpeg ...
0
votes
1answer
34 views

php files(Symlink) are displaying as text

This is not same other question like "php file is displaying text or not executing". In my case, the php files are indeed working fine. However the files(symlink) to the php files are not working. ...
0
votes
2answers
116 views

FPM binary for PHP cli [closed]

The newest Synology NAS DSM 6 version has a strange PHP set up. The command line binary is PHP version 5.6.11 with almost no enabled modules and the tokenizer part is not compiled into it. But when ...
1
vote
0answers
34 views

Apache user directory refuses connection when I enable PHP module on OS X 10.11

I'm trying to configure the user director /Users/username/Sites in Apache. If I comment out the PHP LoadModule it works fine, and somehow PHP7 is even loaded. Problem is that I need to use PHP5, but ...
0
votes
0answers
16 views

How to run a php script under Window's Task Scheduler that outputs a CSV file

I need to run a php script that queries my DB and outputs the results as a CSV file. I have the script to produce the CSV and it worked perfectly when run on web browser. I just need to figure out how ...
1
vote
1answer
48 views

IIS 8 with PHP 5.6: WinCache VS Zend Op Cache

Zend Op Cache is compiled by default on PHP5.5+, but IIS encourages use of WinCache for opcode caching. what is the extension that will give me the best performance and stability on IIS? there are ...
0
votes
2answers
31 views

How to allow use of fopen and getimagesize on urls without schemes e.g. // instead of http:// [closed]

I set open_basedir in the site conf. but I noticed errors "open_basedir restriction in effect" when using getimagesize with uri that start with // instead of http:// how to allow this? Can adding ...
0
votes
1answer
29 views

Server reached pm.max_children setting

I am running a WordPress website under Nginx and FPM. In case of traffic it kills the php process and website stop working for all the user. Here is what i found from the log. Is there any way that ...