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
2answers
143 views

Apache timeouts and error log

I have an error whenever I run my code for a certain time. I use a lot of loops and sql connections. I basically, put and take out links from my database. The problem is that there is some error ...
2
votes
2answers
150 views

I have a fresh VirtualServer running Ubuntu 12.04, how do I get a LAMP server running?

Although I have an overview of running commands like apt-get install apache2 what I don't know is what order I should run them in to get a LAMP server running. Also, I assume I should create a ...
0
votes
1answer
150 views

PHP header redirect working in nginx even output sent

note: There is a similar question but that's about Apache. The following code <?php echo '.'; header('Location: http://stackoverflow.com'); is fully 'working' under nginx 0.7.67 where 'working' ...
1
vote
0answers
177 views

I'm running ColdFusion 9 and PHP 5.3.10 in IIS 7.5 on Windows 2008 R2, and suddenly today all my php requests take over 10 seconds each, why? [closed]

My php requests were consistently faster than my ColdFusion 9 requests, but starting today, all of my php requests are taking 10 seconds or longer to execute where as before they were taking 200 ms - ...
1
vote
1answer
224 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. ...
0
votes
0answers
327 views

Problems Accessing XCache Admin Page

I just installed XCache on a test server, and it appears to be enabled and working. However, I get the following error when trying to access the XCache Admin Page. Fatal error: xcache_count(): ...
0
votes
2answers
117 views

virtualmin - change of pdo_mysql.default_socket for CGI and FCGId

I am runing virtualmin with mysql and php on ubuntu 10 recently I have update mysql and php to newest version since than My pdo_mysql.default_socket has changed from /tmp/mysql.sock to ...
0
votes
1answer
172 views

Enable coloured PHP CLI messages on console

How to enable coloured messages for PHP CLI on console (Mac OS X, latest PHP/Apache from MacPorts)? export CLICOLOR=1 export LSCOLORS=gxfxcxdxbxegedabagacad doesn't seem to be enough, all PHP CLI ...
-1
votes
2answers
280 views

Install PHP/Apache windows 7 [closed]

I've successfully installed Apache 2.2.22 and I ran the localhost and I got the It works message so I'm assuming that is ok. Then I installed PHP 5.3.15. My question is how do I make those two work ...
1
vote
1answer
170 views

PHP Configuration on IIS 6 Mysql extension is not loaded

I have limited knowledge of PHP. I would really appreciate your help. I have the problem with "PHPMyAdmin is not working because mysql extension is not loaded." I checked phpinfo and all other ...
2
votes
1answer
1k views

Installing php5-imagick in Ubuntu 12.04 w/ ondrej packages results in dependency error

I've been trying to setup an Ubuntu 12.04 VM that is running PHP 5.4 with the imagick module. All the results I find on google say to use the ondrej packages, which for the most part works perfectly. ...
0
votes
2answers
433 views

Will compiling PHP 5.4 work on a server that has PHP 5.3 installed?

I have a dev machine with Ubuntu 12.04. I installed AMP by following directions from http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.04-lts-lamp. Will it work ...
0
votes
1answer
461 views

How to include PHP error log in Plesk 10.4 control panel

We am using Plesk 10.4 for our production server. I like to configure the PHP error logs in Plesk. So that I can get my Php errors. Any one please help me to add the PHP error logs to Plesk logs so ...
0
votes
0answers
812 views

PHP and Apache using Access-Control-Allow-Origin with AJAX

I am attempting to configure my development environment to allow CORS. The crux of the problem is when making a cross-domain ajax request with custom headers (x-requested-with etc) newer browsers ...
3
votes
2answers
2k views

pecl install mongo - keeps compiling with wrong module API

Working with Ubuntu 12.04 here, nginx and php5-fpm I had mongo working well on php 5.3, then I added the ondrej/php5 ppa and updated to php5.4. It kept GD and CURL extensions, but not mongo. I ...
0
votes
0answers
215 views

Recursive redirects with FastGI+FPM on Apache2

