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
42 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
63 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
50 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 client)...
0
votes
1answer
35 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 pear/...
0
votes
0answers
116 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
39 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
3answers
83 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 ...
0
votes
1answer
34 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
331 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
74 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
23 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
45 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
36 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
vote
2answers
92 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
34 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 C:\inetpub\vhosts\...
0
votes
1answer
42 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
77 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
45 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
27 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))/(.*)" => "/index.php?$...
1
vote
1answer
89 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
219 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
78 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 = $email->...
0
votes
1answer
159 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 ...
0
votes
1answer
73 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' .'JyYXlfZGlmZl91a2V5'),...
2
votes
2answers
39 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 ...
1
vote
2answers
38 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
34 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 don'...
0
votes
0answers
24 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
63 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
51 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
76 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
399 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
58 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
48 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
164 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
63 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
39 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
97 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
37 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
46 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 ...
0
votes
0answers
20 views

Run Python Selenium Script from PHP (Apache Server)

I've written a python script that uses Selenium to automate some functions for a web application that I'm managing, which uses a headless Chrome instance as the browser running the scripts. Only ...
0
votes
1answer
82 views

PHP exec() over UNC path on Windows

My environment is Windows Server 2012 R2, IIS 8, Active Directory, and a file share. IIS, AD, and the file share are all separate VMs. I have a website, www.example.com, set up in IIS. The ...
0
votes
1answer
22 views

What happens when you make a HTTP request from 1 HTTP server on a VPS to another HTTP server on the same VPS?

I have 2 HTTP servers running on 1 VPS. If I make a HTTP request from 1 to the other. What happens exactly? Does it go through the internet and back? Or is it handled within the VPS? Hosting: Digital ...
0
votes
1answer
82 views

PHP not able to connect to MySQL

I just compiled PHP 7.0.4 on a Fedora 23 box, created a test script to connect to MySQL on localhost and all I get is: Error: Unable to connect to MySQL. Debugging errno: 2002 Debugging error: No ...
0
votes
0answers
10 views

IIS rewrite rule - How to omit 'index' text from website name when website opened in browser

I am using below IIS rewrite rule for index.php page of website. <rule name="INDEX"> <match url="^(.*)index$" /> <action type="Rewrite" url="index.php" appendQueryString="true" /> &...
0
votes
1answer
100 views

PHP CURL does not support RTMP protocol

I am trying to fetch RTMP url using PHP CURL, but unfortunately php curl says >Protocol "rtmp" not supported or disabled in libcurl I have installed rtmpdump and upgraded CURL to 7.47.1 latest stable ...
0
votes
1answer
51 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
1
vote
1answer
34 views

Ubuntu / CentOS - PHP5 imap ssl

I was wondering now, I have developed a Helpdesk System, than uses the PHP imap library to connect to configured mailbox's and "pull" the mails through and create tickets based on the content. But ...
0
votes
0answers
31 views

How to debug php-cgi.exe ruins my windows server 2012R2 cpu?

I have server 2012r2 with php 7.0.4 (x64/32 - no diff) Problem is that process php-cgi.exe use a lot of cpu. cpu Server is on 2 virtual cpu and 4 gb ram - so it should handle at lest 50-100 users ...
0
votes
1answer
72 views

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP ...