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
1k 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
1k 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
964 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
385 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
227 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
241 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
527 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
685 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
108 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
10k 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
201 views

pecl_http : Apache is unable to load http.so [closed]

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
393 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
464 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
3k 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
61 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
263 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
264 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
2k 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
700 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 ...
0
votes
2answers
474 views

Cannot install php-intl on CentOS

When I run: yum install php-intl I get this error: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.as29550.net * epel: ftp.nluug.nl * extras: ...
0
votes
1answer
192 views

CentOS 6 recompile PHP and Freetds

I got something wrong with the default freetds (v 0.9.2) in my CentOS 6, reading the datetime from sql server is messed up in using mssql (dblib) extension, and it's said recompile php with current ...
1
vote
1answer
477 views

yum update php libjpeg dependency

I'm having a problem doing a yum update with php and it's having a dependency problem with libjpeg.so here is the yum update output: yum update Resolving Dependencies --> Running transaction ...
2
votes
2answers
3k views

How do I disable functions on servers for particular directories?

I want to disable some functions on server to improve security of server. I followed these steps: STEP: 1 Open php.ini file: vi /etc/php.ini STEP: 2 Find disable_functions and set new list as ...
0
votes
2answers
334 views

What might be causing this intermittent PHP stalling event?

I wish I could be more specific about this issue and I am really asking for suggestions on where to look next. We are running a PHP web app that is integrated with WordPress and that is serving a ...
1
vote
1answer
720 views

How to enable streaming when file is delivered through PHP script?

I'm trying to enable mp4 streaming on my content server. Due to some security fanatics whom I working with all files are delivered through a php script and have the following url format: ...
0
votes
1answer
131 views

MAC M Lion: Different PHP Versions:

When I run php -v from the terminal it gives me: PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23) Then once setting up localhost etc and then i run a phpinfo page I get: PHP Version 5.3.15 ...
0
votes
1answer
301 views

mysqlnd_ms Config File Fails with “unexpected '{' ”

I'm trying to get the mysqlnd_ms (master_slave) plugin to run, but receive the error that the config file contains and unexpected bracket. To make sure I didn't corrupt anything, I replicated this ...
0
votes
1answer
3k views

How to get PHP running on Apache2 MPM Worker?

I am setting up apache and php on a virtual remote server. I want to use MPM Worker instead of prefork because I had troubles with ram-useage of prefork in the last month and because I did read that ...
0
votes
1answer
116 views

Downgrade php5-cgi using APT on Debian

I have lighttpd install with PHP5.4 installed I need to downgrade it to 5.3.2 (possibly older/newer) but I can't install it I tried this apt-get install php5-cgi=5.3.2 but it says "E: Version ...
5
votes
1answer
2k views

Apache 2.4 with PHP-FPM .htaccess redirection

I have Apache 2.4 set up with PHP-FPM on a server. To pass from Apache to PHP-FPM I use the following: ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9001/hosting_files/site.com/admin_secure/$1 ...
1
vote
2answers
995 views

PHP mysqlnd on Debian 6

I've installed php5-mysqlnd via: apt-get install php5-mysqlnd This is a brand new virgin Debian install with just apache2 and php5 via: apt-get install apache2 echo "deb ...
1
vote
0answers
175 views

LAMP using ODBC to DB2

I have connected an openSUSE LAMP and an Ubuntu LAMP server to DB2 using ODBC. The openSUSE system we're using for a development environment, and the final deployment is to be on the Ubuntu system. ...
3
votes
4answers
4k views

The requested PHP extension ext-mcrypt * is missing from your system [closed]

I have updated my php to version 5.4.13 etc and well in the terminal my version of php states this PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23) But running a composer install io get the ...
0
votes
1answer
2k views

White screen of death with PHP-FPM, no error logged

This is a tale of two different php files. File 1 source: <?php $null->test(); File 1 output: Fatal error: Call to a member function test() on a non-object in ...
0
votes
1answer
240 views

Update PHP to latest version from source

