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

How to synchronize different debian server

I'm developing a project that consists in a tomcat installation with a web app with many classes and libraries and a php side with many many folder and files. I've got two server debian wheeze and ...
0
votes
0answers
11 views

zend server 5.6 cURL and OpenSSL don't match

I'm running Mint 13 (ubuntu 12.04lts) and have Zend Server 5.6CE w/ php 5.2 installed. I'm getting segfaults with some cURL calls, and I think I've tracked it down to a misconfiguration in my ...
1
vote
2answers
904 views

Windows Server 2008 IIS7 - page requests randomly hang or timeout

I've just installed a fresh copy of Windows Server 2008 x64 with IIS7 and PHP (fast CGI). However, I'm noticing that after moving my web site from a similarly specified machine to this one, I'm ...
1
vote
2answers
162 views

Check if cron ran and have fallback

I have written a realtime bus tracking program that runs a cron every minute to check the service of the bus. In order to remove some server resources I am going to be creating an instance on PHPfog ...
0
votes
0answers
7 views

How can I disable FastCGI on a Windows IIS 6 server?

We use WordPress for our company website and it has crashed for no discernible reason. It gives an error message like this: FastCGI Error The FastCGI Handler was unable to process the request. Error ...
0
votes
1answer
653 views

Install php 5.3.10 in ubuntu 12.04

I have been trying to downgrade the php version from php 5.4 to php 5.3. I tried removing php5, purging php5 and then reinstalling using "apt-get install php5=5.3.6-13ubuntu3.6", but it did not help, ...
0
votes
1answer
20 views

Weird stuff in server error log?

