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

php-fpm unable to restart because of another FPM instance

/etc/init.d/php-fpm restart Stopping php-fpm: [FAILED] Starting php-fpm: [10-Oct-2013 21:24:37] ERROR: An another FPM instance seems to already listen on ...
0
votes
1answer
86 views

Unable to adjust php.ini max upload size directive on Centos 6.3

Currently i'm setting up Centos 6.3 (64 bit) on vm and installing Wordpress: Already adjust /etc/php.ini but seems like overwritten by other settings. Suspect this is due to selinux feature. My goal ...
-1
votes
2answers
273 views

Red Hat Software Collections 1 Beta channel has 0 packages?

I want to install PHP 5.4 on a RHEL 6.x box as described in this Red Hat blog post. I have a valid subscription and have added the channel, but a yum repolist shows a status of 0 for the channel. ...
0
votes
1answer
89 views

How to install different extensions when using multiple PHP versions

I have the following setup : Centos 6.4, Apache set up to work with WHM/ cpanel with it's version of PHP (5.4) and nginx running a separate version of PHP to handle everything else. How can I do a ...
0
votes
1answer
841 views

Apache consuming too much CPU and memory

I am having some troubles with CPU loading an memory with Apache Web Server. We are running a Ubuntu Server 12.04 LTS on a Virtual Machine. Our server have the following specs: 8GB RAM; 4 vCPUs ...
0
votes
1answer
157 views

php5-cgi gives 502 with varnish but is ok without

problem summary: php5-fastcgi works with nginx but doesn't work with nginx+varnish (502 Bad Gateway) does anyone have a suggestion of what I could change to get varnish working ? problem details: ...
0
votes
1answer
341 views

PHP thinks date.timezone isn't set

For some reason, even though I've uncommented the line in php.ini and properly set the value to date.timezone = America/New_York, php refuses to acknowledge it. When I open up phpinfo.php it says ...
0
votes
1answer
31 views

Under What Conditions May PHP Server Variables Be Disabled

As per the question: "Under What Conditions May PHP Server Variables Be Disabled". Basically on Shared Hosting I am using I can choose to run my website in 'Apache' or 'CGI' mode. When running in ...
2
votes
1answer
376 views

Is there an equivalent to Debian's cli/php.ini on Redhat?

How do you configure the command line version of PHP to have different settings on a Redhat system? On Debian based systems, php has a separate command-line version config file: /etc/php5/cli. On ...
-1
votes
2answers
952 views

How to build & install pgsql PHP extension manually on Ubuntu

I've searched high and low and haven't found anything. Perhaps I don't know what to search for. Environment is Ubuntu Lucid (10.4) with PHP 5.2.4 & PostgreSQL 9.2. PHP is "held" at 5.2.4 with ...
1
vote
2answers
654 views

How to downgrade php 5.5 to 5.4 on Ubuntu 13?

I'm using kubuntu 13.04 I've used a downgrade script to downgrade php 5.4 to 5.3 earlier, and now I deleted the repo and that script, removed php 5.3 and now when installing again, it's installing php ...
1
vote
0answers
41 views

Installation of nagios failed due to ucf and file acls

While installing Nagios give me this error and hence the packages left unconfigured on my server. I looked for some help but they don’t tell me the exact solution. Does any one have a fix. cp: ...
1
vote
1answer
970 views

Apache 2.4: mod_php vs php-fpm performance