I am using Drupal 6 on an Apache2 server with PHP 5, Varnish 3, APC and memcache. OS is Ubuntu 12.04 I am trying to get FastCGI and PHP-FPM working with my configuration and have installed the same ...
1
vote
2answers
1k views

I/O Error with PHP5-FPM, ptrace(PEEKDATA) failed

I got a lot of these: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] ...
1
vote
1answer
356 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 ...
0
votes
1answer
540 views

Setting php values in php-fpm confs instead of php.ini

I'd like to set values in php-fpm conf files what are normally set in php.ini. I'm using nginx. I've created the following setting, but I'm not sure if this would work. php_value[memory_limit] = 96M ...
0
votes
1answer
100 views

I recompiled dozens of times, why is my OpenSSL Library and Header still not the same?

openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 0.9.8o 01 Jun 2010 OpenSSL Header Version OpenSSL 1.0.1 14 Mar 2012 From PHP (5.4.4) info, this is the problem I have. I am dry out ...
0
votes
1answer
637 views

Unable to load PHP5 with a new installation of Apache?

Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: undefined symbol: unixd_config I spent the last hour or so googling, and it seems that I have to ...
0
votes
1answer
166 views

PHP pages loading slowly from time to time

In last 15-20 days I have noticed a problem on one site. The site has two image galleries, one is an old static HTML gallery made few years ago and another, main, is powered by ZENPhoto CMS. Also I ...
0
votes
0answers
56 views

Wear and tear on server hard drive from filesystem polling by PHP script

So I'm working on a discussion platform, and various clients will visit http://host/thread.php, which will render the discussion thread to date in addition to a form to submit a new post. When a new ...
0
votes
1answer
87 views

APC (trunk) Install With PHP 5.4 Failing [closed]

Has anybody successfully installed APC on php 5.4? According to another thread I found on StackOverflow, seems possible using the latest trunk. I grabbed trunk, phpize, ./configure, but when I try ...
2
votes
3answers
444 views

solr php extension fails to run on newest Debian Wheezy

I'm trying to use the Solr PHP extension on the recently-upgraded Debian Wheezy. It installs both from PECL and from sources flawlessly but instead of giving me expected functionality it gives me this ...
3
votes
1answer
244 views

How to disallow use of disable_functions in?

I'm obviously not the first one to have this problem, but I cannot not find an answer to this situation. I want to lock down PHP a bit, more specifically the use of disable_functions. The environment ...
1
vote
2answers
430 views

CentOS equivalent of RHEL php-pecl-zip package?

I have a RHEL 5.5 host with PHP 5.1.6, and the php-pecl-zip package installed (using yum). I have another host with CentOS 5.8 and PHP 5.1.6, and I want to have the same php-pecl-zip package ...
0
votes
2answers
801 views

Apache 2.4.2 with PHP 5.4.4 crashes as soon as phpinfo() script is opened

As soon as i open a phpinfo() script called version.php apache stops working. Here is the error.log file. My configuration (my local development machine): Windows 7 Home Premium x64 SP1 with latest ...
0
votes
2answers
331 views

Does PHP for Windows work with VC10 (Microsoft Visual C++ 2010 SP1)?

My system is Windows 7 x86. Im going to install Apache 2.4.2 VC10 from Apache Lounge and it requires Visual C++ 2010: Be sure that you have installed the Visual C++ 2010 SP1 Redistributable ...
0
votes
1answer
138 views

Deploying concrete5 on nginx

