drupal 7 installation
Step 1: Download and extract Drupal
Downloading
Download Drupal from the command line
wget http://ftp.drupal.org/files/projects/drupal-x.x.tar.gz
Note: Replace http://ftp.drupal.org/files/projects/drupal-x.x.tar.gz with the link for the version you want to install. (for example, if you wanna install drupal 7.43, just replace ‘drupal-x.x.tar.gz’ with ‘drupal-7.43.tar.gz’)
Extracting files
Type the following command and replace “x.x” with your downloaded version’s number:
tar -xzvf drupal-x.x.tar.gz
Then remove the compressed version of the file by using the following command:
rm drupal-x.x.tar.gz
Moving to its intended location
Now you need to move the contents of the drupal-x.x directory one level “up” into the web server’s document root or your public HTML directory:
mv drupal-x.x/* drupal-x.x/.htaccess ./
mv drupal-x.x/.gitignore ./
mv drupal-x.x /var/www/html
The files from the directory you downloaded and decompressed have now been moved up a level into your web directory, and you can delete the (now empty) drupal-x.x directory:
rmdir drupal-x.x
Step 2: Create the database
Create a database and user using phpMyAdmin
apt-get install apache2
apt-get install php5
apt-get install mysql-server
apt-get install phpmyadmin
apache2 not working
[problem and solution] (http://askubuntu.com/questions/452042/why-is-my-apache-not-working-after-upgrading-to-ubuntu-14-04)
phpmyadmin installation failed… modify source list…
deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
always waiting for headers…just abort it
modify limit of import .sql size
sudo gedit /etc/php5/apache2/php.ini
memory_limit, post_max_size, upload_max_filesize
phpmyadmin page extension mysqli missing , apt-get install php5-mysql then modify /etc/php5/cli/php.ini add
extension=mysqli.so
finally restart apache2(but not restart mysql)
Note: This procedure assumes that you have root access to phpMyAdmin, and that you’re using phpMyAdmin 3.5.x.
Sign in to phpMyAdmin as the root user.
1. Click Users, and then click Add user.
2. Note: You can use the root user credential as well..
3. In the User name field, enter the username that you want to use.
4. In the Host field, select Local, which is a more secure setting, unless you’ll be accessing the database with this user from another server.
5. Enter or generate a password for the user.
6. In the Database for User section, select Create database with same name and grant all privileges.
7. Make sure you select COLLATION utf8_general_ci
8. Click Go to create the user.
Step 3: Run the installation script and check out the error
Step 1 - Navigation & Creation
cp sites/default/default.settings.php sites/default/settings.php
Step 2 - Check the Permissions Are Writable
chmod 644 sites/default/settings.php
Step 3 - Create the Files Directory
mkdir sites/default/files
chmod 777 sites/default/files
Step 4 - try to install
- PHP extensions Disabled
just reboot server
Enter the database name, the username, and the password for the database that you created in Step 2: Create the database. This username and password information allows Drupal to access your database so the install script can create tables. Note that this is not the username and password for administering Drupal; these will be created in the next step.
Step 5 - Post Install Permission Check
chmod 555 sites/default
chmod 444 sites/default/settings.php
Step 6: Configure clean URLs
run test failed, modify apache2.conf
a2enmod rewrite
cd /etc/apache2/
subl apache2.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
apache2 restart
private files or public files not protected:
https://www.drupal.org/SA-CORE-2013-003
copy .htaccess into default/files then modify its content as the link has shown