I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying? [Thu Jul ...
2
votes
1answer
1k views

apache sendmail: trying to change user “from” address from apache to domain account

I apologize if I am asking a question already answered, but my problem isn't really that I haven't found an answer. I have, in fact, found a half-dozen different "solutions" to my problem, tried them ...
0
votes
1answer
112 views

OpenSSL connection Error called stream_socket_enable_crypto()

in my php coding i have following line which uses by SWIFT MAILER Class if(!stream_socket_enable_crypto($this->smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { return false; } however ...
0
votes
1answer
31 views

php script can't access /tmp folder

I have no open_basedir, php can access /etc /usr /proc /home etc… but not /tmp. tmpfs is mount on /tmp (/tmp type tmpfs (rw)) That's also the reason I want to use the /tmp folder. My files are owned ...
0
votes
1answer
7 views

CentOS 5.5 php-posix with dependency error php53-common

I'm having problems installing php-posix. The problem I have, is that I used epel.repo and now I can't work out how to get past this. I'm not great with Redhat & yum. [root@badelivery ~]# yum ...
0
votes
1answer
658 views

PHP-FPM Pool, Child Processes and Memory Consumption

In my PHP-FPM configuration I have 3 Pools, the eg: Config is: ;;;;;;;;;;;;;;;;;;;;;;; ; Pool 1 ; ;;;;;;;;;;;;;;;;;;;;;;; [www1] user = www group = www listen = /tmp/php-fpm1.sock; ...
1
vote
2answers
55 views

PHP eats up all the memory

Since this morning one of our webserver's memory getting filled up by php which eventually going to cause the server to start swapping, slow down and become unavailable (an ssh login takes like 5 ...
0
votes
1answer
12 views

weird characters being appended to requests

I am running apache2 with php5, wordpress and getting this weird thing where symbols will append to the end of a jqeury request and then quotes on the other pictures. If I clear my cookies it fixes it ...
-1
votes
0answers
10 views

how can i create folder and in that sub folder using php in centOS, am facing folder permission problems [on hold]

how can i create folder and in that sub folders using php in centOS, am facing here folder permission problems. that's why am unable to upload images in my site
-1
votes
1answer
21 views

Bind domain with sub-domains to home server [on hold]

So, I've developed an app in php and it depends on the sub domain to decide the database it connects to. So basically, I would like to know how (and where) can I buy a domain name and how can I make ...
0
votes
1answer
22 views

How to Protect a Folder from Browser access but allow PHP scripts to acess it

So I currently have a folder located at /var/www/pictures, with /var/www being the document root for my web server. I want to have the pictures folder to throw a 403 forbidden error if a user tries to ...
0
votes
0answers
36 views

Nginx PHP index.php rewrite not allowing proxy pass to '/writing'

What I'd like: I want to have the laravel site show unless it's for /writing. In that case I want it to proxy pass anything in that subdirectory to a nodejs site. What happens: The laravel site ...
1
vote
1answer
44 views

PHP code showing on browser

I have searched a few questions here but none of them seem to answer my question. I've been using Apache 2.2.21/PHP 5.3.9 for a while and still works fine. I downloaded and installed Apache 2.4.10/PHP ...
0
votes
2answers
647 views

Apache Server with memcache, varnish and php slow request times

My issue is that these servers are taking rather long for request about 2 seconds on average just to serve files. When we had just one server doing everything it was noticeably faster even with the ...
0
votes
1answer
677 views

nginx - 403 Forbidden

I've trouble to get aliases working correctly on nginx. When i try to access the aliases, /pma and /mba (see secure.example.com.conf), i get a 403 Forbidden but the base url works correctly. I read ...
-3
votes
2answers
36 views

Methods to prevent files from being visible to web? [on hold]

I am testing a simple site in Windows, XAMPP. There, I use some PHP files that must not be accessed directly for security reasons. After looking around, there are many methods to do this. The simplest ...
3
votes
1answer
28 views

Enforce loading of php.ini files from current folder

My goal is to increase the maximum file size for uploads in WordPress. I have followed the steps on this SE answer and this tutorial (except the .htaccess part, because it's runnning nginx and AFAIK ...
0
votes
2answers
35 views

Run multiple instances of apache with PHP5

I am attempting to setup a Dell Poweredge R720 server with OpenSUSE 13.1. I need to run multiple instances of apache (Either 1 install multiple instances or multiple installs with multiple ...
1
vote
1answer
74 views

Server locale C vs en_US.UTF-8

I am considering to change all of my server locale to C by "export LC_ALL=C" Is it a common practice? I am thinking will there be any side effect on a LAMP server, or should I just leave as using ...
0
votes
0answers
12 views

Nginx won't allow specific subdirectory location to be proxy passed [duplicate]

I have a PHP server running my normal website. I'm also trying to run a nodejs site along side it in a specific subdirectory. The PHP site is using laravel so the config points to the public folder ...
1
vote
1answer
649 views

Issue with aborted MySQL connections (error code: 4)

Some of the connections between my application server (Ubuntu, Apache, PHP) and my DB server (Ubuntu, MySQL) are failing with error code 4. According to the documentation error code 4 is: OS error ...
-1
votes
2answers
755 views

PHPMyAdmin throws an open_basedir error when using eaccelerator

I guess the PHPMyAdmin code is getting confused by eaccelerator. This is the error I get: Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s): ...
1
vote
2answers
14k views

How do I enable the IMAP functions in PHP?

I have a LAMP box running Ubuntu, Apache 2 and PHP5 with Slicehost. I'm a bit new to all this sysadmin stuff (I'm primarily a web developer). I need to use the IMAP functions in PHP, but they don't ...
0
votes
1answer
829 views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
0
votes
1answer
31 views

Migrating a server from Apache to Nginx - how is my request handled?

I'm trying to migrate a service from a server to another. It's a simple php app. On the first server (Apache) I could request a JSON in the following way: ...
-1
votes
0answers
17 views

How to auto recover server, Memory exhausted, Connection reset by peer: mod_fcgid

I've got a mySQL / PHP script eating all the memory and crashing a VPS. After the memory error, every request results in (104)Connection reset by peer: mod_fcgid: After restarting the server, it's ...
2
votes
2answers
80 views

Cant install php-posix on CentOS 6

I'm trying to install php-posix on CentOS 6, with no luck: $ yum install php-posix Getting the following error: Loaded plugins: downloadonly, fastestmirror Loading mirror speeds from cached ...
0
votes
1answer
731 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
1answer
919 views

Equivalent of PHP setlocale in an APACHE config file

I need to display a date in french locale. A solution is to use setlocale(LC_TIME, 'fr_FR'); But I'm looking to set the locale directly in the configuration of my apache server. In the ...
-1
votes
1answer
19 views

cache images that has been resized with php [on hold]

URL of the image is like this resize.php?image=imagename.jpg&w=100&h=100 and I want to cache the result in RAM. Can APC of php do it? how? Or I must install something else?
0
votes
1answer
31 views

Is there anyway to find what php scripts consume more resources

I want to easily find load cause, Is there a way to display resource usage for php scripts like this. Cpu: index.php 30% something.php 10% ... memory: index.php 50% something.php 10% ..
0
votes
1answer
27 views

500 error on fresh install of IIS and PHP

When attempting to run a PHP file on Windows server 2012 and IIS, I keep getting a 500 error. I cannot find any detaild logs or anything. However, when going to PHP Manager for IIS and click check ...
1
vote
4answers
6k views

Trouble installing php memcache extension

I'm trying to install memcache on MAMP but I get the warning below, and when I continue it seems to complete properly. I add the line extension=memcache.so to the php.ini and restart MAMP but ...
0
votes
1answer
29 views

VirtualHost Server Not Found

After modifying the httpd.conf to include my virtual host configuration: Include /private/etc/apache2/extra/httpd-vhosts.conf, I added the following to my virtual host configuration file: # # ...
0
votes
1answer
124 views

Strange POST request to server in apache log

I have been seeing this all day in my apache access log: 213.55.105.126 - - [19/Jul/2014:18:39:24 +0000] "POST /xmlrpc.php HTTP/1.1" 503 2539 "-" "-" they are continuously coming in. different IP ...
0
votes
0answers
11 views

XMLRPC.PHP file on Wordpress DDoS attack [duplicate]

Getting TONS of these in apache access log: 41.99.38.36 - - [19/Jul/2014:20:58:15 +0000] "POST /xmlrpc.php HTTP/1.1" 403 436 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)" I ...
0
votes
2answers
23 views

phpymyadmin - Unable to load dynamic library 'ext\php_interbase.dll'

I am installing phpMyAdmin (4.2.3) on Windows 2008 R2, with IIS7, PHP 5.5.12 and get the error "PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not ...
-1
votes
2answers
35 views

How to run multiple PHP apps on a single LAMP instance

I am running a single PHP app on a single EC2 instance with LAMP setup. I have pointed my domain to the elastic IP. So currently if I web browse to the elastic IP or the domain, it directly opens my ...
0
votes
2answers
79 views

Recieving a 500 Internal Server error after login success? [closed]

Having issues creating login for website: PHP: mysql_connect($db_host, $db_username, $db_password) or die(mysql_error()); mysql_select_db($db_database) or die(mysql_error()); ...
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 ...
9
votes
4answers
16k views

Connecting to MySQL from PHP is extremely slow

I just did a fresh install of XAMPP. When first opening PHPMyAdmin I noticed it was extremely slow. It didn't make sense that on localhost it should take almost 5 seconds for every page to open. I ...
2
votes
2answers
1k views

Apache 2.2 + mod_fcgid + PHP 5.4: (104) Connection reset by peer

On a Debian 6 VPS, I'm running PHP 5.4 via mod_fcgid on a couple of different virtual hosts, managed by Virtualmin GPL. At random, I get 500 Internal Server Errors; restarting Apache brings everything ...
2
votes
4answers
6k views

Recommended method to upgrade PHP 5.1.6 to 5.2.x on CentOS 5.4

It's been awhile since this type of question was asked here. Perhaps the recommended solution has changed. I have a CentOS 5.4 mail server running RoundCube webmail. By default, RoundCube expects PHP ...
1
vote
1answer
673 views

PHP-FPM doesn't process php request

I have a strange situation, I have installed lighttpd and php5-fpm through aptitude I've created one vhost and the and the fpm pool. This is the main.conf (global FPM) [global] pid = ...