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
0answers
19 views

Apache process hang and 100% CPU usage

I have strange problem with Apache (MPM Prefork) and mod_php. Server is running for some time and after random time few process is hang and using 100% CPU. 1741 fileu 20 0 840m 65m 41m R 100.0 ...
0
votes
0answers
24 views

Bus error during PHP5 is running a simple script - what?

When working with PHP scripts, I usually do not have to bother with the underlying system. Today, I have to. A PHP script (cronjob) that has worked fine is crashing since 2 days ago. The cronjob mail ...
3
votes
4answers
1k views

Allow PHP to write file without 777

I am setting up a simple website on webspace provided by my university. I do not have database access so I am storing all the data in a flat file. The issue I am experiencing is related to file ...
-3
votes
0answers
14 views

Cannot connect to ip. Error 110. Connection timed out [on hold]

i am using ssh-crack to check if ip and password is right or not , i get below error : Cannot connect to ip Error 110. Connection timed out. i am running code on linux apache shared hosting
-2
votes
0answers
12 views

HHVM stops logging [on hold]

We are trying out hhvm (with nginx) for a production website, because one customer really wanted to try it, and of course you do what customers want :) Basically it works great, even though i ...
1
vote
1answer
937 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?
0
votes
3answers
6k views

Trouble installing php memcache extension [on hold]

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

php process eating CPU since October

Just noticed that my server CPU is being eaten by php at a regular rate of 50-60%. Worse, this is happening since last October but I can't really remember what I did then to cause. The CPU graph for ...
0
votes
0answers
6 views

Suhosin - Disable shell_exec default, allow from one directory

I have in php ini this function, which blocks shell_exec default. php.ini suhosin.executor.func.blacklist = shell_exec Its works well. When I want to allow shell_exec, so I use in httpd.conf ...
1
vote
0answers
32 views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
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
6 views

Expression Engine module DevDemon – Updater displaying php errors on local when run by MAMP [on hold]

In my local environment I have tried to install the Expression Engine module Updater by DevDemon. Both the master MAMP php.ini file and the local php.ini file have the following settings: ...
-1
votes
0answers
18 views

Find which php files are causing high CPU load on linux [on hold]

I have a wordpress site running on my server. It's eating a lot of cpu. Searched all internet and didn't find any script or command to view which files are causing this load. Tried commands like top, ...
0
votes
0answers
24 views

Ubuntu 12.04 high cpu usage

This server is ran more than 1,5 year without any problem, until yesterday. I see some wierd processes that i never seen before. But i don't know how i need to be start debugging the problem. I ...
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 - ...
6
votes
2answers
6k views

nginx with php-fpm downloading php files rather than executing them on mac os x (local environment)

I'm having trouble getting PHP files to execute on my local development machine. I seem to have successfully installed nginx and php-fpm also seems to be correctly installed, and running but can't ...
-1
votes
1answer
19 views

Pros and cons of installing php 5.6 and mysql 5.6 on debian 7 wheezy

I was setting up a VPS server for my client and we had talked that I would install the last stable versions of the programs. Now, in Debian 7 wheezy by default php 5.4 and mysql 5.5 are available. I ...
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. ...
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
3answers
123 views

How does the Apache PHP module knows where the php.ini file is located?

I found this page: http://www.php.net/manual/en/configuration.file.php. On my OS: Fedora 17, Apache 2.2,PHP 5.4 I searched for PHPIniDir in the httpd.conf file. This configuration does not exists. ...
0
votes
2answers
290 views

Multiple POST requests to same file from same IP address

I periodically check my apache domlog to check for anomalies in GET and POST requests. Earlier today I noticed the same POST request to a login php happening two and sometimes three times a second for ...
10
votes
5answers
14k views

How do I tell Apache which PHP to use?

I am running Apache2 on a Mac OS X (10.5). I just compiled PHP 5.2.8 and finally got pdo-mysql working (or so I think). My command line "php --version" is showing 5.2.8 and I have the right modules ...
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 ...
-1
votes
1answer
25 views

Apache / PHP - PHP not running - mod_php5 not found

Ok, so PHP is not running, even though it is installed. I am running Apache 2.4 on CentOs 7. Here's my /conf.modules.d/10-php.conf <IfModule prefork.c> LoadModule php5_module ...
0
votes
0answers
9 views

Unable to use LDAP extension with Xampp [on hold]

