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
14 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
15 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
120 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
289 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
20 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
8 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
850 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
17 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
9 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
21 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
17 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
64 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
69 views

How to delete all php files first line? [on hold]

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
44 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
58 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
25 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
6 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
13 views

failed to open stream: Connection refused [on hold]

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

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

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 ...
-1
votes
1answer
32 views

How to overcome IIS message exceeds the request content length in php

I am using phpUploader on IIS8.5. I have the php upload set to 20mb and I have the site set to: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
-2
votes
0answers
38 views

Someone uploaded index.php into my ubuntu server, I don't know how? [duplicate]

I recently figured that someone uploaded an index.php into my server, which is an Ubuntu by the way. How could he do it? What should I do to fix this bug and prevent it from happening again?
3
votes
2answers
210 views

Blocking PHP mailer spam using iptables

I host a public-facing web server running Debian Wheezy, and latest versions of Postfix, Apache, PHP, Spamassassin, ClamAV, rootkit hunter. Apache is configured with a handful of vhosts, each tied to ...
2
votes
0answers
26 views

CentOS 7 / Apache 2.4 / FastCGI Configuration

Does anyone know how to properly configure PHP/FastCGI on a CentOS 7 machine using Apache 2.4? In the Apache Virtual Host config file, I have this: <FilesMatch \.php$> SetHandler ...
1
vote
1answer
1k views

Getting 502 bad gateway after updating php to 5.5

On my ubuntu 12.10 server I upgraded php to 5.5. After getting 502 errors on my wordpress site I did some googling and discovered I need to change my nginx configs to match the passing of php scripts ...
-1
votes
0answers
27 views

fatal JavaScript error; Error processing request 200 error text:ok [closed]

I have been getting white screen in Google Crome browser when trying to access PHPmyadmin. In Firefox I get this message A fatal javascript error has occurred. I also get Error in processing Request ...
0
votes
2answers
3k views

PHP no longer working on Centos after installing phpMyAdmin

I think I have killed my LAMP server! The server is CentOS 6.6 and has Apache 2.2 and PHP 5.4 installed. I didn't originally install anything - it was provisioned this way by my hosting provider. ...
4
votes
1answer
3k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch ...
-2
votes
0answers
29 views

How Much RAM / CPU Needed / Wordpress 5GB (min) DB, 1M Posts, 500K Users / Apache [duplicate]

First, I know you guys love these questions, but I'm not looking for an exact answer. I'm looking for a ballpark. A number I could reasonably suggest. I've yet to deploy a wordpress installation -- ...
-1
votes
0answers
16 views

Web server dedicated for PHP requests [closed]

I've dedicated server (8 core,32 GB) which has to manage only PHP requests (Symfony2) because all static files are in my external CDN. Which is the best configuration? 1) Apache 2.4 (MPM Event) + ...
0
votes
1answer
1k views

How to give Domain Name to IPs in an Intranet Network

I Know this is a Common topic here but I'm still confused. I have a Windows Server 2003 DHCP/App Server Machine with DNS configured. The Clients are Lubuntu 12.04 Systems. I want to host my PHP ...
0
votes
0answers
10 views

Open LiteSpeed permission problems

I recently moved to open litespeed from apache and i can no longer create files. When i do a file_put_contents i get permission errors. lsphp and litespeed both run under user nobody. Doing a chmod ...
0
votes
0answers
12 views

When using Apache mod_php, what's the precedence of loaded php.ini files?

I'm having some troubles with php.ini configuration when Apache executes PHP using mod_php. I can't understand how/the order of configuration files. Here is how phpinfo() Apache section: ...