Symbolic link and Apache directory listing

This post explains how to set (and enable) document root as a symbolic link for Apache web server. By default symbolic link is not enabled and error message will be displayed instead of requested page. In a few steps (and config files), Apache on Fedora Core 20 can be configured to allow symbolic links and display directory listing.

Apache hides directories with .htaccess file

Placing .htaccess file to the directory will hide it from the parent directory index. Simply said, directory with .htaccess file will be hidden by default in Apache 2.2 and later. To display directories with .htaccess file, document root (or subtree) should have set ShowForbidden index option. ShowForbidden is a new option in Apache 2.2 and it’s not set by default.

Log PHP errors to the separate file

In this post you will find how to configure PHP to log errors and warnings to the separate log file – error_php. You can place error_php wherever you want, but I will suggest to choose the /tmp directory …

Categories PHP

Styling Apache directory listings

In this post you will find how to make stylish listing generated by the Apache server. This is not just another CSS solution. The trick is in configuring Apache to generate XML directory list and to use browser (IE, FF, Opera, Safari …) to transform XML to the HTML. You will have full freedom to modify and style auto generated directory listings.

Create XML from directory list with Apache

In Apache world, the index of a directory can come from one of two sources – a file written by the user, typically called index.html or a listing generated by the server. If you enable automatic index generation (with Options +Indexes), Apache will create a HTML directory list for the URL without index page. With a few lines in httpd.conf, directory list can become a XML document.

Hide parent directory in Apache

Apache can generate directory indexes, automatically, similar to the Unix ls command or the Win32 dir shell command. With default settings, parent directory will be displayed too. If you want to hide parent directory from the directory list, use IndexIgnore directive.

LAMP setup: Make it faster

Popularity means more traffic or we can say more requests per second. Did you ever measure how many requests per second your Web server can handle and how to improve it? This article should give the answer and show how to increase quickness of Web applications like WordPress, phpBB, Joomla …

LAMP setup: Apache and PHP

After finishing all tasks from the previous article LAMP setup, now is time to move on. LAMP server is secured and waiting for Apache and PHP configuration.

LAMP setup: Beginning

How to install and configure Linux as a Web server? What are the main steps to go? This post should cover the main configuration steps of LAMP – Linux Apache MySQL PHP server.