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
4answers
1k views

PHP script times out earlier than max_execution_time

I am testing a page generated by a script that performs some operations and redirects to another script. It times out at ~ 60 seconds although the max_execution_time is set to 300. Other revelant ...
0
votes
0answers
22 views

SPDY & Nginx upload issues

I have this setting: an Nginx server with php-fpm and the http://blueimp.github.io/jQuery-File-Upload/ When I try to upload a file after about 10MB it fails. This happens when SPDY is activated. ...
0
votes
1answer
715 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
0answers
28 views

PHP upgrade always breaks session folder permissions

Every time I upgrade php (via yum upgrade) on my CentOS box, my /var/lib/session folder ownership becomes root:apache with 600 permissions. I use nginx as my web server. This breaks my site and ...
0
votes
0answers
20 views

Cannot enter “Umlaute” on php console

I do have a problem with german "umlaute" on the console. Whereas I have no problem entering them on the bash console, it is a problem on the php console PHP is all set to UTF-8 ...
0
votes
0answers
10 views

does “Filesmatch” provide the same protection as “open_basedir”

Does using Filematch in my apache virtual host config provide the same benefits as open_basedir (php)? I was originally trying to use open_basedir for something along the lines of ...
0
votes
2answers
69 views

Should i separate MYSQL from PHP and NODE JS to another server

I am a PHP Programmer and working on community website. I am using Apache NodeJS Php and Mysql on server: 24GB RAM Intel i7 950 8Cores 8Threads 3.06GHz, 120GB SSD HDD 12GB SWAP (dedicated server) OS: ...
1
vote
2answers
66 views

How to upgrade PHP version without any downtime?

Is it possible to upgrade the version of PHP running on my server without any significant downtime? What I want to avoid is my sites being down for minutes (or longer if something goes wrong) while I ...
0
votes
0answers
48 views

Unable to install Phpmyadmin on Centos 5, missing dependency php-common

I keep getting this error when trying to install Phpmyadmin: Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package phpMyAdmin.noarch 0:2.11.11.3-2.el5 set ...
0
votes
2answers
28 views

Diabling Symfony2 sessions files

I'm looking for a way to disable the file saving of PHP sessions. (I do not need sessions in my application) I tried to set save_path = NULL, but it only set it to the default path (/tmp). Is there ...
0
votes
1answer
61 views

order of operations for environment variables

I want to understand how environment variables are set and reset (overridden). I'm running Apache/2.2.24 (Unix) PHP/5.4.14 on a mac . My theory is this: Environment vars can be set in bash, then they ...
0
votes
1answer
24 views

Configuration: DNS or Apache

I have the following problem. I have two domains: www.domain1.de and www.domain2.de I also have path is on Jelastic server where to find my PHP page myphpsite.jelastic.dogado.eu. Now I wanted to do ...
1
vote
1answer
44 views

php-fpm process running when using mod_php

I've been having some out of memory issues. Pretty much there after tuning Apache but I have noticed something odd when analyzing memory usage. php-fpm is running in the background when, as far as I ...
3
votes
2answers
248 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
19 views

Nginx rewrite and 50x.html

I'm trying to set up a website where writing for example /users/add redirects me to /index.php?table=users&action=add I wrote the following rules: rewrite ^/(.+)/(.+)/$ ...
-1
votes
0answers
10 views

Centos error package installing php5w [duplicate]

--> Finished Dependency Resolution Error: Package: php54w-5.4.25-1.w6.x86_64 (webtatic) Requires: libssl.so.10(libssl.so.10)(64bit) Error: Package: php54w-cli-5.4.25-1.w6.x86_64 ...
0
votes
0answers
21 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 ...
0
votes
1answer
37 views

Installing Ioncube on CentOS

I am trying to install Ioncube on one of my VPSs.Just a little background. This is a CentOS latest, running on an ESXi latest host. The machine has 2GB memory. I ran php-based loader wizard. I'm ...
2
votes
1answer
122 views