There are plenty of old benchmarks on Apache mod_php vs nginx with php-fpm However, with version 2.4, Apache can use php-fpm. Are there any sensible benchmarks comparing mod_php with php-fpm (both ...
-1
votes
2answers
46 views

Database based Mail Server [closed]

I have a single case problem, it relates to selecting the correct mail server. A group wants to create their own business PHP website, where the public can read articles, news etc. and the staff can ...
0
votes
0answers
115 views

Query String results in 404 using DirectAdmin (Apache 2.46 and PHP 5.3.27 PHP-FPM)

Having a bugger of a time with this one... not sure if it's a bug in DirectAdmin's scripting or something in HTTP or PHP that is causing the issue. Site is hosting a WP installation... basically any ...
1
vote
2answers
112 views

Nginx and PHP working with <?php but not <?

I'm trying to configure nginx with shorthand open and close tags. Currently the following code works for example: <?php include('this.php'); ?> But this doesn't: <? include('this.php'); ...
2
votes
1answer
1k views

How to have multiple PHP on Webmin/Virtualmin

I've scoured the internet for 4 hours now trying to find how to get newer PHP Versions on Webmin. No luck! Ideally, how do you get PHP 5.5 on Webmin/Virtualmin? If this is not available yet the ...
0
votes
2answers
244 views

Apache restart needed after php code change

When I change php code of an application I need to restart apache to make the new code effective. $ sudo apachectl -l Compiled in modules: core.c mod_log_config.c mod_logio.c itk.c ...
-1
votes
1answer
212 views

www-data runs in terminal but in php it does not execute, apache2, debian squeeze [closed]

I have external program.exe inside my website that gets data from text file, process it and then output to another textfile. Since apache uses www-data as user account, i manage to log in to terminal ...
0
votes
0answers
162 views

Website display of character encoding does not match up with config files

I have a language problem which I couldn't solve, no matter what I did, I request your help with this. I do web-publishing using Xampp on Windows 2008 Server R2 Enterprise (Language: English, ...
1
vote
2answers
4k views

Error installing APC in apache2 VPS with php-5.5.1

When I install APC: pecl install apc I'm getting this error: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
0
votes
0answers
31 views

Lucene configure command (and PHP scripts) generating embedded BOMs in the output config.inc file

Previously we had great success installing and using Lucene on our mediawiki system. We are now moving to a new server with a newer PHP and newer OS. Running Lucene's "configure" creates the needed ...
-5
votes
1answer
30 views

How much memory will this PHP Script need? [duplicate]

I'm trying to use a WordPress Plugin to backup my database and files but it keeps running out of memory. How much memory will this script need to finish and how much should I ask for from my hosting ...
1
vote
1answer
2k views

How do you completely purge Apache, MySQL, PHP, and phpMyAdmin on Ubuntu? [closed]

I really need to completely purge my web server on Ubuntu 12.04. I have tried sudo apt-get purge apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin (which ...
0
votes
0answers
132 views

Problems getting PDFlib running on Debian Wheezy amd64

I am trying to get PDFlib running with PHP on a Debian Wheezy. I downloaded the version PDFlib-9.0.1-Linux-php and copied the php_pdflib.so to the right directory. When I reload the apache I am ...
0
votes
1answer
54 views

Mysqli is installed on my system and the extension is enabled in php.ini but I can't find the actual extension

Centos 6.4 X86_64 with Apache 2.2.4 and PHP 5.4.17. I've rebuilt PHP to include mysqli. Phpinfo shows mysqli installed. Php.ini has the extension un-commented. How do I get the mysqli.so into the ...
1
vote
1answer
229 views

PHP Files being cached by unknown entity

I'm hitting a weird cache issue on my server, the project I am working on doesn't have any caching enabled at this time, but the server it self has APC installed (which was set to cache everything by ...
1
vote
0answers
172 views

nginx/php + zurmo, rewrite or internal redirection cycle

I am trying to get Zurmo CRM running on my Debian Jessie system on localhost. I couldn't find an example nginx config and the application needs to rewrite URLS, which I have done wrong. I also use ...
1
vote
3answers
2k views

libapache2-mod-php5 uninstalled after update impossible to put back

I use Webmin to administrate my Ubuntu 12.04 x86_64 machine. Yesterday, as often, I got notified of updates and installed them. During the installation process, libapache2-mod-php5 has been ...
-3
votes
1answer
257 views

Make: *** [processor.out.c] Error 1

CentOS PHP-FPM './configure' '--enable-fpm' '--with-libdir=lib64' '--with-bz2' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' ...
0
votes
2answers
73 views

Running multiple versions of PHP under Apache, but requiring modules from .deb file

I have a setup where I've unfortunately hit a version limit between a library package required for an application, and my version of PHP. I'm now running PHP 5.4, but the module is only compatible ...
0
votes
2answers
2k views

Connection refused HTTPS on Apache

I'm currently trying out HTTPS on one of my sites, and I got a trial certificate from a trusted CA. I've gone through the following checklist: Copied all the cert files according to the CA's ...
0
votes
1answer
138 views

Magento Stuck During Installation

I have a very strange problem with Magento installation. The installation is done on EC2 with brand new clean CentOS 6.2 AMIs. PHP version is 5.3.3. I install PHP with: yum -y install mysql ...
1
vote
1answer
2k views

PHP5 is installed, but Apache is displaying PHP as uninterpreted text. How can I get it to process it as PHP?

In a Drupal installation, it's displaying the root PHP file as plain text below. a2enmod says that php5 is enabled, aptitude says libapache2-mod-php5 is installed, mods-enabled/ has php5.conf and ...
1
vote
0answers
137 views

Trying to compile phpredis on a mac using phpize54

I installed php 5.4 using mac port. I then git cloned the phpredis repository ( https://github.com/nicolasff/phpredis ). Then, I execute these commands: phpize54 ./configure make && make ...
0
votes
1answer
95 views

Remove X-Powered-By: PHP on IIS7

We have a Win2008 server running IIS7 and php 5.3.17 installed. For pentesting & other security purposes we would like to remove the header response: "X-Powered-By: PHP/5.3.17", so we've tried ...
-1
votes
1answer
277 views

Ubuntu 12.04 upgrade php 5.4 missing php5-ffmpeg [closed]

I updated php to version 5.4, through the repository ppa:ondrej/php5, but now I can not install the package php5-ffmpeg because it gives me this error: php5-ffmpeg: Depends: phpapi-20090626 also if I ...
1
vote
1answer
129 views

HA for Resque & Redis

Trying to avoid SPOFs for Resque and Redis. Ultimately the client is going to be PHP via (https://github.com/chrisboulton/php-resque). After going through and finding some workable HA for ...
1
vote
3answers
261 views

Best way to have both php 5.2 and php 5.3 at the same time in Ubuntu

I am using Ubuntu 12.04. I need (this is not an option) to have both php 5.2 and php 5.3 installed. I think I need to compile 5.2 from source and keep it in /usr/local or make checkinstall. Is there ...
1
vote
1answer
157 views

Identify Long Running or Slow PHP Scripts

I have web server that is getting around 25K visits a day up at yougetsignal.com. Sometimes the site feels a bit sluggish. I am hosting it on nginx with php5-fpm. Is there a way for me to see a list ...
0
votes
1answer
358 views

Phpize: cannot find build files [closed]

I'm getting the following error when trying phpize for Thrift: # phpize Cannot find build files at '/usr/local/lib/php/build'. Please check your PHP installation. I have installed php5-dev. I've ...
0
votes
1answer
178 views

Setting an Fcgid Directive produces an Invalid Command error

I'm trying to set the MaxRequestInMem, MaxRequestsPerProcess and MaxRequestLen but it keeps on saying that it's an Invalid command 'MaxRequestInMem', perhaps misspelled or defined by a module not ...
4
votes
2answers
954 views

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: ...
0
votes
1answer
253 views

php5-fpm pm ondemand and still memory problems

After switching pm from dynamic to ondemand I'm having less problems with memory usage on my 1GB VPS, but it seems that under some high load situations the server still gets stuck. It's an VMWare VPS ...
0
votes
1answer
736 views

Can't configure PHP error log

I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ...
1
vote
2answers
302 views

PHP Mail ssmtp wont work

I can send an email through the terminal command ssmtp just fine but I cant send an email through PHP with the mail() function. I have configured it to do so correctly (afaik) through php.ini. ...
0
votes
1answer
457 views

PHP 5.4 Apache 5.4.4 Installation error in Windows

While I am trying to install Apache with command httpd -k install I am getting an error: C:\Program Files\Apache24\bin>httpd -k install Installing the Apache2.4 service The Apache2.4 service is ...
0
votes
1answer
506 views

Trying to install phpmyadmin - getting error 500

(Using PHP 5.4.15, Apache 2.2, CentOS 6.4 minimal) I'm having trouble installing phpMyadmin, I followed the instructions here, specifically: I uploaded the phpMyAdmin-*.tar.gz & unzipped it to ...
0
votes
2answers
138 views

Regular Error 500 with SOLR-Server

In the recent weeks the SOLR server system of our customers have the same error regularly, increasingly often. By now it's almost daily. In the client, the SOLR 3.6 throws this exception to the PHP ...
-1
votes
1answer
112 views

PHP 5.4 not showing up on localhost after upgrade from php 5.3.15

I used this tutorial and this post to upgrade mountain lion from php 5.3 to 5.4. Now after sym linking, when I do php -v, I get: PHP 5.4.15 (cli) (built: May 29 2013 18:56:58) Copyright (c) ...