使用Ubuntu10.04.1 LTS智能自动安装后无法访问WordPress

使用Ubuntu10.04.1 LTS智能自动安装后无法访问WordPress,wordpress,ubuntu,Wordpress,Ubuntu,我已按顺序安装了以下各项: apt获取并安装apache2 apt get安装mysql-server-5.1 root@wp-companyweb01:/home/administrator# apt-get install wordpress Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be

我已按顺序安装了以下各项:

apt获取并安装apache2

apt get安装mysql-server-5.1

root@wp-companyweb01:/home/administrator# apt-get install wordpress Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libjs-cropper libjs-prototype libjs-scriptaculous libphp-phpmailer libphp-snoopy php-gettext tinymce wordpress-l10n Suggested packages: mail-transport-agent curl The following NEW packages will be installed: libjs-cropper libjs-prototype libjs-scriptaculous libphp-phpmailer libphp-snoopy php-gettext tinymce wordpress wordpress-l10n 0 upgraded, 9 newly installed, 0 to remove and 24 not upgraded. Need to get 7,890kB of archives. After this operation, 29.5MB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs-prototype 1.6.1-1 [34.9kB] Get:2 http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs-scriptaculous 1.8.3-1 [127kB] Get:3 http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs-cropper 1.2.1-1 [136kB] Get:4 http://au.archive.ubuntu.com/ubuntu/ lucid/universe libphp-phpmailer 5.1-1 [77.0kB] Get:5 http://au.archive.ubuntu.com/ubuntu/ lucid/universe libphp-snoopy 1.2.4-1 [15.3kB] Get:6 http://au.archive.ubuntu.com/ubuntu/ lucid/universe php-gettext 1.0.9-1 [15.9kB] Get:7 http://au.archive.ubuntu.com/ubuntu/ lucid/universe tinymce 3.2.7-1 [442kB] Get:8 http://au.archive.ubuntu.com/ubuntu/ lucid/universe wordpress 2.9.2-1ubuntu1 [2,017kB] Get:9 http://au.archive.ubuntu.com/ubuntu/ lucid/universe wordpress-l10n 2.9.2-1ubuntu1 [5,025kB] Fetched 7,890kB in 38s (203kB/s) Selecting previously deselected package libjs-prototype. (Reading database ... 48847 files and directories currently installed.) Unpacking libjs-prototype (from .../libjs-prototype_1.6.1-1_all.deb) ... Selecting previously deselected package libjs-scriptaculous. Unpacking libjs-scriptaculous (from .../libjs-scriptaculous_1.8.3-1_all.deb) ... Selecting previously deselected package libjs-cropper. Unpacking libjs-cropper (from .../libjs-cropper_1.2.1-1_all.deb) ... Selecting previously deselected package libphp-phpmailer. Unpacking libphp-phpmailer (from .../libphp-phpmailer_5.1-1_all.deb) ... Selecting previously deselected package libphp-snoopy. Unpacking libphp-snoopy (from .../libphp-snoopy_1.2.4-1_all.deb) ... Selecting previously deselected package php-gettext. Unpacking php-gettext (from .../php-gettext_1.0.9-1_all.deb) ... Selecting previously deselected package tinymce. Unpacking tinymce (from .../tinymce_3.2.7-1_all.deb) ... Selecting previously deselected package wordpress. Unpacking wordpress (from .../wordpress_2.9.2-1ubuntu1_all.deb) ... Selecting previously deselected package wordpress-l10n. Unpacking wordpress-l10n (from .../wordpress-l10n_2.9.2-1ubuntu1_all.deb) ... Setting up libjs-prototype (1.6.1-1) ... Setting up libjs-scriptaculous (1.8.3-1) ... Setting up libjs-cropper (1.2.1-1) ... Setting up libphp-phpmailer (5.1-1) ... Setting up libphp-snoopy (1.2.4-1) ... Setting up php-gettext (1.0.9-1) ... Setting up tinymce (3.2.7-1) ... Setting up wordpress (2.9.2-1ubuntu1) ... Setting up wordpress-l10n (2.9.2-1ubuntu1) ... root@wp-companyweb01:/home/administrator#apt get install wordpress 正在阅读软件包列表。。。多恩 构建依赖树 正在读取状态信息。。。多恩 将安装以下额外软件包: libjs裁剪器libjs原型libjs脚本库libphp phpmailer libphp snoopy php gettext tinymce wordpress-l10n 建议套餐: 邮件传输代理 将安装以下新软件包: libjs裁剪器libjs原型libjs脚本库libphp phpmailer libphp snoopy php gettext tinymce wordpress wordpress-l10n 已升级0,新安装9,要删除0,未升级24。 需要获得7890KB的档案。 执行此操作后,将使用29.5MB的额外磁盘空间。 是否要继续[Y/n]?Y 获得:1http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs原型1.6.1-1[34.9kB] 获得:2http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs scriptaculous 1.8.3-1[127kB] 获得:3http://au.archive.ubuntu.com/ubuntu/ lucid/universe libjs cropper 1.2.1-1[136kB] 获得:4http://au.archive.ubuntu.com/ubuntu/ lucid/universe libphp phpmailer 5.1-1[77.0kB] 获得:5http://au.archive.ubuntu.com/ubuntu/ lucid/universe libphp snoopy 1.2.4-1[15.3kB] 获得:6http://au.archive.ubuntu.com/ubuntu/ lucid/universe php gettext 1.0.9-1[15.9kB] 获得:7http://au.archive.ubuntu.com/ubuntu/ lucid/universe tinymce 3.2.7-1[442kB] 获得:8http://au.archive.ubuntu.com/ubuntu/ lucid/universe wordpress 2.9.2-1ubuntu1[2017KB] 获取:9http://au.archive.ubuntu.com/ubuntu/ lucid/universe wordpress-l10n 2.9.2-1ubuntu1[5025KB] 在38秒内获取7890KB(203kB/s) 选择以前取消选择的包libjs prototype。 (正在读取数据库…48847个当前安装的文件和目录。) 正在解包libjs原型(来自…/libjs-prototype_1.6.1-1_all.deb)。。。 选择以前取消选择的包libjs scriptaculous。 正在解包libjs scriptaculous(来自…/libjs-scriptaculous_1.8.3-1_all.deb)。。。 选择以前取消选择的包libjs crapper。 正在解包libjs-crapper(来自…/libjs-crapper_1.2.1-1_all.deb)。。。 选择以前取消选择的包libphp phpmailer。 正在解包libphp-phpmailer(来自…/libphp-phpmailer_5.1-1_all.deb)。。。 选择以前取消选择的包libphp snoopy。 解包libphp-snoopy(来自…/libphp-snoopy_1.2.4-1_all.deb)。。。 选择以前取消选择的包php gettext。 正在解包php gettext(来自…/php-gettext_1.0.9-1_all.deb)。。。 选择以前取消选择的包tinymce。 打开tinymce包装(从…/tinymce_3.2.7-1_all.deb)。。。 选择以前取消选择的软件包wordpress。 正在解压缩wordpress(从…/wordpress_2.9.2-1ubuntu1_all.deb)。。。 选择以前取消选择的软件包wordpress-l10n。 正在解包wordpress-l10n(从…/wordpress-l10n_2.9.2-1ubuntu1_all.deb)。。。 正在设置libjs原型(1.6.1-1)。。。 正在设置libjs脚本库(1.8.3-1)。。。 正在设置libjs裁剪器(1.2.1-1)。。。 正在设置libphp phpmailer(5.1-1)。。。 正在设置libphp snoopy(1.2.4-1)。。。 正在设置php gettext(1.0.9-1)。。。 设置tinymce(3.2.7-1)。。。 正在设置wordpress(2.9.2-1ubuntu1)。。。 正在设置wordpress-l10n(2.9.2-1ubuntu1)。。。 但是,当我尝试使用以下URL访问它时,它失败了:


