Posts Tagged ‘php’

Apache and PHP Causes Horde Errors

Monday, October 13th, 2008

It’s always PITA when comes to situation where you want to upgrade an application on old / out dated Linux box. We came across to a situation where Horde is giving error, where actually PHP is the culprit who caused the problem.

Problem:

While configuring latest version of horde on an old Linux Box, test.php failed with error message shown in Apache Error Log:

PHP Fatal error:  Failed opening required ‘Horde/String.php’ (include_path=’/my/document/root/path/horde/libPATH_SEPARATOR/my/document/root/path/horde/lib:/my/document/root/path/horde:/my/document/root/path/horde/pear’) in /my/document/root/path/horde/lib/Horde/NLS.php on line 9″

Solution:

Link pear directory to /c/program/my_document/horde/ and add the following line to Apache Virtual Host :

php_admin_value include_path “.:/my/document/root/path/horde/lib:/my/document/root/path/horde:/my/document/root/path/horde/pear”

Guess it will temporary solve the problem but to solve it permanent it, upgrade the Linux box to FreeBSD ;)

Working on A New Project

Tuesday, July 22nd, 2008

Recently I had a brain storm session with few friends of mine. We were talking about starting a portal which will benefit the community. A portal will bring useful information to the community. Think this is what I can say so far, we will announce more, when we have our beta launch

Tips of the Day: phpinfo(), Code That Shouldn’t Show To Public

Tuesday, July 22nd, 2008

I notice that most of the programmer love to do phpinfo() on info.php, info.html page. But they do not know that such information may vulnerable to attacker. Some even have it as apache’s default DocumentRoot.

If you want like to use phpinfo(), it’s advice to use a random name for php filename. For example infoxxxxx.php, noinfo123123aa.php, testinfo123213.php. Beside that, you can remove the code immediately after you got what you want.