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
3answers
30 views

How to decide on VPS good defaults for PHP and Wordpress when it comes to memory?

I have (only) 512MB to spare. The only thing running on my VPS is PHP/MySQL and on top of it Wordpress. No mail server or any other application, just Wordpress and LAMP stack. How to decide how much ...
0
votes
0answers
23 views

Apache 500 code and strange php5-cgi processes [closed]

I have a strange problem. I have a VPS managed by parallels plesk (Linux Debian). I have deployed a few sites on it. I am experiencing problems with site that using PHP. Sites that are not using PHP ...
1
vote
1answer
14 views

Apache processes become stale but won't time out

I'm having an issue with apache2 httpd. The apache is using mpm_prefork and the web application uses php. I noticed that the machine where the apache runs suddenly drops to 0% cpu usage during the ...
0
votes
0answers
19 views

Install php-mssql on CentOS 5.11 PHP 5.3 Error [on hold]

This is my first question here. I am not Linux guy but I need to try to do this on my own. So I have CentOS 5.11 and already upgraded to PHP 5.3.29. I need to install php-mssql so that I will be able ...
-2
votes
0answers
24 views

Apache2 suddenly not serving and giving me an error

A couple of hours ago my domain was reachable, now I get a loading error. I have installed ajenti and I can still reach it by my.domain.de:port but the domain itself is not working anymore. I have ...
0
votes
1answer
98 views

Upgrade apache 2.4.6 to 2.4.12 on CentOS [duplicate]

We have following server details and we need to upgrade apache 2.4.6 to apache 2.4.12 OS: CentOS 6 Apache : 2.4.6 PHP : 5.5 I know how to install 2.4.12 from scratch but i just want to upgrade ...
-1
votes
0answers
27 views

What can cause PHP script to timeout? [migrated]

Today, I found some 503 errors on my Apache log that I have not encountered before occurring within a short time interval: 12:12:37 proxy_fcgi AH01075: Error dispatching request to : (polling) ...
0
votes
0answers
25 views

apache 2.4 keeps crashing with php 5.5.15 and prestashop 1.6

I have a problem with apache 2.4. the log file shows following error and warnings constantly: PHP Notice: Trying to get property of non-object in ...
0
votes
0answers
35 views

Bus error during PHP5 is running a simple script - what?

When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail ...
0
votes
0answers
38 views

Apache 2.2 segmentation fault and bus error

Hope this doesn't go in as spam cause I've read many similar questions. While most of them only relate to seg faults I'm having bus errors as bonus. I'm running CentOS 6.4 x86_64 with Apache 2.2 and ...
0
votes
1answer
34 views

PHP-FPM - problems with the pre-start process

My webserver runs NGINX with PHP-FPM. After (I guess) an update, the service php5-fpm stopped working and refuses to restart/start - even after a reboot. As another webserver does the same updates and ...
-2
votes
3answers
115 views

Upgrade php version on centos 6.5

On the current stack i hv centos 6.5 (64 bit) , PHP 5.3 available. I'm a linux new bee & need to perform php upgrade to PHP 5.5. Tried following but that returned error: wget ...
1
vote
0answers
11 views

Apache2 on Debian freezes after some time

I have problem with apache server on Debian VPS. After some time (few hours) of work it freezes and no request is being processed (server allows connection but returns nothing). # apache2 -v ...
0
votes
0answers
53 views

403 Error When Mass Editing or Uploading Files to Wordpress

Installed Wordpress 4.1.1 fresh and created a new DB instance for it. When I upload more then 15 files at once or insert 20 or more files into a page I start getting 403 errors on all the backend ...
-2
votes
1answer
126 views

Accidently removed all PHP dynamic libraries [closed]

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load ...
2
votes
1answer
174 views

How to Upgrade to PHP 5.5 on Windows Server 2008

What is the proper way to upgrade from PHP Version 5.4.32 to PHP Version 5.5.22 on Windows? All that I can find is how to to install. PHP is already running on Windows Server 2008 R2 64 bit alongside ...
0
votes
0answers
39 views

Apache Requiring Authentication but not configured

