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
1answer
2k views

FCGIWrapper not picking up php.ini file path

I'm using Fast CGI with PHP, and it runs great except I just noticed it's not picking up the php ini path. It seems not to pick up the -c argument at all and says no configuration file is loaded when ...
1
vote
1answer
4k views

How do I get the latest FastCGI and PHP versions to peacefully coexist on IIS 6?

I have been going round and round trying to get any sort of PHP running on IIS 6. I somehow managed to successfully get version 5.1.4 running using the php5isapi.dll file. However, I want to upgrade ...
2
votes
2answers
812 views

date.timezone PHP error

I'm getting the infamous PHP timezone error: PHP Warning: PHP Startup: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the ...
4
votes
1answer
4k views

After compile install php 5.3.1, I can not find my php.ini file

my compile configuration: ./configure \ --with-fpm \ --with-libevent=shared,/usr/lib \ --with-mcrypt \ --with-zlib \ --with-curl \ --enable-mbstring \ --with-openssl \ --with-mysql \ ...
1
vote
5answers
7k views

How to compile PHP 5.3 CGI?

php-cgi seems to have vanished in PHP 5.3.1. I've tried both the --enable-cgi and --disable-cli flags for ./configure, but it doesn't create a binary under the sapi/cgi subdirectory.
0
votes
1answer
487 views

RHEL4 PHP5 CGI Internal Server Error with SugarCRM 5.5

I'm running an RHEL4 server with Apache 2.0, and I need PHP 5.2.1 - 5.2.11 for SugarCRM Pro 5.5.0. I also need to run it side-by-side with another version of PHP, so I compiled it from source for CGI. ...
0
votes
4answers
951 views

apache2 + mod_fastcgi + suexec + php5.2 = unstable on high load

