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
1answer
2k views

All PHP sites stopped working on IIS7, internal server error 500

I installed multiple drupal 7 sites using the Web Platform Installer on Windows Server 2008. Until know they worked without any problems, but recently internal server error 500 started to show up ...
2
votes
1answer
52 views
+50

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
1answer
17 views

IIS | Block execution of files in directory

I am dealing with user uploads via a PHP application. I want to secure the server so no exploits are available to the user, such as uploading a php shell and executing it. I have set it so all ...
0
votes
3answers
307 views

Bundling tidy-html5 with PHP?

I want to setup the W3C fork of HTMLTidy (tidy-html5) as a PHP extension. I had installed the normal php/tidy extension using the php5-tidy package. I then downloaded the Git repository, and ran the ...
0
votes
1answer
14 views

Debugging inconsistent PHPUnit behaviour on different systems

This question has been originally asked in Stackoverflow but then I decided it might fit Serverfault better so I moved it here. I am trying to rearrange my Jenkins projects by moving some of them to ...
0
votes
2answers
5k views

ISPConfig shows the 403 forbidden [on hold]

That's what i receive when opening the browser Forbidden You don't have permission to access / on this server. and there is nothing meaningful in the logs " 403 179 "-" "Mozilla/5.0 ...
8
votes
4answers
329 views

Paranoid Sysadmin -vs- Out-of-Date PHP version

How can a paranoid sysadmin confidently stay up-to-date with the latest stable PHP versions? (security fixes have been coming in pretty regularly). This is a Production server, and so "breaking ...
4
votes
3answers
847 views

.htaccess redirect all extension to php

I recently updated my .htaccess file to hide the .php extension of the urls. It works nice, when I try to reach domain.com/index, it displays the php file. When I type domain.com/index.php it ...
0
votes
0answers
7 views

lp printing crossdomain on local printer

How can files located on web server (.png or .pdf) be printed on local printer ? I have a DYMO LabelWriter 450 attached to a local POS sytem, running LAMP / Debian wheezy. Currently product labels ...
0
votes
0answers
18 views

PHP error reporting without notices

I have been trying to set up php.ini file for error reporting. I wanted for my log file to show everything except notices. Referring to my researches, solution was to use this command: ...
-1
votes
1answer
84 views

Multiple versions of PHP through nginx

EDIT: For future reference Multiple versions of PHP through nginx Nginx and different versions of PHP FPM + PHP I am running Ubuntu 14.10 with a LEMP stack using PHP 5.5.12. I have a number of ...
1
vote
0answers
22 views

End of script output before headers: php5

I've inherited the sysadmin role on a server that's running a wordpress website on top of Apache 2.4/Debian. It almost works, but it is issuing "500 internal server error" from time to time. In my ...
-1
votes
2answers
11 views

Symlink in crontab, script not found [duplicate]

I'm running Debian testing and can't get a simple cron to run a symlinked PHP script. I've a php script in a subdirectory in my home folder /home/foobar/dir/script.php (which starts with the ...
1
vote
2answers
1k views

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so'

I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: ...
0
votes
1answer
31 views

Public and Private keys incorrect for user

I've followed this tutorial (which worked for me on several VPS's) to configure a secure way to install and update themes and plugins in Wordpress. Basically: sudo adduser wp-user cd /var/www sudo ...
0
votes
0answers
17 views

secure cookie in Apache => php session resets on every page load

I have set secure cookie in Apache based on this tutorial. But php session resets on every page load. for example this sample code: <?php session_start(); echo session_id(); ?> displays ...
-1
votes
0answers
21 views

Web Socket server using up extreme amounts of RAM

I am using this web sockets server from google https://code.google.com/p/phpwebsocket/ The default maximum frame size is 100000 bytes. When I send a ~100kb message and issue a peak memory command I ...
0
votes
1answer
1k views

Unable to install phpMyAdmin via yum (remi)

I'm trying to install phpMyAdmin via remi and it seems like it's missing php-php-gettext: # yum --enablerepo=remi install phpMyAdmin Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
-3
votes
0answers
23 views

Error while installing PostgreSQL PHP PDO driver, at running ./configure

I have found a tutorial, installing PostgreSQL's PDO driver on PHP. I couldn't do without a tutorial, because yum and other repo's couldn't find required pdo packages. It starts with wget ...
0
votes
0answers
8 views

Run php as CGI with Apache 2.4 on Debian returns not found error

I am trying to run php build from source as CGI. I've added this to apache config ScriptAlias /cgi-bin/ /usr/share/php54/bin/ AddHandler handle .php Action handle /cgi-bin/php-cgi virtual ...
-1
votes
0answers
14 views

Sending large amount of requests each month [on hold]

My server app needs to request a large amount of pages each month, process those pages and write results to DB. As it stands now it needs to request about 25 000 pages. Practically all of these are ...
-1
votes
0answers
14 views

openshift php script not able to write files.

I want to install contao on openshift, but the install script stops and the check script shows error on php writing files: http://spahn-pointout.rhcloud.com/check/ All php-fles have 600 and orders 700 ...
1
vote
1answer
45 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
4
votes
2answers
1k views

Apache/2.2.20 (Ubuntu 11.10) gzip compression won't work on php pages, content is chunked

I'm running into a problem with a new production server whereto I'm transferring projects. The HTML output of the PHP applications isn't compressed by the Apache mod_deflate module. Other resources, ...
0
votes
0answers
9 views

open_basedir in different apache vhosts

Just playing around with open_basedir settings in some Apache vhosts. I created two identical vhosts for testing with differing ServerNames. Only one of that vhosts contains the open_basedir ...
2
votes
1answer
24 views

Limit the total memory usage of PHP-FPM

