我已经安装了以下项目:
apt-get install apache2
apt-get install 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) ...
但是当我尝试使用以下网址访问它时,它失败了:
http://wp-companyweb01/wordpress/wp-admin/install.php
什么都没有出现。
答案 0 :(得分:1)
要检查的一些事情。您的.htaccess文件是否被升级覆盖?如果是这样,您将需要查看一些文档来阅读它应该如何设置。如果你找不到任何让我知道&我可以回复一些资源。
此外,登录mysql并找出关于网站网址的第1行(或第2行)和第39行(或40行)。
此外,http://wp-companyweb01/wordpress是否会出现?其他任何网站怎么样?
您发布的任何其他信息都会有所帮助。
答案 1 :(得分:1)
实际上我发现连接用户被授予“localhost”而不是服务器名。
所以解决办法是转到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;
现在一切正常。