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
votes
1answer
19 views

The requested package php could not be found in any version

I'm trying to install the latest version of Technic Solder in my Plesk VPS server but composer is failing to detect the php version installed... What cant I do to fix that? My system is running ...
0
votes
1answer
8 views

Install php-soap56w on CentOS 7 x64 not working

I followed the guide located here to install PHP 5.6 with Apache on CentOS 7. Everything went along smoothly. I now need to install PHP-SOAP and it's gave me dependancy conflicts. So I used this ...
0
votes
1answer
840 views

DNS failure crashing web site - CURL requests

My PHP keeps throwing random errors which relate to slow scripts. nginx/php5-fpm report in their error logs that the child has been terminated due to script timeout. PHP5-FPM slow error log reports ...
0
votes
1answer
14 views

Apache proxy to subdomain (vhost)

I need to proxy to a webserver were I don't have control over it. The problem is that the webserver hosts more than 1 domain and subdomains on the same IP. This means that when I use apache proxy I ...
1
vote
1answer
841 views

php set_time_limit not working with mod_fcgid?

It seems set_time_limit function call has no effect when php is running with mod_fcgid (the default in webmin). Can someone tell me how to make it work?
2
votes
0answers
17 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
-1
votes
1answer
23 views

Backdoor:PHP/Shell.P keeps regenerating.Caught by Antivirus. [duplicate]

I have a windows server 2008 with PHP on it and a few Wordpress sites on it. I got a virus some time ago. I thought I had it deleted and everything was fine but after looking at my Quarantine section ...
1
vote
0answers
45 views

2006: MySQL server has gone away

I am getting 'Lost connection to MySQL server' and '2006: MySQL server has gone away' errors so frequently that the server is unusable. There are questions related to this issue, but none that apply ...
1
vote
4answers
6k views

Trouble installing php memcache extension

I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but ...
-5
votes
0answers
26 views

Connect to remote server over VPN via PHP

