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

symbol xmlOutputBufferGetSize, version LIBXML2_2.9.0 not defined in file libxml2.so.2 with link time reference

I've installed Apache2 and PHP5 via apt-get on Ubuntu 14 (amd64), Tomcat 6, and Postgres 8.4. I get this error message on an attempted restart: apache2: Syntax error on line 140 of ...
1
vote
0answers
91 views

Installing an intermediate cert on Debian 8 for curl/openssl connections.

I am trying to contact a url via php's stream_socket_client() command which is failing with no error code or msg. Does this use openssl, curl or something else? The site uses https and works fine from ...
0
votes
3answers
396 views

How to disable some extensions in php 5.6?

I have installed php 5.6 in centos 6.7 server using yum --enablerepo=remi,remi-php56 install -y php-mysqlnd php-gd php-mbstring php-mcrypt php-xml php-fpm I have the following php extensions ...
1
vote
0answers
601 views

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

I have been struggling for weeks with this error: (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function followed sometimes with this error: (104)Connection reset by ...
1
vote
1answer
95 views

virtualbox ansible and PHP

I am trying to install Centos-7 on Ubuntu vivit in Virtual Box using Ansible. I get through a large amount of configuration and set up before it fails with the message below. I have searched for ...
1
vote
0answers
93 views

upload_max_filesize: php.ini or apache virtual host entry

I need a little perspective here as I am a bit confused. I was under the impression that adding a <IfModule mod_php5.c> php_value upload_max_filesize 200M php_value post_max_size 800M ...
0
votes
0answers
146 views

php 5.6 make test errors

I am in the process of doing php upgrades on our various servers from 5.5 to 5.6. I am down to the last 2 (out of like 8 or so) and running into the following when performing make test (after ...
0
votes
0answers
121 views

load php extensions in apache

*reposting from stack overflow as this is more a server setup than a programming issue. http://stackoverflow.com/questions/32523320/load-php-extensions-in-apache * Hi folks, I think i am almost ...
0
votes
0answers
121 views

Occasional OpCache Error, Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 undefined symbol: compiler_globals

We are receiving the following errors randomly on our server running Apache 2.4 MPM Worker + PHP_FPM + PHP 5.4 Failed loading /usr/lib64/php/modules/opcache.so: /usr/lib64/php/modules/opcache.so: ...
1
vote
1answer
106 views

How To Only Restrict PHP5/Apache to Send Mail Only To Local Users

I need some help. I am running lastest stable Ubuntu which hosts Apache/PHP5 and also delivers email. I host some WordPress sites for other users and have been waging a war for months now combatting ...
2
votes
0answers
433 views

php5 not working with nginx 1.9.3

I am new to nginx, and having some trouble with php5. (I had it sorta working, but cant seem to get it working again.) There are 2 files I am woring with, that seem to control nginx, and php5-fpm. ...
0
votes
1answer
408 views

Apache and php5 fail on ubuntu server

I update a PHP 5.5.28-1+deb.sury.org~precise+1 (cli) and have apache Apache/2.2.22 but when run a restart apache2 apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Syntax error on ...
1
vote
1answer
250 views

Debugging slow server response time [closed]

I'm testing response time of my VPS server: curl -s -w %{time_total}\\n -o /dev/null http://www.example.com The values are typically round 300ms, Google suggests that it should be lower than 200. ...
1
vote
1answer
111 views

“Allowed memory size of 67108864 bytes exhausted” when PHP memory limit is set to 128mb

Forgive me if this is the wrong place; was unsure whether to post this on SO or here. I'm getting the above error from a script, implying that I've reached the limit of 64mb of memory for the script. ...
0
votes
1answer
275 views

PHP 5.4 packages are installed but the server is using PHP 5.3

I'm trying to upgrade PHP 5.3 to 5.4 on a CentOS 6.7 VPS. Followed the Webtatic instructions here: https://webtatic.com/packages/php54/ Now at a stage where the 5.4 packages are installed, but PHP ...
0
votes
1answer
79 views

Apache spawns bunch of php-cgi processes and they don't exit - webite hangs

Out of the blue, apache started to not to respond when I tried to load my website. Website is based on Drupal just for the information. I checked server status by doing service httpd status and it ...
1
vote
1answer
487 views

Apache Restart fails after upgrade to Apache 2.4 and PHP 5.6 due to “ undefined symbol: unixd_config” in mod_fcgid.so [closed]

I tried to upgrade Apache and PHP on a virtual server, because the installed versions were outdated. The server runs Ubuntu 12.04LTS. I used a shell to upgrade, and Plesk is installed on the server, ...
0
votes
0answers
387 views

Cannot install php-mysql

I have a VPS with CentOS 6.6 x86-64 and ISPManager, PHP 5.4.43, Server version: 5.5.45 MySQL Community Server (GPL) by Remi and an version phpMyAdmin. I upgraded php from 5.3 to 5.4 and mysql from 5.1 ...
0
votes
1answer
186 views

I just installed LAMP on a new CentOS 7 server - why are my php-openssl commands undefined?

I have some scripts that utilize some of the openssl PHP functions, such as openssl_opbkdf2. I am migrating from an Ubuntu server to a newly-created CentOS 7 server with a fresh install of the entire ...
0
votes
1answer
58 views

DefaultType PHP 5.5 (for files that do NOT have any extension, including “.php”)

How can I add PHP to deal with files that do not have any extension? Is there a "DefaultHandler" directive? In Apache 2.2.29, with PHP 5.5, the following does not work: DefaultType ...
1
vote
0answers
75 views

Environment variables for PHP applications

A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: ...
0
votes
1answer
503 views

Laravel: default route will render but others will not. Ubuntu/14.04 / Apache2 configuration issues? Not sure what I am doing wrong

Laravel will render the default / root page normally. but will not render default routes or error pages. My web browser will return with Apache (NOT Laravel) error pages with I try and access /test ...
0
votes
0answers
407 views

Issues installing extensions/modules for php-5.3.29 - Using phpbrew

Im having issues installing modules for phpbrew phpbrew - build: php-5.3.29 Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-32-generic x86_64) Server version: Apache/2.4.7 (Ubuntu) When i try to install ...
0
votes
0answers
144 views

intermittent php-fpm 'exit with code 1' issue

We have a number of RH EL6 boxes running apache 2.4 and php-fpm 5.5 (installed through Software collections) where a PHP application is intermittently failing with a "service unavailable" message ...
0
votes
1answer
193 views

Installing PHP 5.2 on RHEL 7.1

We are planning to move to Amazon EC2 server. Our current server version RHEL 5.5 and PHP 5.2. We are planning to configure Amazon RHEL 7.1. Does RHEL 7.1 support downgrading PHP version to 5.2. I'm ...
0
votes
1answer
204 views

Supervisor 3.1.3 installed on Cento OS 6.4 hosted on DigitalOcean giving error while adding process

I have live server on Digital Ocean with Cento OS 6.4 hosted. I am trying to install supervisor for the Laravel-5 processes. But, when I try to add the process it gives me error as undefined process. ...
-1
votes
1answer
117 views

Why do my PHP files show as text in browsers? [closed]

Long story short, my PHP files show as text in browsers rather than running the PHP script. I am aware that there are questions similar to this but none answer my question. I'm lost. I have an Apache ...
2
votes
2answers
1k views

206 Partial Content returned with Content-Length: 0

I'm serving large audio files on an Apache server using mod_xsendfile (version >= 0.10). The files are served fine when I use header( 'HTTP/1.1 200 OK' ); However, those files are served in full. ...
0
votes
1answer
210 views

Apache with PHP-FPM not working

I am following this and this article to setup apache2 and php5-fpm under Ubuntu 14.04, but it always return a HTTP 403 when I run phpinfo(), how do I fix it? I didn't edit the virtual host ...
1
vote
0answers
130 views

How do I troubleshoot an unresponsive Apache2 instance using 100% CPU?

I'm running a Debian 7 server with Kolab Groupware installed and not much else. It works perfectly fine normally, but randomly (always when I'm not looking, of course) the CPU usage will spike to 100% ...
0
votes
1answer
60 views

Protocol-relative URL in CSS file is being overwritten

I have this code: <?php header('Content-Type: text/css; charset=utf-8'); ?> a.logo{background:url(//webzina.net/img/logo.png) no-repeat 100% 0} Locally (PHP Version 5.3.5), I get: ...
0
votes
1answer
270 views

centos 6.6, sh: zip: command not found [closed]

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 ...
0
votes
0answers
23 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
205 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
1answer
555 views

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
39 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
285 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
502 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
40 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
72 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
323 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
3answers
2k 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 ...
1
vote
1answer
2k 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
147 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
46 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
1k 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 ...
1
vote
1answer
552 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
2k views

Temporarily website outages, fastcgi PHP communication aborted

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
97 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
224 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% ...