There are a few ways to prevent access to sub-directories of your website. Blank index
Packages to install to run PHP: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo service apache2 restart Some optional / useful php libraries to install:
Recently a server was upgraded to FC14 with PHP V538 and when running PHP based website, the following warning is displayed: PHP Warning: date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and…
By default when Fedora / Red Hat Linux is installed, a ‘Fedora test page’ is displayed when Apache server is started. Or when websites are configured on server, denying IP address via .htaccess, the same default page is displayed.
.htaccess is a text file containing commands to control an entire website. I can never remember details what to put inside. This is just a basic template / skeleton for my web projects, so that i don’t have to go all over places to look for what I want everytime I start a new project.