How to add content to all pages in a mediawiki?

TL;DR: How do I add a text (notice) to the content (not a header or global template) of every page? (very) long question with background: I'm planning to migrate a MediaWiki over to another wiki. The ...
0
votes
1answer
127 views

why isn't laravel's php artisan serve server being accessible from the WWW on IIS

I have a laravel application running through the laravel artisan server: php artisan serve and it works just fine if I go on my localhost:8000.. Further, I added an inbound rule in the IIS server ...
7
votes
2answers
13k 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 ...
9
votes
5answers
42k views

How to install mcrypt for PHP 5.3.3 on CentOS 5.7 64 bit?

I installed php 5.3 and some modules using yum install php53-{module-name} But mcrypt did not work. I searched like this: yum list php* | grep mcry The only package that came up was ...
-3
votes
1answer
45 views

Horde Groupware in Synology [closed]

Need information to install Horde on Synology. I heard there is a Horde package for Synology, Can someone help me find the link. I am new and tried in many ways to find it myself before asking. Thank ...
1
vote
0answers
28 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
0
votes
2answers
87 views

How do I remove 1 line of code from PHP files containing a specific string? [duplicate]

By coincidence I noticed that quite some of the PHP files of the sites I host have had malware injected: They all have the following line before the original/correct code: <?php ...
0
votes
3answers
5k views

HTTP Error: 413 Request Entity Too Large

What I have: I have an iPhone app that sends HTTP POST requests (XML format) to a web service written in PHP. This is on a hosted virtual private server so I can edit httpd.conf and other ...
3
votes
2answers
328 views

Loopback connection via PHP's getimage size crashes server (Magento's CMS)

We were able to trace down a problem that is crashing our NGINX server running Magento until the following point: Background info: Magento Backend has a CMS function with a WYSIWYG editor. This ...
0
votes
5answers
194 views

How to run su from PHP launched on Apache? [closed]

I tried to run su command with PHP shell_exec function. At first I tried: <?php echo(shell_exec('echo \'password\' | su user -c \'whoami\' 2>&1;')); ?> and I got: su: must be run from ...
0
votes
0answers
17 views

Issue during long server requests, Apache, PHP, Cpanel

I have a cloud server hosted at Rackspace with cPanel installed on it. I have only one PHP app hosted on this machine. I've noticed that when I'm uploading a large file or executing a request that ...
6
votes
2answers
2k views

Php pdo_dblib - cannot find/unable to load freetds

Self-hosted box, RHEL 6 PHP 5.3.3 PDO installed freetds installed pdo_dblib - so far no luck installing My goal is to use PDO with sybase. Attempting to install pdo_dblib from the appropriate ...
0
votes
0answers
29 views

Using memcached in php.ini is ignoring gc_maxlifetime?

Using php-fastcgi with session.save_handler = memcached and session.gc_maxlifetime = 1440, my sessions are never expiring. Memcached Cache is running full and then starting to evict old items after a ...
0
votes
0answers
23 views

nginx wont cache images when they are read through php files

i have .php file wich is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
0
votes
0answers
24 views

Email not getting sent through the script on vps parallels

We have a web site hosted on the vps parallels server and we are trying to send mail to the email id which is hosted on godaddys email plan xyz@ourdomain.com , but we are unable to send mail through ...
1
vote
0answers
17 views

include_path not working in httpd.conf

I have a virtual host set in httpd.conf. The virtual host resolves properly, but it is ignoring my php_include path directive: php_value include_path .:/var/www/xxx/library/ The path works, I ...
0
votes
1answer
270 views

Magento Error 404 after moving from Apache to nginX

I moved my magento store from Server "A" which was on Apache to Server "B" running NginX. Copied all files and folders, Exported and Imported the SQL DB, Altered the local.xml file with the new DB ...
1
vote
1answer
24 views

Is multiple php5-fpm processes normal

