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
votes
0answers
8 views

nginx after one or 2 Hour error

my site is joomla and i config windows server 2008 r2 to mysql php and nginx it work ok but after 1 or 2 hour suddenly show error page?! this is my configuration: worker_processes 32; events { ...
0
votes
0answers
3 views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => ...
0
votes
0answers
8 views

How to enable file sharing in localhost (xampp) by configuring apache? [on hold]

I am currently working on a project and I need to share it to my co-worker.She's the one who make on the script side and I am on the web side. What we need to do is , we need to share the website ...
-1
votes
1answer
12 views

Wordpress access forbidden for newly uploaded files on plesk 12

I have issues with wordpress rights on plesk 12 (with nginx default setting) and not fully understanding why right now. Anyhow finally I'm now totally confused what the right permissions have to be? ...
1
vote
3answers
3k views

When is PHP 5.4 end of life?

PHP 5.6 stable was released on 28 Aug. 2014. When is PHP 5.4 end-of-life date? I couldn't find anything about it in PHP website. It is important to me because I have to decide whether I have to ...
0
votes
1answer
47 views

PHP-FPM output errors to be handled by php application with nginx

I'm having difficulty setting up a docker container with phpfpm to defer error handling to my php application. Any fatal exceptions are being processed by the xdebug stack trace ...
0
votes
0answers
7 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
1answer
2k views

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.(while selecting multiple columns)

am using apache 2.2.i have written this code when am trying to run it my browser is failing to run it ,it's showing This webpage is not available The connection to localhost was interrupted. Error ...
0
votes
1answer
19 views

Error installing php-devel 5.5 CentOS 6

I am trying to run pecl install couchbase but am having trouble with php-devel and its dependencies. When I try to run yum --enablerepo=remi-php55 install php-devel I get the following error. My ...
0
votes
3answers
2k views

Cannot perform a PECL installation

I have been trying to do a few PECL installations, but all of them return the same type of error. Something related to timezones? Im running RedHat x86_64 es5. Attempting to install geoip-1.0.7: ...
1
vote
1answer
893 views

Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)

Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions. At peak traffic times we're getting Apache ...
7
votes
3answers
995 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
38 views

php-fpm does not work me exec or shell_exec

