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
2answers
95 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
0
votes
1answer
2k views

Location directive is not allowed nginx

Hello I am setting up php with nginix and I need to add some code to the /etc/nginx/nginx.conf file. My nginx.conf file currently looks like this user nginx; worker_processes 1; error_log ...
-2
votes
1answer
58 views

how to make already compiled php5 shared module to static in apache 2.2

I have compiled apache 2.2 with php5 and after uncommenting loadmodule line for php in apache conf file the php started but as a shared module so is there any way to compile it as static ?
0
votes
2answers
721 views

how can I install PHP5 manually on Ubuntu

I have a new VPN with Ubuntu server 10.04 LTS which came with Mysql 5.1 installed, that was not supporting Barracuda file formats, so I manually installed and configured Mysql 5.6. Which works ...
0
votes
1answer
249 views

curl lot loaded after adding SFTP support

I installed Tartarus, and since my current curl didn't have SFTP support I've done this . Tartarus worked fine but I started to receive mails: PHP Warning: PHP Startup: Unable to load dynamic ...
0
votes
1answer
105 views

Verify PHP 5.3.27 has been patched for CVE-2013-4248

Server setup: CentOS release 5.10 (Final) WHM 11.40.0 (26) EasyApache 3.22.24 rev9999 compiled apache 2.2.26 and PHP 5.3.27 w/ SuHosin 0.9.33 I already had PHP 5.3.27 installed (since before most ...
5
votes
1answer
5k views

error: Cannot find OpenSSL's <evp.h> centos 6.3 (install php) [closed]

I have a problem during the intallation of php 5.3.27. When I launch the. / Configure I get this error and does not complete the installation. Configuring extensions checking size of long... ...
1
vote
1answer
107 views

PHP MAIL() dsn status

Is there a way to get the dsn status of an email set with postfix, with php mail function or any other library ? . I could parse the log for the id and dsn status, but that won't be quite good for the ...
-3
votes
4answers
325 views

How to configure Tomcat6 to run Php5 [closed]

I am using Tomcat6 as a server and i want to run php5 application on tomcat . Is there anyway to configure tomcat6 to run php on it .? I am using Ubntu 13.10 to run tomcat6
0
votes
2answers
265 views

how to install php5-memcached in linux?

I've installed memcached server using yum. My server os info - Linux version 3.8.4-x86_64-linode31 (maker@build) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Mon Mar 25 16:00:34 EDT 2013 But when ...
1
vote
0answers
2k views

“Cannot allocate memory” Using composer to install composer using fork from laravel git

Whenever I try to install a new laravel project, I receive the following error: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' ...
0
votes
1answer
285 views

php_ibm_db2.dll on IIS 7.5 using PHP 5.3 error message

I'm trying to use ibm_db2 extension to access iSeries DB2 database. This is the testcode (taken from here) <?php $database = 'ALI452BFAL'; //library $user = 'STN452'; $password = '**********'; ...
1
vote
4answers
557 views

.php file blank - .php5 files works

I have a problem with a server of mine. I've installed virtualmin/webin on it for administration and I have 1 domain on it. DNS management is external. On this domain I only have an html "Under ...
0
votes
1answer
1k views

dll in php “the specified module could not be found”

I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got: PHP Startup: Unable to load dynamic library 'C:\Program ...
0
votes
0answers
199 views

How can I use php 5.4's Session Upload Progress with nginx?

Is there any way I can use php 5.4's Session Upload Progress with nginx enabled?
-1
votes
1answer
38 views

Updating PHP+Apache

I'm using Debian Wheezy x64. I've installed PHP and Apache via "apt-get install php5 apache2" with all dependencies. But as Debian packages are so slow in updating, I want to reinstall PHP and Apache ...
0
votes
1answer
676 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
354 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
502 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
139 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 ...
1
vote
1answer
10k 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
354 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
582 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
35 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
725 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
5k 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
1k 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
47 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: ...
2
votes
1answer
3k 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
63 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 ...
1
vote
2answers
398 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
3k 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
919 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
416 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 ...
4
votes
2answers
7k 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. ...
-5
votes
1answer
71 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
9k 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
1answer
89 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
527 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 ...
2
votes
0answers
355 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
5k 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
377 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
133 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 ...
1
vote
3answers
9k 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
255 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
2answers
7k 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
278 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
192 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
472 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
194 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 ...