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

1
vote
0answers
171 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 ...
0
votes
1answer
808 views

Can't start xdebug

I managed to install xdebug and enable it through local php.ini files when needed. It was working just fine for about a month, but today It doesn't. If I try to start a debug session with Zend ...
2
votes
2answers
5k views

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to ...
-1
votes
0answers
9 views

show all webserver email on my website ? How It is possible if possible what are doing (we use php script) [on hold]

show all webserver email on my website ? How It is possible if possible what are doing (we use php script). We crate a crm for email we wont if user send email by gmail id than this email show on ...
1
vote
1answer
155 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
33 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
2k views

Can't connect to remote mssql server

I'm trying to connect to my remote mssql server for my GunZ private server, but for some reason i get the following error Cannot connect to 94.xx.xx.xx. ADDITIONAL INFORMATION: A connection was ...
0
votes
1answer
13 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
votes
1answer
31 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
1answer
1k views

Failed upgrade of PHP on Ubunutu 12.04, error: Sub-process /usr/bin/dpkg returned an error code (1)

I just tried to upgrade my version of PHP on Ubuntu 12.04 and now I have messed it up. First I did this: sudo add-apt-repository ppa:ondrej/php5-oldstable Then I did this: sudo apt-get update ...
0
votes
1answer
2k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = ...
1
vote
0answers
18 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
0answers
28 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
2answers
1k views

How to fix Apache from crashing with PHP+Curl on an SSH request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
0answers
553 views

POST request body fails to get to PHP

I've seen the following issue on Apache 2.2/PHP 5.3 and on Apache 2.4/PHP 5.4 I have encountered an rare issue where POST requests (small, under 1k) to a web server seem to be getting truncated ...
0
votes
1answer
26 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
15 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 ...
2
votes
2answers
107 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. ...
2
votes
3answers
2k views

500 internal server error php long running process

I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings. PHP Config: ...
0
votes
0answers
13 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
40 views

Why do my PHP files show as text in browsers?

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 ...
6
votes
2answers
15k views

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is ...
3
votes
1answer
2k views

“Unable to initialize module” fileinfo php-pecl-Fileinfo.x86_64

I have a brand new server server that I am trying to get setup up. This is a 64 bit machine that I can not install "fileinfo" or "memcache". I have uninstalled these and reinstalled them using yum ...
4
votes
3answers
2k views

Ubuntu install php5-ffmpeg

When I try to install php5-ffmpeg: apt-get install php5-ffmpeg I get an error: The following packages have unmet dependencies: php5-ffmpeg : Depends: phpapi-20090626+lfs As I understand my ...
0
votes
1answer
3k views

.php files not working with AddHandler - Apache 2.4

I am having an issue with Apache 2.4 configuration with PHP5. I have got this: <Directory / > Options +ExecCGI AddHandler cgi-script .cgi Action backButton /backButton.cgi AddHandler ...
0
votes
1answer
1k views

PHP CGI on IIS7 crash

I see an application error message in Windows Events Manager by PHP CGI every alternate hour. The message details are: Faulting application name: php-cgi.exe, version: 5.3.6.0, time stamp: 0x4d81eb28 ...
1
vote
0answers
34 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
1k views

Using Ubuntu 12.04 + Apache 2.4 + Php 5.5 : WebDav Possible

I had ubuntu 12.04 LTS + Apache 2.4 + PHP 5.4 installed via ondrej packages. I upgraded to PHP 5.5, and it seems now impossible to launch webdav extension for apache. The apache mod webdav can't be ...
0
votes
1answer
32 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
201 views

Trying to install php5-fpm on Ubuntu 14.04, getting error

I am trying to install php5-fpm on Ubuntu 14.04 but I get an error I've never gotten before. E: Package 'php5-fpm' has no installation candidate
0
votes
1answer
103 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
10 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 ...
48
votes
7answers
108k views

How do you restart php-fpm?

I need to reload my php.ini and there's nothing in the help dialog about restarting it.
0
votes
1answer
1k views

dll in php “the specified module could not be found”

I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got: PHP Startup: Unable to load dynamic library 'C:\Program ...
0
votes
1answer
67 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 ...
0
votes
0answers
17 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 ...
5
votes
1answer
739 views

Can't seem to set AcceptPathInfo in Apache

I'm trying to migrate an ExpressionEngine site onto a new server and seem to have run into a roadblock. For the desired functionality, EE requires the AcceptPathInfo directive to be turned on, and for ...
16
votes
2answers
26k views

PHP exit status 255: what does it mean?

I recently compiled a PHP 5.2.9 binary, and I tried to execute some PHP scripts with it. I can execute some scripts without problems, but one of them halts its execution midway, exiting with no errors ...
0
votes
0answers
63 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 ...
4
votes
6answers
10k views

What causes PHP pages to consistently download instead of running normally

I'm running a Ubuntu Server on a VM, to test out different web forum solutions. I have set up a ~/public_html/ to be accessible with the apache2 web server, and that works fine. However when I go to ...
0
votes
0answers
29 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
1answer
71 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
0answers
9 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
24 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 ...
-2
votes
1answer
362 views

Apache2+PHP fopen() permisson

Intro: I am sorry to be asking for help when there's loads of that on the internet, however I'm not Linux savvy. Problem: I've installed apache2 and PHP5 under debian, and uses of PHP fopen() ...
2
votes
8answers
12k views

Apache is not interpreting .PHP files

I recently downloaded OpenSUSE OS version 11.4 from the site to use it as a server..In order to do that I downloaded the server edition that has Apache/2.2.17 and PHP5 downloaded by default.....Ok ...
1
vote
4answers
7k views

How to install php-devel under CentOS 6.3 x64?

I'm trying to install php-devel on my CentOS 6.3 VPS and get a failed dependencies test. From phpinfos(): SYSTEM Linux 2.6.32-279.5.2.el6.x86_64 #1 x86_64 NTS error: Failed dependencies: ...
6
votes
6answers
25k views

Downgrade PHP 5.4 to 5.3 in Debian

I had to do a Debian dist-upgrade on my server... in the process, PHP got upgraded to 5.4. We use ioncube which only supports up to 5.3 atm, and I'm having some trouble finding how to downgrade to ...
0
votes
1answer
77 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
239 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 ...