I am hosting several (~30) different sites on one server with apache2+fastcgi+suexec+php5. Sites have different loads and different execution times of their scripts (some of them process request for ...
3
votes
5answers
2k views

apache-user & root access

I want to develop few scripts in php that will invoke following commands; using exec() function service network restart crontab -u root /xyz/abc/fjs/crontab etc. The issue is that Apache executes ...
0
votes
2answers
731 views

Ubuntu PHP 5.1.2 Upgrade to 5.2.x

Can anybody offer any pointers as to how to upgrade php 5.1.2 to php 5.2.x on a Plesk VPS Ubuntu server. Server details are: Plesk 8.6.0 Ubuntu 6.06 Apache 2.0.55 Current php 5.1.2 Mysql 5.0.22 ...
0
votes
2answers
993 views

Problem installing php5-cli on ubuntu

I want to install php5-cli on ubuntu but i keep getting this error Reading package lists... Done Building dependency tree Reading state information... Done php5-cli is already the newest ...
5
votes
1answer
32k views

Correct PHP5 DLL for Apache 2.2?

I have installed Apache 2.2.14 (Win32) on a Windows XP machine and am trying to add the latest PHP module. I downloaded the ZIP file from here labeled "VC9 x86 Non Thread Safe" and extracted to my ...
1
vote
4answers
19k views

PHP has encountered an Access Violation at ***

Win 2003, PHP 5.2.1 and IIS 6. I have PHP configured as ISSAPI and it is serving PHP pages. When I try a page that requires MySQL I am getting just: PHP has encountered an Access Violation at (and a ...
0
votes
3answers
1k views

PHP from command line…path problems

I'm not really an administrator and need some help setting up a cron, well actually calling a PHP script from the command line in the first place. I have a PHP5 script that I need to run at the ...
0
votes
2answers
592 views

Setting up PHP Code Profiling with Xdebug

I recently installed Xdebug on my server with the intention of using it for code profiling. It seems to be installed correctly, and phpinfo lists the following: xdebug.profiler_enable On ...
0
votes
5answers
2k views

MySQL not working under apache/php

I recently installed Apache, PHP, and MySQL and all three seem to work fine individually. However, I MySQL and PHP don't seem to be playing well under Apache - when trying to connect to a db, the page ...
2
votes
3answers
7k views

php5-mcrypt install errors

Running Ubuntu 9.10 and I am trying to install the php5-mcrypt module is killing me softly. I am not sure what else to try. Anyone have any idea? Here is the error i get: sudo apt-get install ...
3
votes
1answer
138 views

Get apache2 load new PHP5

This server is running ubuntu 9.04, apache 2 and running running PHP 5.2.6-3ubuntu4.4 from the repository. I installed another a new version of PHP (5.3.1, compiled from source), I then replaced the ...
0
votes
2answers
629 views

PHP5.2.3 for debian etch?

Is it possible to get PHP5.2.3 for debian etch? I got 5.2.0-8+etch13
0
votes
1answer
170 views

Apache2 100% overload with select() calls

Once or twice a day one of my Apache's on Debian 5.0.3 (upgraded to latest packages) runs up to 100% CPU (a few processes) and remains that way until it's restarted. Strace shows a lot of these; ...
1
vote
3answers
1k views

64bit UnixODBC and FreeTDS: a bug in libtdsodbc.so?

We have a legacy Windows web application which uses Microsoft SQL Server 2005. Two years ago we rewrote a part of this application using PHP and ODBC on a 32 bit virtualized Debian system. This ...
2
votes
1answer
2k views

Running php4 and php5 along side each other

I need to have both installed and running on the same server instance for a dev environment. They both need to handle the .php extension, I have read that this can be done by .htaccess set up but ...
0
votes
1answer
688 views

Apache 2 and PHP 5.3 via MacPorts?

I have install MacPortsed and I have installed Apache 2 and PHP 5.3 but I can't get Apache 2 to work with PHP 5.3. I have tried to unload and load it again, I don't know how I can reinstall apache ...
0
votes
2answers
721 views

PHP 5.2.11: Unable to load dynamic library complaints

I installed PHP 5.2.11 and upon enabling the php_mssql.dll module (and the obligatory restart of the services) started receiving warnings about not being able to load the dynamic library. The ...
2
votes
1answer
927 views

How many fast-cgi processes to use with PHP-FPM and NginX

Does anyone know of a good source out there - or possibly can answer this in here - that can guide me as to how many Fast-cgi processes and Nginx processes I need to have running to serve a moderatly ...
1
vote
1answer
330 views

How do you get syck to compile with php5.2.x

What are the steps needed to compile in support for syck into php 5.2.x on a 64 bit centos 5.3 system? I haven't seen this another good FAQ on this, so I figured I would drop both the question and ...
3
votes
3answers
4k views

Why is this mod_rewrite RewriteRule directive not working in the .htaccess file?

I've got a site that was hosted on a linux el cheapo hosting service that I'm migrating to my Mac OS X 10.5 Leopard Server server running Apache 2.2.8 & PHP 5.2.5 w/rewrite_module enabled and ...
2
votes
1answer
241 views

Why are my php extensions being compiled for PHP4 and not PHP5

I'm trying to compile memcache for Dreamhost PS. The library is created but not shown in phpinfo. Apache logs says the library isn't loaded because "undefined symbol: OnUpdateInt in Unknown on line ...
0
votes
3answers
148 views

Including a PHP file that can be used with multiple sites

I have a web server that we use, apache, centos5, php I have a file called 'include.php' that I need to include in multiple sites. Eg. I have a site called testsite.co.za, now in the index.php i ...
2
votes
2answers
538 views

How do I get Apache to use a different local PHP.ini for different domains?

is there some sort of .htaccess directive. I dont have access to httpd.conf. I have php5 in a fastcgi/cgi module. Multiple domains. But for some reason all the domains are pointing to the first ...
1
vote
1answer
591 views

How do you setup 64-bit PHP5 with APC?

I followed this # script on my webhost's wiki to setup a custom install of PHP5, but now theyre telling me they need to move my account to a 64-bit server, and I have no idea how to set this up. APC ...
-1
votes
1answer
1k views

PHP Link Directory Script

I took .zip, uncompressed it and hit my domain/ ==> error_log <== [Sun Sep 27 22:54:25 2009] [error] [client 24.185.130.236] PHP Warning: require_once(../include/config.php): failed to open ...
2
votes
2answers
3k views

edit httpd.conf to run PHP5?

I've installed apache and the server runs fine. I then installed PHP5, and it gave me a warning that it failed to edit the needed apache files. I did some googling and I found an article that said I ...
0
votes
4answers
4k views

Apache gives empty reply

It happens randomly, and only on moodle installations. Apache don't add a line in the logs when this happens, and I don't know where to look. koke@escher:~/Code/eboxhq/moodle[master]$ curl -I ...
0
votes
2answers
3k views

How to install apd in debian php5

I have a debian etch server running php+apache. I am using php5-cli, php5-common, php5-mysql and php5-sybase. I want to use APD to profile my php code, but a php5-apd package is not available in ...
1
vote
7answers
483 views

Problems upgrading from PHP 5.1.6 to 5.2.9

I have a web server running CentOS 5 and it was running php 5.1.6 so I downloaded and compiled the source for 5.2.10 and restarted the server and phpinfo() still returns 5.1.6. But when i do the ...
1
vote
3answers
3k views

Howto make MCrypt and PHP work together on CentOS

I've installed mcrypt on CentOS ( via yum ), but when I try to do a dl() call in A), I get the message in B). A) dl( mcrypt.so ) or die('The Mcrypt module could not be loaded ['. $prefix . ...
0
votes
1answer
584 views

php 5.3 seems to crash on scripts when we have register_globals turned on

apache segfaults when we have register_globals turned on with php 5.3. I know we should not do that, and we have it off now, but some of our very old code needs it. Anyone have any hints on what to ...
0
votes
4answers
1k views

Apache2 setting up Problem with Ubuntu and PHP5

[Solution] Removal of the .htaccess file in /var/www/. Apache2, php5, Ubuntu- restarted, no firewall, but server not working. The access to http://IP/dir/index.html ignites the "Forbidden" message. ...
10
votes
2answers
14k views

Installing imagick PHP extension on Ubuntu

I'm trying to install the imagick pecl extension on my Ubuntu server and am getting the below error. I've installed the ImageMagick rpm using aptitude already and the pecl extension is version 2.3.0. ...
0
votes
3answers
7k views

PHP failing to connect to GMail via IMAP [Edited!!]

I have some php code that I'm trying to use to connect to gmail using imap. Here's the code: $hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX'; $tmp_username = 'username'; ...
1
vote
1answer
2k views

Apache2/fastcgi/php fastcgi/haproxy - graceful restart problems changing configuration settings

I have an Apache2 with php fastcgi setup; I want to do config changes without a client noticing it (so no dropped/failing requests), so I put haproxy in front of it; so I have 2 Apache2 servers ...
0
votes
2answers
2k views

Crontab running when it pleases (fixed.. in a way)

I have the following line in the crontab: */30 * * * * /usr/bin/php /home/antoniocs/phpscripts/update-noip/update-noip.php This script updates my no-ip account. It also writes to a log file saying ...
0
votes
3answers
2k views

PHP Fileinfo in custom PHP build - Linux

We custom build up our PHP installs due to some historic reasons and it gets installed into our custom compile of Apache. We are now trying to get Fileinfo to load into the PHP build and have tried ...
1
vote
2answers
2k views

Installing MySQL 5.1 & PHP 5.2 on RHEL5.3

I would quite like to be running the latest production releases of PHP and MySQL on my production RHEL5.3 server. PHP so that I can use Zend Framework 1.9 which only supports PHP 5.2.4 or later. ...
6
votes
3answers
12k views

PHP installation on IIS: ISAPI or CGI?

I'm running IIS6 on Windows Server 2k3, and currently have PHP installed as a ISAPI module. We're about to upgrade our environment to PHP 5.3.0, and this made me wonder whether I should stick with the ...
2
votes
3answers
6k views

Tips to backup ubuntu server

I have a Ubuntu server hosting a PHP5 / MySQL webapp. I also have another server (offsite) with a directory just for backups of my webapp server. Currently, I have a simple cron job which performs ...
6
votes
4answers
792 views

Apache Never runs after configuring eAccelerator and FastCGI

I recently configured accelerator and fastcgi with apache using: http://secure-ubuntu-server.blogspot.com/2009/07/howto-performance-tuning-of-lamp-and.html Now my Apache never starts. Logs shows: ...
0
votes
7answers
5k views

Strange GD error when working on PNG images from PHP on FreeBSD

I have a problem with my FreeBSD 7.1 server. PHP's GD implementation no longer works on PNG images. Whenever the system tries to work with PNG images, I get these three error messages: [Sat Jul 18 ...
1
vote
1answer
675 views

Apache 2 Fails to start after upgrade to PHP 5.3

I just upgraded to PHP 5.3 (Thread Safe VC6) on my windows server 2003 machine running Apache 2.2.4, and now Apache fails to start. I tested the pre-packed development ini file, and Apache will ...
1
vote
3answers
3k views

How can I install PHP5 on Fedora Core 5?

I'm trying to install PHP5 from source on FC5 and everything is configures and compiles fine. When I try to run php however I receive the following errors. PHP Warning: PHP Startup: mysql: Unable to ...