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

which is the best way to run unconv in php on debian server?

I have a php script in which I need to convert doc documents to html files in order to show them in a web page. I'm doing the conversion with the php command: exec ( $Command, $Output, ...
1
vote
1answer
149 views

Segmentation fault (11) on PHP website

I have recently moved a clients WordPress site to a new server. His old server was pretty outdated. It is the only site on the server. It's been a few weeks and I randomly get these errors in the php ...
0
votes
2answers
1k views

Unable to install Wordpress on Amazon's EC2 instance due to missing php-mbstring

I've created a new instance on Amazon's EC2 and I'm trying in wordpress and it's failing due to php-mbstring: # yum install wordpress Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
10
votes
5answers
52k views

How to install mcrypt for PHP 5.3.3 on CentOS 5.7 64 bit?

I installed php 5.3 and some modules using yum install php53-{module-name} But mcrypt did not work. I searched like this: yum list php* | grep mcry The only package that came up was ...
3
votes
3answers
5k views

Safely update php 5.3.3 to >=5.3.4 on centos 6

Would the following works fine without any issues? I have apc cache installed, the other packages the usual php configuration. yum update php would that be enough? it is an active server, so want ...
-4
votes
1answer
56 views

updating php red hat [closed]

I am trying to install PHP MVC framework Symfony. When I go to the check requirements page it says that I have to update my php to version 5.3.17+. I have an VPS with RedHat. I am totally new in ...
-1
votes
4answers
80 views

Upgrading php in Linux

I am running a Redhat on a webserver. The current version of php on the server is 5.1.6. I want to upgrade it to 5.3.8 so I downloaded php and compiled it and replaced the older php binary with the ...
0
votes
1answer
245 views

Upgrading to PHP 5.6.7 using remi repos

