2

我是 Ubuntu 的新手。最近我正在使用 Ubuntu 12.10。当我使用 windows xp 时,我在 XAMPP 中使用了 WordPress。在XAMPP 上windows xp 中WordPress 的安装方式非常简单,只需将下载的WordPress 文件复制到'htdocs' 文件夹并修改一些'wpconfig.php' 即可使用。现在在 Ubuntu 12.10 中,我使用 LAMPP,执行与 windows xp 相同的过程,但不起作用。

任何建议...

4

5 回答 5

3

1)运行应用程序“终端”

键入以下内容:

cd /var/www

您现在处于htdocsXAMP 以前的状态

2)现在输入以下内容:

sudo wget http://wordpress.org/latest.tar.gz

您应该能够观看 Ubuntu 连接和下载 wordpress。

3)下载后输入:

ls

您应该会在其中看到一个名为的文件latest.tar.gz

4) 键入以下内容:

tar -xzvf latest.tar.gz

此命令将解压缩您刚刚下载的压缩文件。

5)再次输入:

ls

您应该看到一个名为“wordpress”的目录。

您现在可以通过以下方式访问您的 wordpress 安装

http://localhost/wordpress/wp-admin/install.php

我希望这可以帮助你。

于 2012-11-09T23:08:46.113 回答
2

首先复制下载的 WordPress 文件并将其粘贴到桌面。下载的文件名假定为“latest.tar.gz”

然后打开“终端”并写入

 cd Desktop 

现在输入

sudo tar -xzvf latest.tar.gz 

将下载的文件解压缩为原始文件

现在输入

sudo mv wordpress /opt/lampp/htdocs

将“wordpress”文件移动到 /opt/lampp/htdocs

现在我们完成了。

于 2012-11-18T18:55:59.890 回答
0

我在这里http://development.solepop.com/setting-up-wordpress-on-ubuntu/找到了一个很好的关于在 Ubuntu 服务器上安装 WordPress 的教程。

先决条件:

您应该拥有来自您选择的托管服务提供商的准系统 Ubuntu 服务器,并具有 root 访问权限。您还应该通过 DNS 将您的域映射到服务器的 IP 地址。

步骤 1. 确保您的盒子安装了灯组。在您的服务器框中以 root 用户身份登录,并首先使用以下命令更新软件包:

sudo apt-get update

然后安装灯服务器:

sudo apt-get install lamp-server^

** 确保最后有 (^)

系统将提示您为 root 用户提供 mysql 密码。继续输入并在下一个屏幕中确认密码。

步骤 2. 设置你的 mysql 数据库

mysql -u root -p

系统将提示您提供密码。插入您在步骤 1 中指定的密码。然后您将可以访问 MySQL 命令行,您可以在其中创建 MySQL 数据库和用户:

CREATE DATABASE wordpressblog;
CREATE USER wordpressblog@localhost IDENTIFIED BY '<set a password for the new database user>';
GRANT ALL PRIVILEGES ON wordpressblog.* TO wordpressblog@localhost;
FLUSH PRIVILEGES;
exit

第 3 步。按顺序输入以下内容(确保替换为您的域地址,在我们的例子中是 solepop.com):

mkdir -p /srv/www/<your domain>/src/
mkdir -p /srv/www/<your domain>/public_html/
cd /srv/www/<your domain>/src/
wget http://wordpress.org/latest.tar.gz
tar -zxvf /srv/www/<your domain>/src/latest.tar.gz
cp -R /srv/www/<your domain>/src/wordpress/* /srv/www/<your domain>/public_html/
rm -rf /srv/www/<your domain>/src/wordpress/
sudo chown -R www-data:www-data /srv/www/<your domain>/public_html

我们在这里所做的几乎就是创建了一个 src 文件夹,我们在其中下载了最新版本的 WordPress。在我们的 src 文件夹中解压缩安装后,我们将 src 文件夹中的所有内容复制到我们的 public_html 文件夹中。复制完所有内容后,我们从 src 文件夹中删除了下载的 WordPress 文件。最后,我们将 public_html 文件夹的所有权交给了 apache。

步骤 4. 授予 public_html 文件夹和文件适当的权限:

find /srv/www/<your domain>/public_html -type d -exec chmod 755 {} +
find /srv/www/<your domain>/public_html -type f -exec chmod 644 {} +

步骤 5. 转到 apache2 中启用站点的文件夹。

cd /etc/apache2/sites-enabled

步骤 6. 删除 000-default.conf 文件中的所有内容并键入以下内容(为所有区域插入您的域名):

<VirtualHost *:80>

# The ServerName directive sets the request scheme, hostname and port that

# the server uses to identify itself. This is used when creating

# redirection URLs. In the context of virtual hosts, the ServerName

# specifies what hostname must appear in the request's Host: header to

# match this virtual host. For the default virtual host (this file) this

# value is not decisive as it is used as a last resort host regardless.

# However, you must set it for any further virtual host explicitly.

ServerName <your domain>

<Directory />
 AllowOverride all
 Require all granted
</Directory>

DocumentRoot /srv/www/<your domain>/public_html/

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,

# error, crit, alert, emerg.

# It is also possible to configure the loglevel for particular

# modules, e.g.

#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are

# enabled or disabled at a global level, it is possible to

# include a line for only one particular virtual host. For example the

# following line enables the CGI configuration for this host only

# after it has been globally disabled with "a2disconf".

#Include conf-available/serve-cgi-bin.conf

</VirtualHost>

步骤 7. 启用 mod rewrite(对于永久链接工作很重要)并重新启动 apache。

 a2enmod rewrite
 service apache2 restart

步骤 8. 从浏览器转到您的域。

点击走吧

第 1 步 http://www.solepop.com/wp-content/uploads/2015/01/Screen-Shot-2015-01-12-at-4.37.52-PM.png

填写步骤 2 中的数据库信息。

第 2 步 http://www.solepop.com/wp-content/uploads/2015/01/Screenii-Shot-2015-01-12-at-4.42.06-PM.png

单击运行安装。

第 3 步 http://www.solepop.com/wp-content/uploads/2015/01/Screen-Shot-2015-01-12-at-4.42.24-PM.png

填写有关您博客的基本信息。

第 4 步 http://www.solepop.com/wp-content/uploads/2015/01/Screen-Shot-2015-01-12-at-4.42.39-PM.png

安装完成……</p>

第 5 步 http://www.solepop.com/wp-content/uploads/2015/01/Screen-Shot-2015-01-12-at-8.27.38-PM.png

安装后,在浏览器上访问您的域,您应该会看到您的 WordPress 博客。

第 6 步 http://www.solepop.com/wp-content/uploads/2015/01/Screen-Shot-2015-01-12-at-8.27.53-PM.png

于 2015-01-15T21:05:52.590 回答
0

如果您想在 Ubuntu 上安装 wordpress,可以点击以下链接:

希望这会对您有所帮助。谢谢

于 2015-11-19T07:39:56.363 回答
-2

在 Ubuntu 中安装 WordPress 的过程

  1. 安装网络服务器:网络服务器是我们用来在网络浏览器上提供网页的前端。我们将在我们的服务器上安装 Apache2 作为网络服务器。

  2. 设置 MySQL 服务: MySQL 是用于存储我们数据的数据库。另一种选择是使用 Maria DB。但是既然我们选择了MySQL。

  3. 安装 PHP 及其模块 安装完上述所有服务器和软件包后,Ubuntu 服务器现在已准备好托管 WordPress。

  4. 在 /var/www/html/ 中下载 WordPress 并解压。

  5. 这是配置 WordPress 的最后一步。

于 2016-10-13T12:17:26.017 回答