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

Install pecl extension on ubuntu after upgrading to php 5.4

I had php 5.3 installed and upgrade to 5.4 using this PPA https://launchpad.net/~ondrej/+archive/php5 - everything went smoothly. My old pecl extensions, such as oauth, wern't enabled, so I ...
1
vote
1answer
161 views

how to set up delegation on IIS 7.5 and PHP (web platform installer)

We are successfully running or corporate Intranet using PHP under IIS 7.5 on Win Server 2008 R2. We used Web Platform Installer to setup PHP. Impersonation worked right from the start but delegation ...
1
vote
1answer
301 views

Downgrade PHP 5.4 to 5.3 on bitnami ubuntu server

I have to downgrade the php version of a bitnami ubuntu image to support some legacy codes. I tried to look for different methods that suggest using apt-get and dpkg to remove the 5.4 and install 5.3 ...
1
vote
1answer
361 views

PHP file not being interpreted by Apache on Red Hat

Running PHP 5.3.3 through Apache 2.2.15, on Red Hat (kernel 2.6) I have a test file in the root directory called test.php: <? phpinfo(); ?> When I point my browser to this file, it sends ...
1
vote
1answer
184 views

PHP `virtual()` with Apache MultiViews not working after upgrade to Ubuntu 12.04

I use PHP's virtual() directive quite a lot on one of my sites, including central elements. This worked fine for the last ~10 years -- but after upgrading (or rather moving, as it is on a new machine) ...
1
vote
1answer
192 views

Error after installing mysqlnd_ms

I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd. Then I do a sudo pecl install myslqnd_ms. This installs fine. I add the ...
1
vote
1answer
2k views

PHP-APC is exceeding limit apc.shm_size often

I am implementing the apc on a shared server that currently has 1000 sites (using wordpress, moodle, etc.). I'm Looking for the admin page, and I see "Cache full count" is growing rapidly. I've tried ...
1
vote
1answer
155 views

Custom php ini files for IIS7

I have a Windows 2008 Web edition server setup with IIS7.5 and PHP 5.4.6 FastCGI installed. I would like to make use of the user INI files as described here: ...
1
vote
1answer
174 views

Set global handling for PHP scripts in NGINX + PHP-FPM

