====== Installing on 1and1 ====== ===== Prologue ===== After logging into your personal administration interface on [[http://1and1.fr]], go to **Manage pack** tab to access information about your FTP access (Domain configuration), as well as database creation and configuration (MySQL administration). ===== Prepare the environment ===== You need a MySQL v5 database. If you don't have any yet, you should create one. You also need to allow PHP 5 to run on your site. To do this, place an ''.htacess'' file in the root directory of your web site, containing: AddType x-mapp-php5 .php ===== Configuration file ===== You should now rename ''inc/config.php.in'' to ''inc/config.php'', then fill in the database details 1and1 provided. This file configures access to the database. The ''DC_ADMIN_URL'' should be the complete path to the administration interface of your Dotclear installation. ===== Installation ===== Open your browser and go to the ''admin/install'' directory of your Dotclear installation and fill out the form. Dotclear is now installed! ===== Completion ===== When your installation is finished and you have confirmed everything works, you can choose ''PATH_INFO'' format for your URLs and remove //index.php// from your blog URLs. ==== Using ''PATH_INFO'' URLs ==== In the ''inc/config.php'' file, uncomment the four ''PATH_INFO'' lines near the end of the file, by deleting the double slashes ('/') at the beginning of each line. ==== Removing ''index.php/'' from URLs ==== Add the following lines to your ''.htaccess'' file: # Get nice URLs with DotClear 2 RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 RewriteRule ^index.php$ index.php/ //Note: If you have placed DC2 in a subdirectory, replace the line// RewriteBase / //with// RewriteBase /subdirectory/ Go to your Dashboard, then to the **Blog settings** screen, and delete ''index.php/'' from the end of the URL in the **Blog URL** field.