Tag archive for ‘php’

howto: turn off safe_mode in Plesk?

How to turn of safe_mode in Plesk? There are 2 ways to turn off safe_mode for a domain in Plesk. 1) From the Plesk control panel.  Login to Plesk >> click “Domains” >> click “domainname.tld”  >> click “WebSite Settings” >> make sure PHP support is checked, but “safe_mode” is  unchecked >> click Save. 2) The [...]

error: PIX_FMT_RGBA32 undeclared

The error message “Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so” is received when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP. You can easily reproduce the error message by executing “php -v”: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so: undefined symbol: [...]

Chroot Apache 2 Web Server

A chroot on Red Hat / CentOS / Fedora Linux operating changes the apparent disk root directory for the Apache process and its children. Once this is done attacker or other php / perl / python scripts cannot access or name files outside that directory. This is called a “chroot jail” for Apache. You should [...]

URL File-Access is Disabled in the Server Configuration

Warning: include() [function.include]: URL file-access is disabled in the server configuration is an error obtained by using the include command. Lucky for webmasters, this error is easily fixed via several different methods. Why This Error Occurs If you’re seeing this error, we are willing to bet that you are using the include statement as seen [...]

Hardening PHP from php.ini

PHP’s default configuration file, php.ini (usually found in /etc/php.ini on most Linux systems) contains a host of functionality that can be used to help secure your web applications. Unfortunately many PHP users and administrators are unfamiliar with the various options that are available with php.ini and leave the file in it’s stock configuration. By utilizing [...]

Vbulltin PHP Xcache Displaying Same Forum Data For Both Boards Error and Solution

Q. I’ve followed your Xcache php 5.x opcode cacher installation under RHEL 5 for my vbulltin board. I see good boosting in performance. Now I’ve installed 2nd VB forum on the same server and I see all sub-forums hosted from 1st forum. So I had to disable Xcache. I want Xcache for both board on same host. How [...]

Connect PHP with Oracle database

I spent the last four days looking for the correct way to Connect Apache server (PHP) with Oracle database, unfortunatly I didn’t find any complete article.So in this blog, I’m giving my expernce to connect ‘em 2geth 1. Install Apache server: I make this step in a seprated blog page, plz check it from this [...]

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

Q. I’m installing WordPress blog system under Debian Linux and getting an error which read as follows: Your PHP installation appears to be missing the MySQL extension which is required by WordPress How do I fix this problem under Debian Linux? A.. First make sure MySQL server is running, type the following command at a [...]

Shell Script To Build And Install PHP Xcache Opcode Cache Extension

#!/bin/bash # A simple shell to build and install xcache Opcode Cache as module for # PHP under # CentOS, Fedora and RHEL / Redhat Enterprise Linux # servers. # —————————————————————————- # Written by Vivek Gite <http://www.cyberciti.biz/> # (c) 2008 nixCraft under GNU GPL v2.0+ # —————————————————————————- # Home page: http://www.hardened-php.net # Last updated: 15/June/2010 [...]

Fix the Problem with $_SERVER["SCRIPT_FILENAME"] when using Apache + PHP-FPM + mod_fastcgi

I was trying to run Boost module with Drupal on one of my website and I got the problem that Boost doesn’t work as it should be no matter what I did. I don’t have this problem when using [NginX + PHP-FPM] or [Apache + mod_fcgid]. So, I checked error log and found below : [...]