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
4k views

Upgrading to PHP 5.6 using Yum (REMI repo)

I would like to ask how to upgrade to PHP 5.6 on my CentOS machine using Yum + REMI repo. For example, I already use the REMI repo for everything. Now, after I change this line in ...
1
vote
1answer
522 views

Apache missing php module

I installed httpd v2.2.15 and php v5.5.13 via yum. I first noticed the problem when I tried to access my site and it displayed the PHP code. Then I discovered that there is no php module in ...
1
vote
2answers
841 views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ...
1
vote
1answer
3k views

Installing SSH2 on Windows Server using PHP5.5 VC11NTS

for the past few days i've been aching my brain on installing the SSH2 Connection on PHP. My current setup is VC11 Non thread safe, which I have downloaded the appropriate zip folders on the PECL ...
1
vote
1answer
785 views

Apache2 + mod_fcgid + php stopped working after upgrade from Debian squeeze to wheezy

I've updated my server from Debian squeeze to Debian wheezy. On this server are several apache2 vhost which running php via mod_fcgid (I'm also using mod_suexec but this shouldn't be the problem). ...
1
vote
1answer
185 views

Rewrite file extensions in NGiNX

I'm looking to show a file like domain.com/login instead of domain.com/login.php My NGiNX site config is: #02API server { # listen 80 deferred; # for Linux # listen 80 accept_filter=httpready; ...
1
vote
1answer
99 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 ...
1
vote
4answers
507 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 ...
1
vote
1answer
8k 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 ...
1
vote
2answers
6k 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
1answer
179 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
2answers
1k 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. ...
1
vote
1answer
749 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
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 ...
1
vote
1answer
546 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 ...
1
vote
1answer
2k views

Nginx and Nagios passing through FastCGI Handler, 403 Error

I'm currently working on the renewal of my Web plateform and switching from Apache to Nginx. So I've to test all our administrative and internal applications before doing it. Well, so far, I didn't ...
1
vote
1answer
1k 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
219 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
358 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
504 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
215 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
234 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
3k 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
169 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
211 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
514 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
329 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
458 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
1k 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
93 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
3k 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
253 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
177 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
550 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
179 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
983 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
862 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
417 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
149 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
504 views

WampServer Deprecated functions with X-Cart

I want to run my X-Cart website on my own local Wampserver, to trial if updating the X-Cart server breaks the website or not. The X-Cart version is 4.2.2. When I run it on localhost, I receive the ...
1
vote
1answer
482 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
4k 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 ...