如何在 Ubuntu 15.04 上安装 ExpressionEngine

[ad_1]

在本教程中,我们将向您展示如何在 Ubuntu 15.04 上安装 ExpressionEngine。 对于那些不知道的人,ExpressionEngine 内容管理系统软件是一款专有软件,旨在创建令人惊叹的网站并简化内容创建过程。 它由 EllisLab, Inc. 开发,是一个美观、权威的系统,深受创建内容驱动网站的个人用户、公司和非营利组织的欢迎。 此应用程序提供了广泛的功能,可满足您的不同需求。

本文假设您至少具备 Linux 的基本知识,知道如何使用 shell,最重要的是,您将网站托管在自己的 VPS 上。 安装非常简单,假设您在 root 帐户下运行,如果不是,您可能需要添加 ‘sudo‘ 到命令以获取 root 权限。 我将向您展示如何在 Ubuntu 15.04 服务器上逐步安装 ExpressionEngine。

在 Ubuntu 15.04 上安装 ExpressionEngine

步骤 1. 首先,通过运行以下命令确保所有系统包都是最新的 apt-get 终端中的命令。

sudo apt-get update
sudo apt-get upgrade

步骤 2. 安装 LAMP (Linux, ApacheMariaDB, PHP) 服务器。

需要 Ubuntu 15.04 LAMP 服务器。 如果您没有安装 LAMP,您可以在此处按照我们的指南进行操作。

步骤 3. 安装 ExpressionEngine。

首先到ExpressionEngine的下载页面下载ExpressionEngine的最新稳定版,在写这篇文章的时候是2.10.1版本:

mkdir /var/www/html/eengine/

然后上传完成后,解压缩存档:

cd /var/www/html/eengine/
unzip ExpressionEngine_Core2.10.1.zip

我们将需要更改一些文件夹权限:

chown -R www-data /var/www/html/eengine/

设置适当的权限以继续安装:

chmod 666 system/expressionengine/config/config.php
chmod 666 system/expressionengine/config/database.php
chmod 777 system/expressionengine/cache/
chmod 777 images/avatars/uploads/
chmod 777 images/captchas/
chmod 777 images/member_photos/
chmod 777 images/pm_attachments/
chmod 777 images/signature_attachments/
chmod 777 images/uploads/

步骤 4. 为 ExpressionEngine 配置 MariaDB。

默认情况下,MariaDB 未加固。 您可以使用 mysql_secure_installation 脚本。 您应该仔细阅读以下每个步骤,这些步骤将设置 root 密码、删除匿名用户、禁止远程 root 登录、删除测试数据库和访问安全 MariaDB:

mysql_secure_installation

像这样配置它:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

接下来,我们需要登录 MariaDB 控制台并为 ExpressionEngine 创建一个数据库。 运行以下命令:

mysql -u root -p

这将提示您输入密码,因此输入您的 MariaDB 根密码并点击 Enter. 登录到数据库服务器后,您需要为 ExpressionEngine 安装创建一个数据库:

create database eengine;
grant all privileges on eengine.* to [email protected] identified by 'your_password';
flush privileges;
exit

步骤 4. 配置 Apache ExpressionEngine 的网络服务器。

在中创建一个新的虚拟主机指令 Apache. 例如,新建一个 Apache 名为’的配置文件expressionengine.conf‘ 在您的虚拟服务器上:

touch /etc/apache2/sites-available/expressionengine.conf
ln -s /etc/apache2/sites-available/pixie.conf /etc/apache2/sites-enabled/expressionengine.conf
nano /etc/apache2/sites-available/expressionengine.conf

添加以下行:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/eengine/
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/eengine/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common
</VirtualHost>

现在,我们可以重新启动 Apache 网络服务器,以便进行更改:

systemctl restart apache2.service

步骤 5. 访问 ExpressionEngine。

默认情况下,ExpressionEngine 将在 HTTP 端口 80 上可用。 打开您喜欢的浏览器并导航到 https://yourdomain.com/admin.php 或者 https://server-ip/admin.php. 如果您使用防火墙,请打开端口 80 以启用对控制面板的访问。

恭喜! 您已成功安装 ExpressionEngine。 感谢您使用本教程在 Ubuntu 15.04 系统上安装 ExpressionEngine。 如需更多帮助或有用信息,我们建议您查看 ExpressionEngine 官方网站.

[ad_2]

Related Posts