I am currently running PHP 5.4.6-1ubuntu1.1 (CLI) (built: Nov 15 2012 01:18:34) on Xubuntu. I would like to update to the latest version or >= 5.4.7. Is there another way to do this instead of ...
0
votes
1answer
260 views

I am unable to install php5-apc on my Ubuntu server

I am unable to install php5-apc. I don't seem to get any errors. root@applications-server-1:~# aptitude install php5-apc The following NEW packages will be installed: php5-apc{b} 0 packages ...
0
votes
1answer
453 views

debian 6 - php 5.4.1 - xdebug phpize php-config --version incorrect

I'm quite new with Linux server management and I have a linux server with the following configuration: Distributor ID: Debian Description: Debian GNU/Linux 6.0.6 (squeeze) Release: 6.0.6 ...
0
votes
1answer
115 views

Server error says request exceeds MaxRequestLen

I have this issue and I know I need to increase the: FcgidMaxRequestLen 15728640 I have tried to do this on the htaccess page, but when uploading, the whole site gives me the 500 Internal error. ...
2
votes
3answers
6k views

Update from PHP 5.3 to 5.4 on CentOS 6.3 while keeping Plesk [closed]

I need to update the servers PHP version, but when I try to remove the old php to install the new PHP 5.4 via yum it wants to remove the whole plesk suite which I want to keep. I followed this guide ...
0
votes
1answer
123 views

Static file request timeouts unless requested with Internet Explorer headers

We recently had some maintenance done on our development server; we don't know what that consisted of as we do not maintain our servers. Since then we've been experiencing a rash of HTTP requests that ...
0
votes
2answers
702 views

Prevent heavy server query to overload Apache/Mysql

I have some questions about understanding high server load and implement some type of load balancing in a common scenario with solutions like Apache and MySQL and PHP 5. I am benninger in the matter ...
2
votes
1answer
277 views

Zend 1 on Ubuntu with MSSQL not working

Does anyone know how to solve the following issue? If not, does anyone know how to setup Zend 1 on Linux to communicate with msSQL server? We get the following error in the nginx logs when trying to ...
1
vote
0answers
582 views

Some (but not all) cron jobs stopped running. Restarting cron fixed it, but what caused it?

I'm running Ubuntu Server 10.04 with a crontab which runs every minute, with a lot of jobs in the file. Each job is a PHP script to be executed. Earlier today, it seems that some (but not all) of the ...
-1
votes
1answer
187 views

Compile PHP without PostgreSQL [closed]

I need to compile php-5.2.17 as a cgi wrapper. PostgreSQL is not installed on this machine. I'm looking for the configure command, to disable support for PostgreSQL. --without-postgre
3
votes
1answer
244 views

What's causing so many “httpd: <ul></ul>” entries in /var/log/messages?

On a low-powered VPS I maintain, which also functions as a production server, I keep an eye on logs to crisis-manage should a site get an influx of traffic or something goes haywire (tail a bunch of ...
0
votes
1answer
94 views

Switching b/w versions of PHP on a NginX + PHP-FPM Setup

On Apache you could easily configure it through an htaccess file: <IfModule mod_fcgid.c> Action php-fcgi /fcgi-bin/phpcgi-starter-5.3 </IfModule> <IfModule mod_fcgid.c> Action ...
0
votes
1answer
277 views

hiphop compilation fails on 90% [closed]

I've been working with hiphop on fresh centos-6.3 with gcc-4.6.2 and followed the following guide for hiphop compilation ...
0
votes
0answers
109 views

Try to downgrad to PHP 5.2.17 on IIS 7.5 and getting a 500 error

It's throwing me this: Module FastCgiModule Notification ExecuteRequestHandler Handler php-5.2.17 Error Code 0x000000ff Requested URL http://10.1.1.193:80/agsxingb.php Physical Path ...
0
votes
1answer
498 views

Installing Gearman with PHP Extension on Debian 6.0.5 leads to error

What I have tried ... # apt-get install php5-dev # apt-get install gearman-job-server libgearman-dev # pecl install gearman Result ... ... configure: error: Please install libgearman ERROR: ...