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

centos 6.6, sh: zip: command not found

Centos 6.6 64bit on OpenVZ VPS. I tried a phpinfo.php file using only the following code: <?php var_dump( exec('zip -r domains.zip "domains"') ); // phpinfo(); ?> . The php error log is ...
-1
votes
0answers
7 views

php disable_function recommended settings [on hold]

Looking to enhance PHP security. What is a recommended disable_functions setting for a shared hosting server with cPanel, PHP 5.5 (CloudLinux), suPHP enabled? My current setting is: ...
0
votes
0answers
6 views

Login to apache website fails when using named host

Our issue seems to be when we log into a named sub-website in Firefox everything works as expected; There is nothing special about the login.php script it's simple enter name here, password there and ...
0
votes
1answer
23 views

Installing php 5.5+ on Centos 6 alongside 5.3

How can I install PHP 5.5+ alongside php 5.3 (or 5.4 with the EPEL repository) on a Centos 6 server? I don't want to remove or supersede the default version, but I would like to have both versions ...
1
vote
0answers
82 views
+50

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
0
votes
0answers
8 views

How do I set permissions on directory(folder) on IIS 6.0?

I am trying to set permissions on uploads folder. I have two projects - an original project and a pilot project. I am trying to upload images from php code. It works for me for the original project ...
0
votes
0answers
31 views

how to update php from 5.3 to 5.4 in ubuntu 14.04

We have a PC installed ubuntu 14.04, but only installed php 5.3.10-1ubuntu3.4, not the last version. Now we want to upgrade to php 5.4. I tried the solution by this post: how do I upgrade from php ...
0
votes
0answers
12 views

Installing PECL zip extension gives “Module 'zip' already loaded in Unknown on line 0”

I am trying to install the latest PECL zip extension to overcome a bug in the version that is precompiled into my php5 package (Ubuntu 14.04, PHP 5.5.9-1ubuntu4.9). I've added a new ini file in ...
0
votes
0answers
6 views

checkdnsrr not work for www-chroot user

Environment: Debian,apache-itk This code <?php print_r(checkdnsrr("gmail.com","MX")) ?> Run ok from command line, but not work when running by webserver. Any idea
0
votes
0answers
14 views

AddHandler fcgid-script .fcgi .php + filenames containing .php (.php.jpg for example)

I have recently noticed that on fcgi setups files which contain .php as part of their name (for example: image.php.jpg is still an image) will be treated as php files, but since no actual php code ...
0
votes
1answer
57 views

APC - tuning apc.mmap_file_mask

When configuring APC as an opcode cache for PHP, there's a configuration setting called apc.mmap_file_mask. From what I've read there are three ways you can configure it but I don't really understand ...
0
votes
1answer
39 views

How do I enable updated PHP 5.5 versions in RHEL 7

As our development projects expand we're finding we often need newer versions of PHP, Python, Ruby, etc than are provided by Red Hat. What are others at NU doing to solve this problem? There doesn't ...
0
votes
1answer
122 views

php5-fpm with nginx Session Not Maintained / Dropped Randomly

When running nginx with php5-fpm, session variables randomly lose their values. Since my session variables become empty, my script asks for the user to login again. However, what's weird is that the ...
0
votes
0answers
48 views

Compiling Newer Version of PHP (for Apache/libphp5.so) using phpinfo() 'configure command' output from current server

I'm trying to compile PHP in a manner that matches another system (to be upgraded), but with a few changes (namely MariaDB support), and a newer PHP version. Phpinfo() configure command output shows ...
1
vote
1answer
24 views

Cannot access virtual directories on Drupal 7

I have installed Drupal 7.37 on AWS EC2 Linux instance. It was working perfectly until I reinstalled httpd24 and PHP 5.5. Since then, the main page loads perfectly but I cannot access my virtual ...
0
votes
0answers
106 views

Call to undefined function ldap_connect() in ubuntu

I'm attempting to set up a test ldap server on an ubuntu 12 VM. I've gotten this error: Fatal error: Call to undefined function ldap_connect() in ubuntu I've installed the gettext extension in ...
0
votes
1answer
52 views

Install memcached PHP extension on openSUSE 13.2

Is there a standard/supported way to get the memcached extension for PHP installed on openSUSE 13.2? On CentOS this was a case of yum -y install php-pecl-memcached. But it doesn't look like the ...
0
votes
1answer
72 views

Temporarily website outages, fastcgi PHP communication abborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid ...
1
vote
0answers
39 views

PHP sendmail_path not getting updated [closed]

Environment: Debian 7; PHP 5.4.39; Apache 2.2; ISPConfig Using the Perfect Server Debian guide from howtoforge, I built a web server to serve some PHP applications. My intention is to use an external ...
0
votes
0answers
64 views

Php5-CGI is using 100% CPU on a single hit. How do I track down the culprit?

I ran into a strange problem with a Magento Store. The server was crashing when we hat a little traffic-peak so I checked what was going on. Using htop I found out that PHP5 CGI is using up to 100% ...
0
votes
3answers
41 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 ...
1
vote
1answer
55 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
1answer
481 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 ...
0
votes
0answers
74 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
113 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
72 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
124 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
200 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
22 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
84 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
289 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
586 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
147 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
114 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
203 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
231 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
64 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
138 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 ...
1
vote
1answer
195 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
411 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
62 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
1k 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
81 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
463 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
159 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
42 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
326 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
63 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
154 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
656 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 ...