I have a little problem; I have a Ubuntu-Server located in Germany. On this server i want to run a PHP script which connect to the internet over a VPN. (because i need an IP-Adress from another ...
3
votes
2answers
992 views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
0
votes
1answer
13 views

Apache process growing despite limiting MaxRequestsPerChild

Server Version: Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 PHP/5.4.27 mod_perl/2.0.6 Perl/v5.8.8 CENTOS 6.6 PHP handler - DSO The server is running with prefork ...
0
votes
0answers
40 views

How to find which PHP file is opening socket connection? [duplicate]

Apache status page is showing a lot of requests to http://TheServerName.com/wp-login.php coming from 127.0.0.1. This domain is not even active. I suspect that a malicious php script has infected one ...
0
votes
1answer
911 views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
2k views

nginx - 403 Forbidden

I've trouble to get aliases working correctly on nginx. When i try to access the aliases, /pma and /mba (see secure.example.com.conf), i get a 403 Forbidden but the base url works correctly. I read ...
1
vote
3answers
59 views

Blocking Invalid HTTP Requests to PHP Application

For the first time in a number of years, I'm semi-responsible for helping out with the server administration of a PHP web application (served out using Apache). We're seeing a number of requests for ...
-2
votes
0answers
14 views

issue with install ImageMagick on centos6.5/php5.4 — Unable to load dynamic liberary [migrated]

I want to install imagick on centos6.5/php5.4 I did all step of this tutorial: https://www.vultr.com/docs/install-imagemagick-on-centos-6 But finaly aftet suscess install I get error with this ...
0
votes
3answers
25 views

pear on CentOS with “No Package” message

I googled for hours to find a solution but couldn't find anything. What can I do with this error? I couldn't install php-pear on centOS 6.5. [root@server ~] # yum search php-pear Loaded plugins: ...
-2
votes
1answer
28 views

how can I understand if IMagick is installed? [on hold]

I install Imagick according this tutorial: http://www.imagemagick.org/script/install-source.php#unix I used this code: function alist ($array) { //This function prints a text array as an html list. ...
-1
votes
0answers
21 views

cURL settings in debian [on hold]

I recently setup a cURL script, wich I tested at a Windows XAMPP envirement. Now I want to bring it live on our Debian machine, but its not working anyhow. I think this has something to do with the ...
1
vote
2answers
2k views

Equivalent of PHP setlocale in an APACHE config file

I need to display a date in french locale. A solution is to use setlocale(LC_TIME, 'fr_FR'); But I'm looking to set the locale directly in the configuration of my apache server. In the ...
0
votes
1answer
1k views

Unable to install phpMyAdmin via yum (remi)

I'm trying to install phpMyAdmin via remi and it seems like it's missing php-php-gettext: # yum --enablerepo=remi install phpMyAdmin Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
-1
votes
0answers
22 views

install pecl on centos server (VPS) [closed]

I want to install image magic on centOS 6.5 server... In one of steps,I must install this: pecl install imagick But it dosen't run..I got this message: pecl : command not found. I googled ...
-1
votes
0answers
18 views

How to let php write to www dir in EC2 server? [closed]

I'm using some sort of third party API and the API is logging to filesystem. Logging constantly cause warning on my page saying 'can't write file'. How is the correct way to give file/directory ...
0
votes
1answer
1k views

Trying to install pdo_oci via PECL fails asking for PDO extension

I'm using Linux Mint 11 (based on Ubuntu 11.04) and I need to use PHP with Oracle through PDO, a requirement of the framework we will work with. I've installed various PDO extensions using the normal ...
0
votes
4answers
4k views

Magento Apache Config & Memory Issues

I have a Magento installation on a VPS that is giving me a headache. This particular VPS has a reasonable spec - 2gb Memory and 50gb storage. It runs a single domain, with a single Magento install - ...
-2
votes
0answers
16 views

make php 5.3 website to work on server with php 5.4 [closed]

In some shared hostings I remember there was an option in cpanel that you can choose the php version. Because it is a shared hosting the version will be changed only for that specific account I guess. ...
0
votes
1answer
134 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
3
votes
2answers
1k views

Apache 2.2 + mod_fcgid + PHP 5.4: (104) Connection reset by peer

On a Debian 6 VPS, I'm running PHP 5.4 via mod_fcgid on a couple of different virtual hosts, managed by Virtualmin GPL. At random, I get 500 Internal Server Errors; restarting Apache brings everything ...
0
votes
1answer
906 views

php-fpm returning empty response to nginx

nginx is connecting to php-fpm over fastcgi, using the standard /etc/nginx/fastcgi_params in the location block. When connecting to /.status (php-fpm.ini::ping.path) from the command line with ...
-4
votes
0answers
33 views

PHP scripts run fine on server, phpmyadmin will not open, only Downloads File [duplicate]

Not sure where to go here, been looking all over the place for an answer; so, I figured I'd try here. I have an Ubuntu 14.04 LTS server running apache2, mysql, php5, etc. All is running fine, my one ...
0
votes
0answers
14 views

PHP configure prefix not finding php-config

I am installing phalcon, and while I have my setup working fully I am confused by the configure generated by phpize. Specifically, why do I have to pass --with-php-config - I thought setting ...
-2
votes
1answer
1k views

phpMyAdmin displays blank page

I have gone through all links related to a blank page displayed by phpMyAdmin but none of them helped my solve my issue. I have installed phpMyAdmin and deployed it on the Apache server. I have also ...
0
votes
1answer
899 views

How to install pecl spidermonkey on CentOS 6

Running the following command: > sudo pecl install spidermonkey I receive the following error: ... ... a bunch of successful checks ... ... checking whether to enable spidermonkey support... ...
0
votes
1answer
1k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when am trying to run it my browser is failing to run it ,it's showing This webpage is not available The connection to localhost was interrupted. Error ...
3
votes
1answer
3k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
1
vote
2answers
1k views

PHP-FPM with Apache 2.2.22 and Ubuntu 12.10 - 500 Error, or returns text (not executing)

I am following this tutorial to try to install PHP-FPM on my LAMP stack. My config in /etc/apache2/sites-available/default contains (as per the guide) <IfModule mod_fastcgi.c> Alias ...
2
votes
4answers
3k views

How can i find out why my php5-fpm failed to start?

i get 504 gateway timeout when i try to reach my server a small check didn't find any logs on php5-fpm logs, but just to make sure, i tried to restart it. when i'm trying to restart it: sudo service ...
1
vote
2answers
1k views

How to install php cli with pnctl alongside Zend Server

I have Zend Server CE 5.6 with PHP 5.2 running on Ubuntu 11.10. Now the need has arisen to run a command line PHP script that uses PHP's pnctl functionality. First of all, I had no PHP command line ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
0
votes
1answer
32 views

PHP Script causing server to run out of RAM and wont release

Ive been running a very resource hungry script the past 2 days. I manually trigger the call and it lasts for about 30 minutes then stops. Last night the script stalled when ram hit 100%. I restarted ...
1
vote
2answers
986 views

Horrible PHP/MySQL Query Performance On Ubuntu Server 10.04

I just did a clear install of Ubuntu Server 10.04 with the standard LAMP config.. Then I made a small script to test insert speeds into a table with 3 columns. When I run the script on any of my ...
1
vote
0answers
19 views

PHP mail() function - “from” name overwritten by Exchange Server

I originally posted this on stack overflow but was told it might be better placed here on Serverfault. I am trying to send a very simple email from a php script ...
1
vote
0answers
12 views

config variable php_suffix does not match

I have a php instance on Webuzo (centos-6-x86_64.openvz) in /usr/local/apps/php54/. It already has pecl and phpize in /usr/local/apps/php54/bin/. When installing igbinary with command ...
1
vote
0answers
9 views

cPanel PHP open_basedir warning to root directory - Any solution? [migrated]

I am currently hosting a simple multi-tenancy service on cPanel shared hosting, where customers who signed up will have a subdomain, directory and a database dynamically assigned to them (via XMLAPI): ...
2
votes
1answer
87 views

Windows Server 2012 R2 runs out of ephemeral ports, though it shouldn't

We are regularly experiencing strange issues with networking on our dedicated server. It runs Windows Server 2012 R2 x64 on Xeon E5620 with 16 GB RAM and Intel 82575EB network adapter. Please note ...
2
votes
2answers
1k views

Ever increasing mem usage by php-fpm?

It seems php-fpm is allocating more and more memory, although peaks and dips in amount of requests. Couldn't post more than one image, so I put them here. As you can see in the uri of the pictures, ...
0
votes
2answers
1k views

Failed loading ioncube

I recently upgraded a small server to Ubuntu 12.10 (from 12.04), thus upgrading PHP from 5.3 to 5.4. However, I'm getting this in root's mailbox several times a day: Subject: Cron ...
-1
votes
0answers
26 views

How To Word Out Vulnerabilities On Hacked Webserver [duplicate]

I have a Server 2012 webserver running a number of clients websites (mainly Wordpress). A number reported to me today that upon clicking through from Google, they were informed that the site was ...
1
vote
0answers
18 views

PHP APC Using 2.7MB RAM for file that normally uses 16K

I had a PHP application that was performing poorly. I investigated the situation and determined that APC cache will filling up constantly. I increased the size of the apc cache so that I don't get ...