I'm running several wordpress sites in a LEMP (Ubuntu Linux, Nginx, MySQL, PHP) stack. Looking at the running processes I can see there are two php5-fpm processes. Is this normal or have I done ...
1
vote
3answers
2k views

pecl_http extension not loading

For some reason pecl_http extension is not showing up in my test.php file with contains: <?php phpinfo(); ?> I just installed pecl_http using: pecl install pecl_http The install was ...
1
vote
1answer
60 views

What does “u” in an rpm filename stand for?

I currently have PHP 5.4 installed. These packages are all prefixed with "php54-" (pecl, pear, pdo, fpm, gd, mysql, etc). I'd like to make the transition to 5.5. The packages are available... ...
0
votes
1answer
40 views

Alias doesn't work in script with #!/usr/bin/env php

I've some PHP scripts which are starting with #!/usr/bin/env php. The default interpreter is PHP 4.4, but the scripts need PHP 5.3, so I created an alias in ~/.bashrc: alias ...
0
votes
0answers
13 views

How do you setup a solid CRON job for a PHP process? [duplicate]

After lots of googling I have come up with something like the following to execute a PHP process every hour. However, it doesn't seem to work and there doesn't appear to be any errors in the syslog or ...
1
vote
1answer
48 views

child pid 29281 exit signal Segmentation fault (11)

I have recently moved a clients WordPress site to a new server. His server was pretty outdated. It is the only site on the server. It's been a few weeks and I randomly get these errors in the php ...
1
vote
1answer
59 views

WT-NMP - PHP-CGI randomly stops running with no error log

We have recently installed WT-NMP and are currently running Php-Cgi with php 5.4.24. We are running fairly simple php scripts and when testing everything is running fine. Over the weekend we wanted ...
0
votes
0answers
23 views

Webroot directory separation for Apache: suPHP or suEXEC ?

I've been reading a lot about directory permission setup under apache 2.4. Basically I am running a small number of clients with PHP apps on my dedicated Ubuntu (php 5.5.3 + apache 2.4). I know that ...
2
votes
1answer
38 views

PHP 5.3 Apache 2.2 MySQL 5.5 Drupal 6

We are running Drupal 6.26, PHP 5.3 on Apache 2.2 mysql5.5. The Prod webserver has loadbalancer running with two PROD appservers. The Prod Webserver went down with httpd.exe using 100% CPU. Below is ...
0
votes
1answer
40 views

nginx php-fpm random/temperamental “No input file specified” error

I've got a page, I'm not using redirects, just going directly to /invite/index.php?code=f13dc6c9be in the browser and it serves up about 50% of the time. The rest of the time the browser displays "No ...
0
votes
1answer
23 views

APC Memory Pool and Apache Problems

i have a problem with my APC and Apache. Since i have been installed APC on my VPS, i face to many problems. Here is one of them. My Apache keeps falling down, server port :80 is available, but its ...
3
votes
2answers
2k views

cPanel on CentOS: PHP with ZIP?

I've been tasked with a project to install PHP 5.2.x so that it has the ZIP extension onto a CentOS server that is already running PHP via cPanel / Easy Apache. Apparently cPanel's version of PHP ...
0
votes
0answers
10 views

Huge Response Time On Uploads

After i updated my Apache from 2.2 to 2.4 i started to have a huge response time only on HTTP Posts with uploads on HTTP GET or HTTP normal POST all great i don't no what happen the only thing i'm ...
0
votes
0answers
38 views

php exec failing cpanel

I'm using unoconv to convert documents to PDF via a php script. When I call the script from the browser, the script outputs the following (and fails): array(11) { [0]=> string(48) "Office base ...
0
votes
1answer
225 views

connect() failed (111: Connection refused) while connecting to upstream, client

I get this error message in my log : *329 connect() failed (111: Connection refused) while connecting to upstream, client: 37.24.154.207, server: domain.de, request: "POST /wp-admin/admin-ajax.php ...