I am trying to set an Apache server to serve up HLStats X:CE and SourceBans for my gaming group. For some reason I get the following error: [Thu Feb 19 11:16:55.378671 2015] [core:error] [pid 18125] ...
0
votes
1answer
64 views

freeradius broken after apt-get update

Ubuntu 14.04.1 LTS apt-get update /upgrade was run last night at around 10pm. This morning people are saying that they can't get into ftp and wifi because these services are auth'd by freeradius. ...
0
votes
2answers
131 views

Apache segmentation fault: how to get more information with gdb?

I'm seeing the following error in apache's error_log. It's completely random but when it happens, it prints 10-20 lines in error_log. Apache: [core:notice] [pid ***] AH00052: child pid *** exit ...
0
votes
0answers
148 views

Installing PHP OCI8 extension on SLES 11 with PHP 5.6.3 Oracle Instantclient 12.1 and APACHE2

I attempting to install the OCI8 extension. The OCI8 extension version is oci-2.0.8. The configure script to install is "./configure --with-oci8=instantclient,/usr/lib/oracle/12.1/client64/lib". ...
1
vote
1answer
38 views

How can I specify which php.ini file to use in my nginx conf file?

I'm running 2 PHP sites on the same server. I would like to use 2 different php.ini files for them. I've googled this issue with no luck. Here is what my php location looks like: location ~ \.php$ { ...
0
votes
0answers
97 views

environment variables set with SetEnv not passed to PHP

I'm setting some environment variables to get from the PHP $_SERVER global variable, but it does not work. The variables are not in $_SERVER and neither in the phpinfo() output. I have all modules ...
0
votes
1answer
161 views

Ubuntu Server 12.04: upgraded php to 5.4, now sites won't load

I just upgraded php on my Ubuntu Server 12.04 to 5.4 from 5.3, using the ppa:ondrej/php5-oldstable ppa but now my php-powered sites don't load (I just get a downloaded file). I've restarted apache2, ...
0
votes
1answer
216 views

Could not install php zip extension by using `pecl install` command line

When I want to install the zip extension of php using pecl utility, I got the following error: No releases available for package "pecl.php.net/zip" install failed but the zip extension is exists ...
0
votes
0answers
30 views

Application logs an INSERT into database but data is not there. Where to look for debug info?

I have a PHP shell application which essentially moves data from a MySQL table to a REMOTE MS SQL Server (2008 R2) server based on a number of business rules. This routine has been working flawlessly ...
2
votes
0answers
909 views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
1
vote
1answer
54 views

php5-fpm invoked oom-killer

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
1
vote
2answers
323 views

PHP version updated to php-5.4.37-1.el6.remi but server still using older version (CentOS release 6.6 (Final)) [closed]

i'm having problems to update php on server CentOS release 6.6 (Final), from php-5.3.25 to my required version php-5.4.37. I downloaded and enabled remi repository an then installed the mentioned php ...
1
vote
0answers
118 views

200 OK blank page setting up Wordpress on restore test VM

I'm testing a partial backup of a frankly rather outdated (legacy, what can you do?) CentOS/Apache/MySQL/PHP/Wordpress server by restoring to a VM with a fresh copy of the relevant packages. After ...
-5
votes
1answer
39 views

Deleted php5 www.conf help please [closed]

I accidentally deleted the php5 www.conf file located at: /etc/php5/fpm/pool.d/www.conf is there any way to get a copy of the original file back? I believe there is an answer to my question ...
-1
votes
1answer
193 views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
0
votes
0answers
55 views

How do I configure Nginx/Apache for a single web application split between Rails and PHP?

Questions like this have been asked before, but I have yet to find one meeting my specific needs. We currently have hosting with Media Temple running CentOS 6.6. We have what's currently a PHP ...
1
vote
0answers
115 views

Apache 2.4 prefork, MySQL 5.6 and 2GB RAM

I think I'm having problem setting up Apache24 correctly. Apache seems to taking up to much RAM, and I'm not sure how to configure it. The FreeBSD server is using 50% of it's swap space. We are ...
1
vote
1answer
397 views

Postfixadmin does not work after update “Cannot redeclare hex2bin”

I had recently updated my Debian wheezy (7.7) and forgot to check all systems after that. So, I can't really say what the versions were before I upgraded or at which point it broke. When I tried to ...
-2
votes
2answers
321 views

How do i install another version of PhP?

I would like to have installed WHMCS on my dedicated server. (I already have installed apache2) How do I install PhP 5.4 as WHMCS not support PhP 5.5? WHMCS System requirements: ...
0
votes
0answers
216 views

Mcrypt PHP extension fail on PHP 5.5 Amazon Linux

I'm installing laravel framework on my Amazon Linux Server, But once i compose and Laravel finish installing, laravel ask for Mcrypt PHP extension. then when i try to use command line to install ...
0
votes
1answer
172 views

how to create multiple sub domain in local host? [closed]

Using nginx and php I need to create multiple sub domain in local host. How i can make it happen? I am using ubuntu 12.04 andphp5 withnginx as webserver. i Have tried *.servername.com in my ...
0
votes
2answers
1k views

upgrading php 5.3.6 to 5.5 in ubuntu 12.04 LTS requires removing mysql?

I'm trying to upgrade php to latest version (5.5) my current php version is 5.3.6 bundled with ubuntu 12.04 LTS. The problem is I do not want to upgrade anything else just php but although I ...
0
votes
1answer
182 views

Can I compile PHP 5.2.17 on CentOS 6.5, then copy it to a similar server? [closed]

I have two CentOS 6.5 VMs/servers with Plesk 12 installed on both. On on of these servers, lets call it server 1, I have compiled PHP 5.2.17 - yes I know this is old etc. however two sites I host ...
1
vote
0answers
47 views

How to build PHP 5.5 with FastCGI?

I need to build my own PHP binary under Unix (because I need some SGBD option, that's an other problem). Currently my Apache server is linked to PHP throught CGI, but I read that it's not the ...
-5
votes
1answer
999 views

php5.6.2 installation with httpd24 ( apache version 2.4.10 ) on centos/rhel [closed]

using this repo : http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm for php installation , and for apache i am using amazon linux repo current ...
1
vote
1answer
299 views

Why was an older version of Nginx installed?

I installed Nginx and PHP5-FPM and have it all working, but I noticed that I have Nginx 1.2.1 installed and not the most recent stable version (1.6.x). I also noticed that PHP-FPM had PHP 5.4 and not ...
0
votes
1answer
157 views

Nginx virtual host servername, root

I installed nginx-1.6.2,2 on FreeBSD-9.2-RELEASE-p5 and here is my configuration: # tail -2 nginx.conf include _includes/*.conf; } # cat _includes/XXX.conf server { server_name XXX; root ...
0
votes
0answers
159 views

Creating /ping and /status pages on servers running PHP fastcgi (Not PHP FPM)

I have created /ping pages in the past for use with EC2 and ELB health checks with PHP FPM but not with Fastcgi. I have an autoscale setup which uses a semi pre-built Turnkey Linux PHP fcgi and nginx ...
1
vote
2answers
464 views

Nginx server block not working

Disclaimer: Just to clarify, I'm completely new to Linux, but I've configured everything via google searches and personal research. I've got a Debian Wheezy server with LEMP stack that I intend to ...
0
votes
0answers
89 views

file_get_contents extremely slow when executing on IIS 7

I just installed IIS with PHP on my Windows Server 2008 R2, and I've noticed when using PHP's file_get_contents() function, it loads extremely slow (7+ seconds). echo ...
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
0answers
66 views

Does OPcache work when PHP is running in CGI mode?

Does PHP 5.5s OPcache work with PHP running in CGI mode? Or does that even make sense, since it forks and kills PHP for each request?
0
votes
1answer
68 views

Pass PHP5-FPM errors back to error page script? [closed]

My nginx has an error_page setup that throws 500 errors to a PHP page. I wish to display/log any PHP errors that cause this error page to show. When I say display, I mean show in-browser depending on ...
0
votes
0answers
141 views

php-mysqli extension fails as compilation

When I am trying to build the latest php5-mysqli port I get the following errors back: cd /usr/ports/databases/php5-mysqli && make MAKE_JOBS_UNSAFE=yes install clean ...