I have OpenBSD 5.6 and php-fpm, nginx. Is chrooted by default on /var/www I try:(test.php) <?php if(function_exists('exec')) { echo "exec is enabled"; }else{ // it's not echo "exec is ...
3
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 ...
0
votes
0answers
6 views

System's hardware requirements for Symfony2 [duplicate]

I have this web-blog I'm willing to deploy online. I have yet no idea what kind of hosting I should get. I'm sure shared-hosting is not one of them as SSH access is not possible. If I'm getting a ...
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
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
0
votes
1answer
28 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
2
votes
1answer
316 views

apache error document displaying urlencoded characters wrong

If I request a page like http://url/T%C3%A4st (http://url/Täst) my Apache-Error Pages display with a wrong encoding, for example: The requested URL /Täst was not found on this server. ...
0
votes
1answer
23 views

Dynamically modify DNS to add a subdomain

Is there a way to modify a domains DNS using PHP for example. I am not quite sure how a company can be in charge of a domains DNS (Can I be?) What processes do GoDaddy (for example) go through when ...
2
votes
8answers
11k 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 ...
0
votes
3answers
433 views

yum install php-devel amongst other commands returning problems

I run yum install php-devel and it returns this. Typically I'd just run it with --skip-broken, but when I do, it still doesn't do the trick. Available: php-common-5.3.3-22.el6.x86_64 ...
1
vote
1answer
567 views

nginx - deny all *.php requests except index.php for security reasons

os: CentOS 7 nginx: 1.6.2 httpd: apache 2.4.6 cms: Drupal 7 After my server was compromised I removed all from server, reinstalled OS and soft, and restored data from backup. Now I configure all ...
0
votes
1answer
901 views

How to configure sendmail properly with PHP on EC2 (no SES)?

I have been struggling with sendmail for couple of days with no luck. I am trying to setup relay host, after following the answers in this question ...
0
votes
1answer
20 views

PHP CLI Add value to $_SERVER

I know I can add a custom value to the $_SERVER variable through Nginx with fastcgi_param MY_VARIABLE "myValue"; Is it possible to add the same variable to PHP CLI $_SERVER? This would be used ...
1
vote
1answer
20 views

Roundcube MySQL/session issues, “no valid session data found”

So Roundcube is connected to MySQL fine, and is running queries. However, whenever I login, I get a "Your session was invalid or expired." error. From some PHP debugging, I think it has something to ...
0
votes
5answers
2k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
1
vote
2answers
1k views

How to install php cli with pnctl alongside Zend Server

I have Zend Server CE 5.6 with PHP 5.2 running on Ubuntu 11.10. Now the need has arisen to run a command line PHP script that uses PHP's pnctl functionality. First of all, I had no PHP command line ...
1
vote
1answer
2k 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. ...
-1
votes
0answers
17 views

What is the best way to run PHP script every 30 seconds? [duplicate]

I have kind of a special requirement that is, I'm using a Raspberry Pi 2 B device to feed some data to a mysql database in a cloud serve. So I have installed LAMP stack on raspberry pi and config my ...
1
vote
2answers
33 views

How to upgrade PHP 5.4 to PHP 5.6 on Debian GNU/Linux 7 (wheezy)

I've added these lines to /etc/apt/sources.list deb http://packages.dotdeb.org wheezy-php56 all deb-src http://packages.dotdeb.org wheezy-php56 all But still sudo apt-get update or sudo apt-get ...
0
votes
2answers
258 views

how limit php script to access parent host directory

I've a debian linux server with apache2.2 & php5 installed. I've created many virtual hosts on my apache server, each virtual host has a separate root directory & php is enabled for all of ...
0
votes
1answer
13 views

cifs shared mount on linux doesn't read folder

I have CIFS share from EMC storage which is mounted on Linux and also on other windows & mac machines. At Linux server, CIFS share mounted with mount.cifs. My linux server has php code running on ...
-5
votes
2answers
32 views

Why isnt this sudoer command run as root? [closed]

I want to give PHP access to a very specific script using a configuration under /etc/sudoers.d. So I did the following: visudo -f /etc/sudoers.d/99-php And entered this sudo rule: www-data ALL = ...
1
vote
1answer
14 views

What is the best way to run unoconv in php on debian server?

I have a php script in which I need to convert doc documents to html files in order to show them in a web page. I'm doing the conversion with the php command: exec ( $Command, $Output, ...
1
vote
1answer
150 views

Segmentation fault (11) on PHP website

I have recently moved a clients WordPress site to a new server. His old 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 ...
0
votes
2answers
1k views

Unable to install Wordpress on Amazon's EC2 instance due to missing php-mbstring

I've created a new instance on Amazon's EC2 and I'm trying in wordpress and it's failing due to php-mbstring: # yum install wordpress Loaded plugins: amazon-id, rhui-lb Resolving Dependencies --> ...
10
votes
5answers
52k 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
3answers
5k views

Safely update php 5.3.3 to >=5.3.4 on centos 6

Would the following works fine without any issues? I have apc cache installed, the other packages the usual php configuration. yum update php would that be enough? it is an active server, so want ...
-4
votes
1answer
56 views

updating php red hat [closed]

I am trying to install PHP MVC framework Symfony. When I go to the check requirements page it says that I have to update my php to version 5.3.17+. I have an VPS with RedHat. I am totally new in ...
-1
votes
4answers
80 views

Upgrading php in Linux

I am running a Redhat on a webserver. The current version of php on the server is 5.1.6. I want to upgrade it to 5.3.8 so I downloaded php and compiled it and replaced the older php binary with the ...
0
votes
1answer
257 views

Upgrading to PHP 5.6.7 using remi repos

I have PHP 5.6 enabled in my remi.repo file and none of the other sections are enabled the only other section enabled is [remi] itself. [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch ...
-1
votes
1answer
99 views

Is PHP used for quick and easy websites where other languages are used in more complex websites? [closed]

This stat shows that PHP is used by 75.2% of all the websites whose server-side programming language we know. http://w3techs.com/technologies/overview/programming_language/all And this page shows ...
-1
votes
0answers
27 views

PHP-GD not working as needed? [closed]

I use a text generator for my headers on my website which uses php-gd and its image library. I have installed php-gd and its library on my VPS that's using CentOS 6.5 and a LAMP stack with PHP 5.6.9. ...
-2
votes
0answers
30 views

Why _SERVER[“SERVER_SOFTWARE”] becomes blank after certain period?

I'm running PHP 5.4.38 + Apache 2.2.29 on Windows Server 2012. When Starting up Apache, phpinfo shows me SERVER_SOFTWARE which looks correct: Apache/2.2.29 (Win32) mod_ssl/2.2.29 OpenSSL/1.0.1l ...
0
votes
1answer
1k views

How to install pecl spidermonkey on CentOS 6

Running the following command: > sudo pecl install spidermonkey I receive the following error: ... ... a bunch of successful checks ... ... checking whether to enable spidermonkey support... ...
1
vote
2answers
1k views

Horrible PHP/MySQL Query Performance On Ubuntu Server 10.04

I just did a clear install of Ubuntu Server 10.04 with the standard LAMP config.. Then I made a small script to test insert speeds into a table with 3 columns. When I run the script on any of my ...
0
votes
1answer
17 views

MySQL process in Sleep command and page is loading after 1 minute

I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx. I have an app built in ZF1 which works fine on all my development computers but on this server the application ...
-3
votes
0answers
14 views

Unattended solution for installing postrate? [closed]

i need unattended solution for installing postrate I want to install postgre through bat file on single click in window system. I don't want to put and login cridetial on command prompt that should ...
0
votes
2answers
151 views

OpenBSD Nginx/PHP/MariaDB/PHP-FPM Stack

I have a minimal OpenBSD 5.7 amd64 install in VMware where I have installed matching versions of PHP and PHP-FPM, plus nginx, and mariadb using pkg_add. I configure all the services, and get nginx to ...