I'm running PHP-FPM on my Debian servers. My question is about the memory usage. I can only set the memory_limit inside PHP, and that shouldn't be too low for some requests. I also can only set the ...
16
votes
3answers
3k views

Why not use a WAMP stack?

I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql and php separately. I don't understand why they have suggested ...
0
votes
0answers
16 views

AVG Antivirus causes slow PHP response time

My PHP website has suffered from really slow response times, and after a long research I finally found out the culprit is AVG Antivirus installed on the web server. The website is running on IIS 7.5 ...
11
votes
3answers
46k views

How to check my PHP and MySQL version on Ubuntu VPS?

HI I am going to install MyBB but I am not sure whether I have installed the correct version of PHP and MySQL. PHP version 5.1.0 or above with XML Extension installed MySQL version 4.0 or ...
-1
votes
0answers
6 views

Zend OpCache active but [closed]

I installed php-fpm and Opcache on my new server. When I do php -v : PHP 5.4.36-0+deb7u3 (cli) (built: Jan 9 2015 08:07:06) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) ...
0
votes
2answers
486 views

Having issues enabling short_open_tag for PHP

First, yes I know I shouldn't use short tags, but they are all through the project I'm currently working on, and I just need it to work. I have enabled short_open_tag in /etc/php.ini and restarted ...
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
0answers
10 views

PHP session handler using redis not work

I was sets 3 servers : 192.168.7.147:6379 <-- redis server 192.168.7.162 <-- web server 1 (using phpredis, with local devdomain jttest.com ) 192.168.7.218 <-- web server 1 (using phpredis, ...
0
votes
4answers
4k views

Magento Apache Config & Memory Issues

I have a Magento installation on a VPS that is giving me a headache. This particular VPS has a reasonable spec - 2gb Memory and 50gb storage. It runs a single domain, with a single Magento install - ...
0
votes
1answer
2k views

Plesk, default php.ini? [closed]

I can easly change and custom all php.ini-s for each domain, however, i don't know how to customize the core one? I want to be able to limit some settings globally but i don't know which php.ini is ...
0
votes
1answer
4k views

safe_mode problems after upgrade from PHP 5.3 to 5.4 with Plesk 11 [closed]

I just updated my server (running with Plesk 11) from PHP 5.3 to 5.4 via the dotdeb sources. Everything was fine except a few things. I had to disable all safe_modes in several vhosts. Plesk has the ...
0
votes
1answer
1k views

umask for www-data user running PHP on Ubuntu

Setting up a new webserver in Ubuntu 14.04 and trying to wrangle file permissions for PHP generated files. By default, all the directories and files in /var/www are owned/grouped to www-admin. ...
0
votes
0answers
15 views

PHPPGAdmin on Windows - authenticate users against Active Directory

I installed PHP, Apache 2.4, and PostgreSQL 9.4.1 on Windows machine which belongs to Windows domain. My pg_hba.conf: hostnossl all postgres 127.0.0.1/32 md5 hostnossl all all ...
1
vote
1answer
911 views

php set_time_limit not working with mod_fcgid?

It seems set_time_limit function call has no effect when php is running with mod_fcgid (the default in webmin). Can someone tell me how to make it work?
-2
votes
0answers
20 views

Website shows only info.php [closed]

My webpage www.wohnungsengel.de shows since today only a blank site saying only info.php. I didn't change anything so now I am pretty confused what could be the reason for this. Any idea on what could ...
0
votes
2answers
40 views

What happens when you update PHP while your server is running?

I'm serving files with Apache and PHP-FPM via FCGI. When I run yum update on a live server, what happens when PHP gets updated? I can imagine three scenarios: php-fpm is stopped, then restarted ...
-2
votes
1answer
39 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
5answers
4k views

How can i find out why my php5-fpm failed to start?

i get 504 gateway timeout when i try to reach my server a small check didn't find any logs on php5-fpm logs, but just to make sure, i tried to restart it. when i'm trying to restart it: sudo service ...
0
votes
1answer
13 views

WordPress permalinks are not working

I am having a problem with WordPress permalink redirects not working correctly. I was able to specify the permalink convension through settings interface. WordPress properly names hyperlink. However, ...
0
votes
1answer
72 views

Wordpress mu 404 with LEMP stack + Ispconfig3 [closed]

I have a Centos dedicated server with Nginx, PHP-FPM and ISPConfig3 as control panel I installed Wordpress in a sub-domain and enabled Wordpress mu : ex.domain.com I added the following rules in ...
2
votes
2answers
2k 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
2k views

Scheduled Task issue - /usr/bin/php/: No such file or directory [closed]

Can't get it working, I want to set up a cron job for a domain user in plesk 11.5, but seems that there's a problem to find the php executable. The command is: /usr/bin/php/ -f ...
0
votes
0answers
106 views

Server load spikes after yum update and Laravel installation [closed]

The Platform: Centos 6.3 PHP 5.4.30 Apache 2.2.15 mysql Ver 14.14 Distrib 5.5.37, for Linux (x86_64) using readline 5.1 4 CPUs 12 GB RAM 1TB Hard Disk Prefork Settings for Apache <IfModule ...
0
votes
1answer
627 views

Is it safe/how to update php (5.3.9)? centos (6.5 final) & parallels plesk panel (11.5.30 Update #47) [closed]

I have my own server that is running: php (5.3.3), centos (6.5 final) & parallels plesk panel (11.5.30 Update #47). This server has customers with subscriptions in plesk and their domains set ...
1
vote
1answer
571 views

Showing outdated information when using WAMP as local server [duplicate]

I am running WAMP as a local server for the computers in the my network. The problem is that when I try to do any operations to the database from these computers, it seems as if they don't happen, ...