≡ Menu

/etc/php.ini

I have four Apache backend servers in front of nginx reverse proxy server. How do I make sure nginx reverse proxy load balancer always send specific client IP address (say IP 1.2.3.4) request to http://apachereadwrite/ backend and rest to http://apachereadonly/ backend?
[click to continue…]

I am in the process of setting Apache and PHP for my small business server. I'm not utilizing file upload functionality in any of my PHP scripts. How do I disallow uploading files under CentOS or Ubuntu Linux based LAMP server?
[click to continue…]

I've recently installed php 5.3.5 in my UNIX box and my old working php code not working. It displays code in pages which is in <? ... my code ... ?> php tags. How do I fix this problem?
[click to continue…]

PHP Increase Upload File Size Limit

How do I increase upload file limit from 2MB to 10MB under Apache 2 UNIX / Linux web server?
[click to continue…]

Q. I'm using PHP along with latest version of Apache. Only <?php and <script> tags are recognized. Many of my scripts are broken. How do I allow the <? tag also?
[click to continue…]

I run a small Apache based web-server for my personal use, and it is shared with friends and family. However, most script kiddie try to exploit php application such as WordPress using exec(), passthru(), shell_exec(), system() functions. How do I disable these functions to improve my php script security?
[click to continue…]

Where Does The PHP Error Log Reside

I'm running CentOS 5.x server with Apache 2.2 + PHP 5.x server. Can you tell me exact location for php error log file?
[click to continue…]