I'm trying to enable LDAP extension for my xampp installation. When I go to my localhost/my-website/index.php and try to login using a known working ldap connection, I get this error Call to ...
1
vote
1answer
853 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 ...
1
vote
1answer
19 views

Nginx: alias and try_files with $args [duplicate]

When I try to use try_files with ?$args at location /api/v1 I get error 404. Without it it's working properly. Any idea? Nginx Configuration server { listen 80; server_name domain.com; ...
0
votes
3answers
1k 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
0answers
11 views

php generated css no output, net::ERR_INCOMPLETE_CHUNKED_ENCODING

I am running apache on an ubuntu installation. Several webapps are running on the same server. I installed a new app, which required the pdo-sqlite extension to be installed. Now my server is ...
0
votes
0answers
24 views

Connect to a WebService through VPN in Linux

I have been given a remote WS. But the provider told me that I can connect to their WS only through a VPN/IPsec. How can I do that? The scenario is this: [user] --- > [My Firewall] -->[My Web ...
0
votes
0answers
18 views

Folder keeps getting deleted and I can't find out why

I have a Joomla based website running on CentOS, Apache, PHP, MySQL. I am using plupload file uploader to upload the files. I'm uploading the files to /tmp/uploads directory where they are processed ...
22
votes
3answers
7k views

PHP: What are the advantages of FastCGI over mod_php?

It was recently suggested to me that I use FastCGI with PHP. Now I went to the FastCGI page and read it but I don't really understand what the advantages are.
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
votes
1answer
88 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
71 views

How to delete all php files first line? [closed]

How to delete all php files first line? I used the following command, but it works only for present directory and not recursively. sed 1d file.php Please tell me the command or script which delete ...
0
votes
1answer
1k 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 ...
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 ...
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
0answers
13 views

FastCGI for DocumentRoot only

I'm trying to set up HHVM for one of my websites. It is running on Apache 2.4, Ubuntu 14.04. I apologize for not being the most advanced system administrator, I am more in the software engineering end ...
0
votes
1answer
48 views

Reverse Proxy for PHP: Best practice?

I'm setting up NGINX as a SSL reverse proxy for three small web apps with dynamic (PHP) and static content. What would be considered best practice security-wise and performance-wise when it comes to ...
0
votes
3answers
59 views

Is there an option in Apache to check PHP files for malicious code before parsing them?

Basically, I would like Apache to check PHP files for certain patterns before parsing them. If these PHP files match the patterns, I would like to send something else in replacement back to the user. ...
0
votes
1answer
29 views

Ubuntu 14.04 PPA previous minor version of PHP 5.6

I'm currently running PHP 5.6.6 installed on Ubuntu using the PPA provided by Ondřej Surý https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6 This is managed using Chef which isn't really relevant ...
0
votes
0answers
8 views

How to Stop IIS editing body of http 201 response? (PHP)

I'm currently implementing a REST service in PHP on an IIS server. Everything is working fine, except that when I have the server respond with a HTTP status code of 201, IIS is prepending a string ...
-2
votes
0answers
28 views

cron + php = 100% CPU after server upgrade

I just upgraded my ubuntu server (from 12.04 to 14.04) and I have a problem. There are 5-6 cronjob that are using 100% of my CPU. The cronjob are simply php scripts doing batch query on my MySQL DB. ...
0
votes
1answer
1k views

APC keeps flushing

See my APC here: http://www.animefushigi.com/apc.php If you keep hitting the Refresh button on the top left, watch the number of "Hits" and the "Start Time" and "Uptime" values. They all go up and ...
-3
votes
0answers
14 views

failed to open stream: Connection refused [closed]

i'm stuck. this is the link to my question in stack overflow. The server I'm connecting to is a windows 2008 server ...
0
votes
2answers
85 views

can't execute sudo in a php script ran from http [closed]

I am not able to run any sudo command in any exec call from php script if the php was execute from the browser. However if the same scripts runs under bash shell, it works just fine. I suspect there ...
2
votes
4answers
4k views

CentOS not allowing remote MySQL connections

When assigning a user from a remote IP to connect to a database it is saying that it's failing to connect. It is also failing to connect with root so something is wrong. Bind IP is off and I have also ...
1
vote
1answer
57 views

Forbidden - for a php webiste with apache, although it shouldn't be

I can't run a php from my custom location: $ cat /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot ...
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 ...