什么也没发生。

有几件事需要检查。您的.htaccess文件是否已被升级覆盖?如果是这样的话,您需要查看一些文档来了解应该如何设置它。如果你找不到,请告诉我&我可以发回一些资源

另外,登录mysql,了解第1行(或第2行)和第39行(或第40行)关于站点url的内容

还有,你有什么想法吗?其他网站怎么样


您可以发布的任何其他信息都会很有帮助。

事实上,我刚刚发现connect用户被授予“localhost”而不是servername

因此,解决方案是转到mysql并授予:

mysql> CREATE DATABASE wp_itreewebdb; mysql> CREATE USER wordpressuser; mysql> SET PASSWORD FOR wordpressuser = PASSWORD("wordpresspassword"); mysql> GRANT ALL PRIVILEGES ON wp_itreewebdb.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'wordpresspassword'; mysql> FLUSH PRIVILEGES; mysql>创建数据库wp_itreewebdb; mysql>创建用户wordpressuser; mysql>为wordpressuser设置密码=密码(“wordpresspassword”); mysql>将wp_itreewebdb.*上的所有权限授予由“wordpresspassword”标识的“wordpressuser”@“localhost”; mysql>刷新权限;
现在一切都正常了。

apt get安装版和手动下载版的wordpress有什么区别吗?谢谢Tim,看来我现在陷入了数据库连接问题,“建立数据库连接时出错”。