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
121 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
886 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
26 views

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

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
12 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
889 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
50 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 ...
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. ...
-2
votes
0answers
22 views

log error in centos7 [on hold]

I'm just a beginner in linux base opreation system. I delete a log folder(log folder and all the sub folder within log folder) under var folder because it take 19GB of my hosting. And here we got the ...
-3
votes
0answers
22 views

error404 /cgi-sys/defaultwebpage.cgi [on hold]

I have a Mac mini I install vagrant with nginx + php on my Mac mini I set up a hostname(*.dev.com) on my Mac mini path /etc/hosts I set up a same hostname on my vagrant If vagrant IP Address is ...
0
votes
1answer
31 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
985 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
18 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
9 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
81 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, ...
-1
votes
0answers
18 views

How do I configure PHP for use with Blat on Windows Server? [closed]

Am running Apache and PHP on Windows and am having issues with fakesendmail. I want to try an Blat, which has been suggested as an alternative. Assuming I want Blat to takeover for sendmail (which is ...
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 ...
-1
votes
1answer
22 views

HTTP Error 500.0 - Internal Server Error C:\Program Files (x86)\PHP\v5.6\php-cgi.exe [closed]

On fresh installed IIS I get error.. HTTP Error 500.0 - Internal Server Error C:\Program Files (x86)\PHP\v5.6\php-cgi.exe - The FastCGI process exited unexpectedly Most likely causes: IIS received ...
-7
votes
0answers
28 views

how to set up a cookieless sub domain to serve static contents? [closed]

I am in search of developing a cookieless sub domain to serve my static contents in the web site. As I am a newbie to this field it look like a tough task for me. Can any one help me to find a ...
0
votes
2answers
1k views

Getting shared library error with php and mysql module on centos

I first installed php5.5 and mysql5.6 then due to some pacakge problem i had to remove them and install php5.3 and mysql 5.1 from yum. I php is not detecting any extensions and giving me this error ...
0
votes
1answer
904 views

Problems installing php5 from source in Ubuntu

(Originally asked here: http://stackoverflow.com/questions/14977119/problems-installing-php5-from-source-in-ubuntu) I've been trying to install php5 for a while. I'm using. Ubuntu 12.10 Apache ...
0
votes
0answers
23 views

How configure apache to allow simultaneous requests from the same ip

I am working on project in Zend Framework 2 using apache 2 (develop on windows, production on linux). All requests sent to server are queued (second start after first ends) locally and on production. ...
0
votes
1answer
833 views

Setting up ubuntu to send mail from PHPMailer

I have a small server, inside the company where I work, which has an app that needs to send email to notify users for different reasons. I'm using PHPMailer to do this. But as I suspected, I need to ...
0
votes
0answers
12 views

File changes are not reflected after system date changed to future [closed]

I have changed my system date to check date related functionality, But after that whatever changes done in my php files are not reflected in output. Every time it is showing result from previous file ...
0
votes
1answer
966 views

How to give Domain Name to IPs in an Intranet Network

I Know this is a Common topic here but I'm still confused. I have a Windows Server 2003 DHCP/App Server Machine with DNS configured. The Clients are Lubuntu 12.04 Systems. I want to host my PHP ...
1
vote
1answer
32 views

setting up suPHP with puppetlabs/apache on centos 6.5

I am trying to set up suPHP on a centos 6.5 box with the puppetlabs/apache module. Apache Configuration file { "/var/www/vhosts": ensure => "directory", owner => "root", ...
0
votes
1answer
970 views

php fopen error (failed to open stream: Permission denied)

I have a php script on a Windows Server 2008 box (IIS 7) that is run periodically to download a remote XML file and store it on the server. This script (which previously used to run successfully), is ...
0
votes
3answers
1k views

Cannot perform a PECL installation

I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5. Attempting to install geoip-1.0.7: ...
-2
votes
2answers
47 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: ...
0
votes
1answer
293 views

nginx wont cache images when they are read through php files

I have .php file which is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
1
vote
1answer
904 views

Red Hat 6 connect to MS SQL server 2005 using freetds; pdo_dblib and php

I'm having a problem connecting to my Microsoft SQL Server 2005 from a Red Hat box using freetds. My end goal is to be able to connect using php's PDO, but I don't appear to be able to connect when ...
0
votes
2answers
39 views

php servers without apache/nginx/cgi stack

In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket ...
0
votes
1answer
1k views

502 Bad Gateway - Nginx, spawn-fcgi, WordPress

I host several sites on a CentOS VPS, and all was working fine until one of the WordPress sites on the server started returning a 502 Bad Gateway error. Other sites work fine. The WordPress site will ...
-1
votes
0answers
13 views

jQuery cannot pass local storage to RDS postgreSQL via php on AWS

I am slightly new to programming, I have had a few friends help me out with getting my Phone Gap app to post local storage to postgres via php. I am testing my app on my desktop browser and in an ...
-3
votes
0answers
22 views

Linux smtp https socket [closed]

I have a Linux server with Apache, OpenSSL and PHP When i'm trying to send an e-mail to someone from my Gmail account i get this eror... How can i fix it? The following SMTP error was encountered: ...
1
vote
2answers
41 views

Can't connect to MySQL from another server

I have two servers on the same subnet. 192.168.100.1 (mysql) 192.168.100.2 (php) MySQL seems to be running fine on it's box but I can't seem to connect to it. These are both ubuntu boxes and ...
4
votes
2answers
1k views

Ubuntu install php5-ffmpeg

When I try to install php5-ffmpeg: apt-get install php5-ffmpeg I get an error: The following packages have unmet dependencies: php5-ffmpeg : Depends: phpapi-20090626+lfs As I understand my ...
0
votes
1answer
57 views

Does PHP mail function need a mail server? [duplicate]

We recently moved our Drupal sites to a Linode server. One of those sites has a lot of users filling forms. The previous server sent, with no problem, all form registrations to an email address, this ...
3
votes
2answers
870 views

phpize: m4 error just in one extension

On Linux, I installed php 5.3.8 from source. Using phpize for installing an extension works fine but not on one specific extension (mysqlnd). # cd /opt/php/5.3.8/ext/pdo && ...
0
votes
3answers
2k views

Magento Error 404 after moving from Apache to nginX

I moved my magento store from Server "A" which was on Apache to Server "B" running NginX. Copied all files and folders, Exported and Imported the SQL DB, Altered the local.xml file with the new DB ...