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
vote
1answer
337 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
225 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
3k 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
326 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
96 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
3answers
4k 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
193 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
3k 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
185 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
121 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
363 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
159 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
365 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
325 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
474 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
249 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
2k 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
322 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 ...
1
vote
1answer
1k 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
640 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
591 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
873 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
191 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
131 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) ...
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 ...
1
vote
0answers
484 views

IIS server restart required to convert web pages to PDF using COM

Have an annoying issue with our production web servers. Windows 2008 R2 x64, fully patched, using php 5. Also installed is ABC PDF, php will call the COM object to convert a web page to PDF and ...
0
votes
1answer
339 views

Enabling PDO for CLI in vagrant box precise64 (Ubuntu server 12.04 LTS)

I have vagrant box (precise64) utilizing Ubuntu server 12.04. I have installed manually (no use of LAMP) on the server the following: MySql server / MySql client - Server version: ...
0
votes
1answer
3k views

safe_mode problems after upgrade from PHP 5.3 to 5.4 with Plesk 11

I just updated my server (running with Plesk 11) from PHP 5.3 to 5.4 via the dotdeb sources. Everything was fine except a few things. I had to disable all safe_modes in several vhosts. Plesk has the ...
0
votes
0answers
149 views

PHP5.2 and PHP5.3 Maxing CPU on IIS7.5 Server 2008 R2

I have a shared server running Server 2008 R2 with IIS7.5 - the server has about 200GB ram, Several hundred websites dual Xeon 8 core hyperthreaded processors, so CPU shouldn't be a problem; What is ...
1
vote
1answer
578 views

mod_fcgid error after upgrading from PHP5.3 to 5.4

I just made an upgrade from PHP 5.3 to 5.4 via dotdeb.org sources. After that, I get errors on vhosts with active FastCGI-Application. [Mon May 20 21:05:15 2013] [warn] [client xxx.xxx.xxx.xxx] ...
1
vote
1answer
972 views

Error after trying to install php5-mcrypt on Debian Squeeze

I want to install php5-mcrypt, but I get this error after entering a apt-get install php5-mcrypt Error: php5-mcrypt : Hängt ab von: php5-common (= 5.3.3-7+squeeze15) aber 5.3.9-1~dotdeb.2 soll ...
0
votes
2answers
898 views

Unmet dependencies when updating PHP 5.4.8 to 5.4.15 using dotdeb on debian

I'm not quite sure how to act here. I installed php5 as dotdeb package. I'm on debian squeeze 686. Now I try to update from 5.4.8 to 5.4.15 and get the following output after running aptitude install ...
0
votes
1answer
755 views

CentOS 5.9 Apache mod_php issues

I'm currently using NGINX with FastCGI and PHP 5.4 on the production server. Lately we've been getting mass CPU usage spikes and I'd like to spend a few days using Apache and mod_php again to see if ...
0
votes
1answer
347 views

How to install Apache and PHP by using only packages on FreeBSD?

Is there a way to install without compiling them through the ports? I installed Apache from packages and it works, but pkg_add -r php53 doesn't install mod_php5.so/libphp5.so. I experiment on FreeBSD ...
0
votes
1answer
158 views

PHP-FPM Loading Wrong Configuration File

Value of CLI running php --ini Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/lib/php.ini Value of phpinfo from my nginx/php-fpm web server page: ...
-2
votes
1answer
210 views

Installing PHP 5.4 on Samsung Chromebook 3 which runs chroot Ubuntu Crouton [closed]

I am trying to install PHP 5.4 on a Samsung chromebook 3 running crouton.c (Crouton link: https://github.com/dnschneid/crouton) I am following the instructions for the upgrade from ...
0
votes
0answers
42 views

Cannot run php from /usr/share after upgrade to Ubuntu 12.10

I had phppgadmin and phpmyadmin running on Ubuntu 12.04 After upgrading to 12.10 (using do-release-upgrade), when I try to go to localhost/phppgadmin I get the source code of index.php instead of the ...
1
vote
1answer
451 views

CentOS 6.4 PHP code not executing

I'm quite new to Linux so please excuse my ignorance, and accept my apology for what is likely a very lame question. I have setup a Centos 6.4 server and also installed LAMP, phpmyadmin, mod_ssl and ...
0
votes
1answer
523 views

suphp error Directory / is not owned by admin

I'm trying to run a test phpinfo page from: /home/admin/testdomain.com But it displays such error: Internal Server Error Directory / is not owned by admin suPHP 0.7.1 My /etc/suphp.conf is like ...
0
votes
2answers
75 views

IIS 7.5 with php on Windows server 2008 R2

I have installed php 5.4.9 with iis 7.5 on Windows server 2008 R2 with web platform installer. phpinfo() is working file. But when i upload our web pages getting error. Here I've attached error ...
2
votes
2answers
8k views

How downgrade PHP 5.5 to 5.4 or 5.3 on centos6

I have server running centos 6, i recently upgraded the php on the server to version 5.5 and noticed that some of the scripts in laravel framework i use are breaking. i get this error Parse error: ...
1
vote
0answers
161 views

pecl_http : Apache is unable to load http.so

I'm using MAMP 2.1.3 with Mac OS 10.8.3. I've just installed the pecl_http extension with Mac Ports + PECL. The http.so exists and is in (correctly set in php.ini) : ...
1
vote
1answer
288 views

Apache / PHP memory limit exhasted when rendering report with dompdf

I'm developing a web application, and using a typical lamp stack. I'm using dompdf to generate some reports to pdf. In one case, I have a simple table list (think list of clients) with some simple ...
0
votes
1answer
409 views

How do i set a open_basedir with php using fastcgi/apache2 on linux?

I tried to add this line to my virtual hosts in Apache, but failed: php_admin_value open_basedir "/var/www/users/test" My installation: root# apt-get install apache2 apache2-suexec ...
1
vote
0answers
2k views

PHP 5.4.13 “procedure entry point could not be located in the dll php5ts.dll”

I did a manual install of PHP 5.4.13 on Windows Server 2008 R2 on D drive. Today I tried to run a script directly using php.exe through the command line but got two error pop up windows: The ...
-1
votes
1answer
55 views

Finding how the attacker creates malicious files [duplicate]

I am dealing with a troubling LAMP server which runs Apache 2.2, MySQL 5.1 and PHP 5.2.7 (runs as nobody) and most of its sites using vulnerable versions of known scripts such as Joomla, Wordpress ...
0
votes
1answer
226 views

PHP include() through HTTP makes Apache time out

I have a problem with ExpressionEngine2 after moving from an old server to WHM/cPanel running on CentOS6.4. Simple test code to reproduce that issue: <?php $protocol = ...
0
votes
1answer
208 views

PHP on Apache + FastCGI with multiple file extensions

Following the php documentation, I've set up PHP to work with Apache2+FastCGI with the following configuration (in httpd.conf): LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv PHPRC ...
0
votes
1answer
1k views

Can't connect to remote mssql server

I'm trying to connect to my remote mssql server for my GunZ private server, but for some reason i get the following error Cannot connect to 94.xx.xx.xx. ADDITIONAL INFORMATION: A connection was ...
0
votes
1answer
515 views

How can I change path for xml2-config

I've already asked same question in stackoverflow.I need some more help. I’m trying to upgrade libxml2 from 2.6.26 to 2.7.7 on CentOS5.5 I installed libxml2-2.7.7 in /opt/libxml2-2.7.7/bin/ I'd ...