在Ubuntu 12.10上安装WordPress

在Ubuntu 12.10上安装WordPress,wordpress,ubuntu,Wordpress,Ubuntu,我是Ubuntu的新手。最近我正在使用Ubuntu 12.10。当我使用WindowsXP时,我在XAMPP中使用了WordPress。WindowsXP中的WordPress在XAMPP上的安装过程非常简单,只需将下载的WordPress文件复制到“htdocs”文件夹中,并在“wpconfig.php”上进行一些更改,即可使用。现在在Ubuntu12.10中,我使用LAMP,执行与WindowsXP相同的过程,但不起作用 任何建议…1)运行应用程序“终端” 键入以下内容: cd /var/w

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

任何建议…

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

键入以下内容:

cd /var/www
sudo wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
您现在使用的是XAMP以前的
htdocs

2) 现在键入以下内容:

cd /var/www
sudo wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
你应该能够观看Ubuntu连接并下载wordpress

3) 下载后,请键入以下内容:

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

4) 键入以下内容:

cd /var/www
sudo wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
此命令将解压缩您刚刚下载的压缩文件

5) 再次键入以下内容:

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

您现在可以通过访问访问wordpress安装

http://localhost/wordpress/wp-admin/install.php
我希望这对您有所帮助。

首先复制下载的WordPress文件并将其粘贴到桌面。下载的文件名假定为“latest.tar.gz” 然后打开“终端”并写入 现在输入 将下载的文件解压为原始文件

现在输入 将“wordpress”文件移动到 /opt/lampp/htdocs


现在我们完成了。我在这里找到了一个关于在Ubuntu服务器上安装WordPress的很棒的教程

先决条件:

你应该有一个基本的Ubuntu服务器,由你选择的具有root访问权限的主机提供商提供。您还应该通过DNS将域映射到服务器的IP地址

第一步。确保您的箱子已安装灯组。在服务器框中以root用户身份登录,然后首先使用以下内容更新包:

sudo apt-get update
然后安装lamp服务器:

sudo apt-get install lamp-server^
**确保在末尾有(^)

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

第二步。设置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
第六步。删除000-default.conf文件中的所有内容,然后键入以下内容(为所有区域插入域名):

第八步。从浏览器转到您的域

点击我们走

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

单击运行安装

填写你博客的基本信息

安装完成

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


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

希望这对你有帮助。谢谢

  • 安装web服务器:web服务器是前端,用于在web浏览器上为网页提供服务。我们将根据需要安装Apache2 我们服务器上的Web服务器

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

  • 安装PHP及其模块在安装了上述所有服务器和软件包之后,Ubuntu服务器现在可以托管WordPress了

  • 在/var/www/html/中下载WordPress并将其解压缩

  • 这是配置WordPress的最后一步


  • 你到底想干什么?您正在安装到/var/www目录吗?我已经安装了LAMPP 1.8.1,所以我想在LAMPP中安装wordpress。LAMP指的是Linux Apache MySQL和PHP。如果是这样的话,你可以下载Wordpress的最新版本,然后在/var/www目录中解压/解压它,你就完成了。如果您正在执行此命令行,则可以像so
    cd/var/www
    一样导航,然后像so
    wget一样使用wgethttp://wordpress.org/latest.tar.gz
    然后运行
    tar-xzvf-latest.tar.gz
    由于我在UbuntuThere方面缺乏经验,您能解释一下吗?步骤4中出现了一个错误。“无法打开:没有这样的文件或目录”这类消息显示了许多。尝试
    sudo tar-xzvf latest.tar.gz
    I更新/编辑了我的答案。我只是在测试服务器上执行了所有命令,它们运行得非常完美。您可以右键单击并复制该命令,然后右键单击将其粘贴到终端。在步骤6中,将出现一条新的错误消息:“mv:invalid option--'R'请尝试'mv--help'了解更多信息。”首先,我道歉。当我尝试启动LAMPP时,它显示另一个apache正在运行。然后我尝试了“”,但该页面中出现了一些错误消息,如“error:PHP未运行”,并且许多其他来自此答案的所有文本都是从该链接复制的;试着写下你自己的答案,而不是抄袭别人的内容。
    <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>
    
     a2enmod rewrite
     service apache2 restart