I have to define fastcgi_pass for every virtual host. How do I define it global-wise? server { listen 80; server_name www.domain.tld; location / { root ...
1
vote
3answers
424 views

PHP script timed out, or otherwise killed on Apache under CentOS (shared host)

When trying to run a PHP script (CentOS, Apache, PHP 5.2), that may take a long time, it is apparently killed after 45 minutes. PHP script is invoked from a web browser, and in certain situations, ...
1
vote
1answer
298 views

Add module to custom compiled PHP

In CentOS I have a compiled version of PHP but it is missing IMAP module. Is it possible to add that module without re-compiling php?
1
vote
2answers
378 views

Password management with pg_connect()?

I am new to using postgresql along with php, but something doesn't seem right here. 9/10 examples I've seen using sets the password parameter in plain text. For example, here's one sample $con = ...
1
vote
1answer
425 views

phpMyAdmin doesn't find mbstring eventhough it's installed

I'm running Kloxo at the moment and have updated phpMyAdmin to the latest version as well as php and mysql, however, phpMyAdmin seems to complain about mbstring not being installed, eventhough it is. ...
1
vote
1answer
921 views

Possible causes of PHP /var/lib/php/session full error

i'm running into problem here with my PHP sessions and i have no clue how to fix this. >> df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/vglocal20120426-root00 ...
1
vote
1answer
90 views

Best way to Install Lampp setup on Ubuntu

What is the best way to install a lampp setup in ubuntu? I know to install using xampp. Is it ok for using as a central development server? Or if am installing individually what are the packages i ...
1
vote
1answer
2k views

I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add?

I want to install php 5.3.9 in ubuntu 12.04 via apt-get. apt-cache show php5-fpm only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3. There is a critical bug in 5.3.10 ( ...
1
vote
2answers
1k views

mod_vhost_alias + suEXEC: auto selecting uid/gid

I'm trying to configure Debian 6.0.4 for massive shared hosting with PHP5. Packages apache2-mpm-worker libapache2-mod-fcgid apache2-suexec are installed. I successfully loaded mod_vhost_alias and ...
1
vote
3answers
1k views

APC minimal shm size

What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a Wordpress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there ...
1
vote
1answer
236 views

PHP 5.3.8 doesn't load module xapian.so

I have web server on fedora 16 nginx + php-fpm (PHP 5.3.8),all installed with yum from standard repo. I'm trying to use xapian.so module so I istalled php-xapian and added extension=xapian.so to my ...
1
vote
1answer
2k views

Unable to load dynamic libraries (pcre,spl,gettaxt,mhash,snmp,sockets,tokenizer)

I'm a bit new to freeBSD and trying to set up a webserver. I've managed to get phpmyadmin installed and phpinfo(); works fine. But when i typ in 'php -v' i get some warnings: PHP Warning: PHP ...
1
vote
1answer
166 views

Running PHP 4 and PHP 5 at the same time on the same site using Apache on Windows

Most results I get on google is how to get both versions running simultaneously on the same server but at different URLS but that's not what I want. I'd like, for example, to get http://localhost to ...
1
vote
1answer
464 views

php session_start() permisson denied

PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied I am getting it in my apache error log /var/lib/php5 owner and group is root, so is it fine ...
1
vote
1answer
2k views

Zend Optimizer not compatible with PHP+APC+Drupal. Can I disable it for Drupal-run domains?

I use the following set up: PHP Version 5.2.17 Apache/2 Zend Optimizer v3.3.3 Drupal 7.8 As far as I read other articles and questions, Zend Optimizer doesn't do any good neither for PHP5 ...
1
vote
1answer
170 views

centos 5.6 switching/migration from apache to lighttpd

i currently run apache 2 with php5.1.6 running as mod_php on a centos 5.6 box, I use .htaccess for mostly redirection I already have latest APC running apc.so I also have mysql etc Until recently ...
1
vote
1answer
2k views

PHP files not getting parsed? [duplicate]

Possible Duplicate: Problem with php and apache I have php 5.1.6 running on my CentOS 5 server running Apache 2.2.3 when i use command php -v it says PHP 5.1.6 (cli) (built: Nov 29 2010 ...
1
vote
1answer
54 views

Apache/PHP Configuration question - Where else can info.php be disabled besides php.ini?

Sorry for the bone head Q. but I rarely need to reinstall my server :) I wish to enable phpinfo() function. My php.ini config file has the disable_functions directive blank--which I understand is the ...
1
vote
1answer
913 views

NGINX + PHP5-FPM segfaults under high load!

I have been dealing with this problem all day and it is driving me insane. All Google results and searches here lead to dead ends. I hope someone can work with me to provide a solution for myself ...
1
vote
2answers
746 views

Can't install PHP after apt-get dist-upgrade

I had a server with perfectly running for months classical LAMP installation on Ubuntu 8.04: Linux localhost 2.6.24-23-generic #1 SMP Wed Apr 1 21:47:28 UTC 2009 i686 GNU/Linux DISTRIB_ID=Ubuntu ...
1
vote
1answer
2k views

PHP file gets download instead of getting executed when browsed in any browser

I have a phpinfo.php file which I am trying to run by browsing to it using browser but the browser downloads the file instead of executing it. phpinfo.php <?php phpinfo(); ?> I followed ...
1
vote
1answer
359 views

unable to fsockopen

I have 2 ethernet eth0 and eth1 on my server. The default gateway is set to be eth0. I need to connect ip 10.10.6.2 using fsockopen in php. The ip 10.10.6.2 is routed through eth1 (I have a rule set ...
1
vote
1answer
2k views

php.ini use multiple include paths - openbasedir restriction

I need to allow an include path for a vhost subdomain on Plesk 10. I've edited the PHP PEAR path into /etc/php.ini as I'm happy for it to be globally available: include_path = ".:/usr/share/pear/" ...
1
vote
1answer
147 views

Ideal technology stack for Drupal 6 in Windows Server 2008R2

My background is predominantly Linux-based servers, with which I can configure anything however I want. However, I'm building a Drupal6 site for a client, who (despite my warnings) wishes to self-host ...
1
vote
1answer
462 views

Apache2/mod_fcgid/PHP Process Limits Not Respected

I've recently moved to Apache2 / mod_fcgid / PHP from nginx / php_fpm. This is the second server on which I've made this migration, but it's used much less frequently than the first, which is working ...
1
vote
3answers
3k views

MAMP - Unable to turn off PHP E_STRICT error reporting [closed]

For some reason, MAMP won't allow me to turn off E_STRICT warnings. I've tried everything from changing the value explicitly in php.ini to error_reporting(E_ALL & ~E_STRICT) in my file... to ...
1
vote
2answers
350 views

Ubuntu server with Apache supporting php4,5 and 6

I have websites hosted on 1and1 and the servers default to PHP 4 and if you want PHP 5 or 6 you add "AddType x-mapp-php5(or 6) .php" and it'll run the scripts as PHP 5 or 6. There isn't a lot of ...
1
vote
4answers
744 views

how optimize small linux server?

I have a small Ubuntu server with 512MB of ram and several php/mysql websites (~20) running on it.It's been running for 2 years now without a single issue. But I think the moment for some optimization ...
1
vote
1answer
2k views

Limit APC opcode caching to specific sites? Nginx + PHP-FPM + APC

Is there any way to enable/disable APC on a per virtual host basis? I'd rather not use precious apc shared memory on caching my PHPmyAdmin subdomain or lesser used sites. Setup is Nginx, php-fpm, and ...
1
vote
1answer
1k views

Upgrading PHP, MySQL old-passwords issue

I've inherited a Windows 2k3 server running an XAMPP-installation from the stone age. I needed to upgrade PHP to facilitate an upgrade to MediaWiki to facilitate a new MediaWiki extension (to ...
1
vote
2answers
124 views

Simple to follow guidance on update PHP from 4.3.10 to at least 5.1.1

I need to update my version of PHP to at least 5.1.1, via SSH and need simple to follow advice on how to do it. We have a VPS (with Plesk) with webfusion, who won't update it for us and we need to get ...
1
vote
1answer
4k views

PHP module installed but does not appear in phpinfo()

Im tying to install php5-ffmpeg module on my ubuntu server. I've typed: sudo apt-get install php5-ffmpeg Everything was installed and web server was reloaded. Now, the fallowing line is added to ...
1
vote
1answer
378 views

How do I connect Apache2 and PHP5?

I'm trying to install the LAMP stack on a server running Ubuntu 10.10. Whenever I browser to a PHP file on the server, my browser will download it as a file named "download" (with no extension). I ...
1
vote
1answer
317 views

www-data user doesn't seem to have the access to use php-curl

I'm trying to get the simpletest module for drupal to work, which relies on php-curl to fetch its requests. When I as the user root do the following it works fine: root@server:~# php -a Interactive ...
1
vote
1answer
788 views

why won't php 5.3.3 compile libphp5.so on redhat ent

I'm trying to upgrade to php 5.3.3 from php 5.2.13. However, the apache module, libphp5.so will not be compiled. Below is a output I got along with the configure options I used. The configure ...
1
vote
2answers
2k views

where can I find php_mssql.dll?

I'm trying to get PHP set up to connect to a SQL Server database. I'm looking for the php_mssql.dll file to put in my extensions directory but for the life of me can't locate it online. Can anyone ...
1
vote
1answer
85 views

File Permissions: Who are the user, group, and others on my web server? What perms should i use for uploaded files, php files, etc.?

I am using cPanel with apache 2 and php 5.2. I have a file upload script, which currently puts the uploaded files in a directory with 0777 perms and the file itself also has 0777 perms. this is ...
1
vote
1answer
2k views

PHP Safe Mode/open_basedir - lstat performance problem

PHP lstat the full path many times before read the file is looking for. And this happens when in apache httpd configuration is specified PHP_ADMIN_VALUE open_basedir setting or if safe_mode is ON. If ...
1
vote
1answer
308 views

Anti-bot techniques

I want to do some research on anti-bot techniques for my web application. I am aware of Captcha, but want to explore some other techniques. Especially, I want users to visit all the pages before they ...
1
vote
1answer
319 views

PHP not loading php.ini in directory or following error_reporting() on Windows 7

Normally I develop under E_ALL error level, but for sanity on this project I want notices and strict off. So initially tried: error_reporting(E_ALL & ~(E_STRICT|E_NOTICE)); And several other ...
1
vote
2answers
6k views

Windows7 IIS7: zips don't have php5isapi.dll Can I use php.dll instead?

The page: How to Install PHP 5.2 on IIS 7and Windows Vista (and a few others) reference a mysterious php5isapi.dll which is not in the Windows install, or the zip files: php-5.3.2-Win32-VC9-x86.zip - ...
1
vote
2answers
3k views

PHP cannot connect to MySQL

I recently installed Apache 2 + PHP 5.3.1 + MySQL 5.1.44 on my Windows 7 64bit machine following this guide: http://sleeplessgeek.blogspot.com/2010/01/setting-up-apache-php-mysql-phpmyadmin.html ...