Install drupal6 in ubuntu

Source: Internet
Author: User
Tags drupal

In fact, the latest version should be drupal7, but there are many drupal6 experts, it is relatively stable, and the teaching materials are relatively easy to find. In order to avoid future development, choose drupal6. As for downloading, skip it and go to the official website of drupal.org. find the version of drupal6 and download it to ubuntu, decompress it, and put a link to/var/www. The premise is that the lamp or lnmp environment has been set up,

 

Then enter the server address in the browser and start drupal installation. First, change the permissions of the entire drupal directory to www-data users and groups. Otherwise, the permissions may occur.

chown -R www-data:www-data drupal6

Here we assume that the drupal file directory is drupal6, and then enter the site/default/of the drupal directory. Copy the default. setting. php file to setting. php.

cp default.setting.php setting.php

If you manually copy the file, you may change the user group and User Name of setting. php to the current user name. Therefore, you must manually change the user name of setting. php.

chown www-data:www-data setting.php

Then modify the setting. php permission to 777 readable and writable by anyone.

chown 777 setting.php

This is OK, because the installation program will write information into it, wait for the installation to be done and then change back to 755, and then enter the database information. after configuring mysql, you can enter the remaining content to complete the installation of the entire drupal program, and then set setting. PHP file back to 755

chmod 755 setting.php

Mailbox problems,

Generally, if drupal has just been installed, you may encounter a situation where an email cannot be sent. In this case, if you register a new member or want to send a message to the member through the website, there will be a problem. the SMTP module is ready. First, go to "Workshop"> "Site building"> "Modules", find the SMTP Authentication Support module, check the preceding section, save the settings, and then go to "Administer ". -> Site configuration-> SMTP Authentication Support has been configured accordingly. Before you can set it, you must install an additional package to make the SMTP module run normally,

 

This affiliated package is phpmailer. Go to this page to download ghost.

 

Now it's time to configure the smtp module. before entering the smtp configuration module, remember that before the smtp module of drupal is not a mail server, it's just an interface for drupal to connect to the smtp mail server you can set up an smtp mail server on your local machine to send emails, or use the existing email service. If you want to set up your own mailbox, you can also find a tutorial. Here, you can use gmail to send emails, first, you must register a gmail account first. If you do not register an account, you will not need to register it. Then, you can configure smtp, enable smtp, switch off to on, enter the smtp server address, and write smtp.gmail.com, the following is a backup smtp server. Generally, you can leave it empty, and then enter the smtp server port. Here, the port and encryption protocol are set. The encryption method cannot be set to none, that is, no, or gmail does not this extremely insecure transmission mode is supported. If you Use smtp port 465, You need to select ssl encryption, that is, Use SSL. If you want to Use TLS encryption protocol, you can Use 587. port, the difference between the two is not big, Here Select Port 465 ssl mode, and then enter the account and password, note that as long as the input username can be, do not enter the username@gmail.com, and then the following is optional information indicates the email from which the email is sent, who the sender is, and finally provides a test email to test whether the mailbox settings are normal. If you are advised to set it for the first time check whether the email can be received. If the email cannot be received, open the enable debugging mode below to see which step has a problem, OK,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.