I have PHP 5.6 enabled in my remi.repo file and none of the other sections are enabled the only other section enabled is [remi] itself. [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch ...
-1
votes
1answer
99 views

Is PHP used for quick and easy websites where other languages are used in more complex websites? [on hold]

This stat shows that PHP is used by 75.2% of all the websites whose server-side programming language we know. http://w3techs.com/technologies/overview/programming_language/all And this page shows ...
-1
votes
0answers
20 views

PHP-GD not working as needed? [on hold]

I use a text generator for my headers on my website which uses php-gd and its image library. I have installed php-gd and its library on my VPS that's using CentOS 6.5 and a LAMP stack with PHP 5.6.9. ...
-2
votes
0answers
28 views

Why _SERVER[“SERVER_SOFTWARE”] becomes blank after certain period?

I'm running PHP 5.4.38 + Apache 2.2.29 on Windows Server 2012. When Starting up Apache, phpinfo shows me SERVER_SOFTWARE which looks correct: Apache/2.2.29 (Win32) mod_ssl/2.2.29 OpenSSL/1.0.1l ...
1
vote
1answer
22 views

How to upgrade PHP 5.4 to PHP 5.6 on Debian GNU/Linux 7 (wheezy)

I've added these lines to /etc/apt/sources.list deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all But still sudo apt-get update or sudo apt-get ...
-3
votes
1answer
22 views

Why isnt this sudoer command run as root?

I want to give PHP access to a very specific script using a configuration under /etc/sudoers.d. So I did the following: visudo -f /etc/sudoers.d/99-php And entered this sudo rule: www-data ALL = ...
0
votes
1answer
1k 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... ...
1
vote
2answers
1k 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 ...
0
votes
1answer
11 views

MySQL process in Sleep command and page is loading after 1 minute

I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx. I have an app built in ZF1 which works fine on all my development computers but on this server the application ...
-3
votes
0answers
12 views

Unattended solution for installing postrate? [on hold]

i need unattended solution for installing postrate I want to install postgre through bat file on single click in window system. I don't want to put and login cridetial on command prompt that should ...
0
votes
2answers
122 views

OpenBSD Nginx/PHP/MariaDB/PHP-FPM Stack

I have a minimal OpenBSD 5.7 amd64 install in VMware where I have installed matching versions of PHP and PHP-FPM, plus nginx, and mariadb using pkg_add. I configure all the services, and get nginx to ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
-2
votes
1answer
67 views

Apache set max Content-Range

The Question: Client asks for: Range:bytes=0- Server responds with: Content-Length:8396748 Content-Range:bytes 0-8396747/8396748 I want to limit that Content-Range to 1MB chunks so the server ...
1
vote
1answer
896 views

Error when customising EC2 instance php.ini file on AWS

I'm using Elastic Beanstalk on AWS and I'm trying to override some settings from the php.ini file. I've made the directory /.ebextensions with project.config within it: files: ...
0
votes
1answer
32 views

Postfix + php translating email addresses sent to local domains to something@localhost.localdomain [on hold]

My first question here, if I don't provide sufficient info straight away, please take it easy on me with the downvotes ;-) I'm running a VPS hosted by afterburst.com with OpenVZ I installed and ...
4
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 ...
6
votes
6answers
22k views

Downgrade PHP 5.4 to 5.3 in Debian

I had to do a Debian dist-upgrade on my server... in the process, PHP got upgraded to 5.4. We use ioncube which only supports up to 5.3 atm, and I'm having some trouble finding how to downgrade to ...
1
vote
2answers
100 views

Memcached vs Amazon Elasticache with PHP on CentOS 7

I setup a new CentOS 7 server in Vagrant to run PHP, nginx, MySQL (MariaDB) and memcached (note the d on the end). I can get memcached to run fine, but I can't get the Amazon Elasticache .so file to ...
1
vote
1answer
85 views

Roundcube + Dovecot: SSL errors when trying to log in

I'm setting up a mailserver using Dovecot 2.2.13, Postfix 2.11.3, and with Roundcube 1.1.1 connecting to it. Roundcube is running on a different server in nginx/php-fpm. Both servers are running ...
0
votes
1answer
1k 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 ...
-7
votes
0answers
10 views

unable to load images using php gd library [on hold]

<?php error_reporting(E_ALL); ini_set('display_errors', 1);?> <?php $db = mysql_connect('localhost', 'goofy', 'donalds') or die ('Unable to connect. Check your connection ...
0
votes
1answer
1k views

Compiling PHP on CentOS Needs MySQL PDO Configured

I am trying to compile PHP with mysql_pdo on CentOS 6 and I am having just one heck of a time trying to make it happen. Currently I am trying to compile PHP 5.2, but I am going to have to do this for ...
1
vote
1answer
1k 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
1answer
14 views

PHP installation issue on a Windows Server hosted in the Azure cloud

I am trying to setup PHP and MySQL on a Windows Server that is currently in Azure cloud using the information from this blog post ...
1
vote
0answers
34 views

See what's filling up the server memory? [on hold]

Our site goes down more and more often. Every other day. The server response time is too long and it just goes half blank. If I look in the browser source code, I see: Could not connect to the ...
2
votes
2answers
2k views

What is AddType application/x-httpd-php-source

I have Apache 2.0, PHP 5.2.4, and this directive in the httpd.conf: AddType application/x-httpd-php-source .php .php3 .php4 .php5 .php6 AddType directive is used to maps the given filename ...
0
votes
2answers
35 views

Docker - scaling nginx and php-fpm seperately

I've been playing around with docker and docker-compose and have a question. Currently my docker-compose.yml looks like this: app: image: myname/php-app volumes: - /var/www ...
1
vote
1answer
1k 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 ...
-1
votes
1answer
53 views

PHP Application needs mbstring library - can't install on EC2

A library on my ecommerce site requires the PHP mbstring library. Seems simple, just run: yum install php-mbstring but I get: [ec2-user@ip-172-0-0-0 modules]$ sudo yum install php-mbstring Loaded ...
0
votes
1answer
929 views

Failed upgrade of PHP on Ubunutu 12.04, error: Sub-process /usr/bin/dpkg returned an error code (1)

I just tried to upgrade my version of PHP on Ubuntu 12.04 and now I have messed it up. First I did this: sudo add-apt-repository ppa:ondrej/php5-oldstable Then I did this: sudo apt-get update ...
0
votes
1answer
79 views

Security implications of running Apache with php5-fpm as user:user

I just set up VPS to run Apache with php5-fpm which is set to run every user pool as user:user. Reason for this is simply to allow users to actually own their own files created by various CMS ...
0
votes
2answers
943 views

PHP with suexec/fcgid

httpd.conf file: LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script .php FCGIWrapper /usr/local/php5 .php # manual MaxRequestsPerProcess 1000 FcgidMaxProcesses 200 ...
0
votes
0answers
16 views

PHP CLI Add value to $_SERVER

I know I can add a custom value to the $_SERVER variable through Nginx with fastcgi_param MY_VARIABLE "myValue"; Is it possible to add the same variable to PHP CLI $_SERVER? This would be used ...
0
votes
0answers
14 views

PHP-FPM Stuck & High IO

Actually on my mutual hosting server I'm using PHP 5.6.3 with one pool. Sometimes, my php-fpm process is stuck with 50% of WA and I can't kill it, I can't even restart my VM. I'm using 245MB/3968MB, ...
0
votes
0answers
33 views

PHP-FPM output errors to be handled by php application with nginx

I'm having difficulty setting up a docker container with phpfpm to defer error handling to my php application. Any fatal exceptions are being processed by the xdebug stack trace ...
0
votes
1answer
4k views

Connection reset by peer: mod_fcgid: error reading data from FastCGI server Issues

Help is greatly needed for our server. We are experiencing random "Connection reset by peer: mod_fcgid: error reading data from FastCGI server" errors which cause a 500 internal server error. If the ...
0
votes
2answers
889 views

Apache authentification error

I've installed Apache 2.2 on my Debian-based distr (kernel 3.2.0-27) and apache2.2-common package with default configs. Trying to run simple script info.php I got the error found in ...
0
votes
2answers
923 views

Local php.ini not overriding main php.ini

I can't seem to get the php.ini file in the website's root (/var/www) to override the php.ini value in /etc/php5/apache2 /var/www/php.ini contents upload_max_filesize = 64M post_max_size = 64M But ...
1
vote
0answers
12 views

PHP remote network location not appearing

I'm having some difficulty getting PHP (or more specifically, Python via PHP) to recognize an important network location. I'm trying to make a simple website which will allow users to easily execute ...
1
vote
1answer
37 views

Unable to use builtin CA bundle to verify GoDaddy SHA2 SSL certificate

I ran into an interesting problem. We have a PHP script that contacts a LTL shipper (https://facts.dohrn.com/). That script has been failing because it can't validate the SSL certificate. I went to ...
-3
votes
1answer
26 views

phpMyAdmin and roundcube web mail error - Cant log in [closed]

I'm having an issue logging into the roundcube and phpmyadmin. I get an error just shows up with code. I run Centos6 on my VPS. I cant pin point the problem. Here are some screenshots of the errors: ...
0
votes
0answers
23 views

*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0x068977f0 ***

Completely fresh install of CentOS and I've installed PHP, MySQL and Apache with all modules, when I first tried to run the service the following message is in the error_log followed by a memory map. ...
1
vote
1answer
19 views

How should PHP FPM be monitored for max_children being exceeded?

I've set up the PHP-FPM and Nginx status output with the intent of monitoring for max_children being exceeded on a particular pool. I am, however, unable to load the status output when max children ...