I have a concrete5 site that works 'out of the box' in apache server. However I am having a lot of trouble running it in nginx. The following is the nginx configuration i am using: server { root ...
1
vote
1answer
72 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
2answers
367 views

PHP pages working slow from time to time

I have VPS with limit of 2GB of ram and 8 CPU cores. I have 5 sites on that VPS (one of them is just for testing, no visitors exept me). All 5 sites are image galleries, like wallpaper sites. Last ...
0
votes
0answers
122 views

After Switching from Apache to Nginx, HTML Truncated

Our site was running fine with Apache, but I am switching us over to Nginx (with php-fastcgi) to be more scalable. Everything is working fine except our HTML gets truncated sometimes (usually on ...
1
vote
1answer
80 views

How can I figure out which PHP extensions aren't being used?

I manage a server (running Ubuntu) which hosts our client's sites with a few dozen different PHP-based websites, mostly small sites but also some installations of CMSes and forums. I used the ...
7
votes
1answer
314 views

How is this even possible? PHP memory error — allowed memory size / bytes exhausted

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1540673 bytes) in /home/appdev/glicious/Nutrition.php on line 41 If you haven't noticed, 134217728 is two orders of ...
3
votes
2answers
4k views

How can i enable byte range request?

How can i enable byte range request? While pod casting on itunes it gives an error message "There is a problem with your feed. Your episodes are hosted on a server which doesn’t support byte-range ...
1
vote
1answer
1k 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 ( ...
0
votes
0answers
136 views

Drupal + nginx and my own website

I'm having a nightmare. Been trying to set up Drupal to work from a subdirectory from within my ngingx config. Currently I have my own personal site set up which is using Zend Framework. The ...
2
votes
2answers
1k views

How to install latest version of imagick on centos 5.8 64bit using bash

How can I download and install latest version of imagick on centos 5.8 64bit using bash for php 5.4. >yum info php Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * ...
1
vote
2answers
169 views

how to point apache to different version of php

I installed apache on ubuntu like so: apt-get install apache2 I initially had installed PHP by doing: apt-get install php5 That gave me php 5.3.x. Now I want to use the latest version php 5.4.x ...
0
votes
3answers
2k views

Exclude a specific repo from YUM Update

I am doing a system wide yum update on RHEL 5.5 and the IUS EPEL repository is throwing a missing dependency error: php53-mcrypt-5.3.3-4.ius.el5.x86_64 from installed has depsolving problems --> ...
1
vote
0answers
217 views

PHP5 OCI8 FreeBSD

I'm running a FreeBSD server with Apache and PHP 5.3. I'm trying to get the Oracle DB extension (OCI8) running with PHP but I can't find a port or anything for it. Half of the Internet says it's no ...
0
votes
3answers
122 views

PHP using lots of memory/time outside of script?

I'm working with a site that was built in Drupal and generally runs well. After some optimization it takes 20-75MB of memory and 0.5-2s for most requests. But once in a while it will take 15-20s and ...
0
votes
2answers
245 views

Apache 2.2 on CentOS 5.5 doesn't serve PHP files after upgrade to php53

I just upgraded a CentOS 5.5 server (using Apache 2.2) to PHP53 (using the php53u set of packages). All of a sudden, Apache doesn't appear to recognize .php files. It's just delivering the source. ...
2
votes
2answers
2k views

Install php-mssql in CentOS 6.2

I have a server running CentOS 6.2 with Plesk 10.4. When I SSH in, and try and install ms-sql extension it says "No package php-mssql available." I can't seem to find much on Google for this, and I ...
0
votes
0answers
135 views

Internal Server Error - Stack smashing detected

On certain pages on my VPS I get the following error. This happens with multiple VHOSTs. It has happened on both Wordpress and vanilla forums. It only happens when I run suphp rather than normal ...
1
vote
1answer
531 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 ...
0
votes
1answer
190 views

Apache2 filtering Auth headers

I'm running PHP 5.3.6 as Apache 2 module (phpinfo ServerAPI says "Apache 2.0 Filter") in a Ubuntu machine. I have a PHP application and I want a iOS client to send it information under https. ...
0
votes
1answer
963 views

php5-mysqlnd on debian wheezy/sid?

I am trying to install php5-mysqlnd on a fresh install of Wheezy (/etc/debian_version refers to it as wheezy/sid) and I'm having a problem: root@debian:/var/www/lottery1# apt-get install php5-mysqlnd ...
0
votes
1answer
187 views

Using a custom PHP.INI for a single site. Windows 2003, 64bit, IIS7.5, PHP 5.3.6

I have a single PHP script on a single site that requires me to set the upload size maximum fairly high. I would prefer not to do this globally. According to the PHP docs, I can not set the values ...

1 3 4 5 6 7 12