WIKI使用導航
站長百科導航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機
- cPanel
- 網(wǎng)址導航專題
- 云計算
- 微博營銷
- 虛擬主機管理系統(tǒng)
- 開放平臺
- WIKI程序與應用
- 美國十大主機
WordPress:Answers-Installation
These FAQs have been deprecated. You will find the new updated Frequently Asked Questions on the new pages for the WordPress:FAQ.
這些常見問題解答已經(jīng)取消了。你在常見問題解答的新的頁面上會看到新的已更新的常見問題解答。
PHP and MySQL Requirements[ ]
PHP 和MySQL 要求[ ]
You certainly need PHP (version 4.1 or newer) and MySQL (version 3.23.23 or newer) to power your WordPress blog. PHP is the scripting language that drives all of WordPress, and without PHP, your server will not be able to interpret the pages that create your weblog. MySQL is a relational database, and WordPress works only with MySQL. Other databases are not supported at the moment.
你當然需要PHP(4.1版本或者更新)和MySQL(3.23.23版本或者更新)支持你的WordPress博客。PHP是種腳本語言,運行WordPress的所有部分,如果沒有PHP,你的服務器就不能夠翻譯創(chuàng)建你的博客的頁面。MySQL是關系數(shù)據(jù)庫,而且WordPress只與MySQL一起運行。暫時不支持其它的數(shù)據(jù)庫。
MySQL 4.1.7[ ]
MySQL 4.1.7[ ]
Do NOT use this version of mysql if you are trying to get WordPress installed using a Windows platform. Read this post originally made to the forums:
如果你試著使用Windows平臺安裝WordPress,請不要使用這個版本的mysql。請閱讀這篇論壇上的文章:
"To all those having problems installing Wordpress on your own Windows 2000 (and other Win OS versions) workstation - and maybe some host servers, too: Do not use MySQL 4.1.7 - it is the problem if you get "Error establishing a database connection!". It does not seem compatible with the other components. Use MYSQL 4.0.22 instead.
"寫給所有在Windows 2000 (或者其它Win OS 版本)平臺上安裝Wordpress遇到問題的人們- 可能也有一些主機服務器: 不要使用MySQL 4.1.7 – 會產(chǎn)生問題 "錯誤建立數(shù)據(jù)庫連接!"。似乎與其它部分不兼容。請使用 MYSQL 4.0.22 代替。
Thanks to the Reply by ADAMANT in response to the POST of Nov 6, 2004 02:21:29 by ANTOINE, the Wordpress installation really did become only 5 minutes, after two days of frustration:
感謝ADAMANT回復ANTOINE在2004年11月6日,02:21:29發(fā)表的文章,經(jīng)過兩天的嘗試,Wordpress真的只需要5分鐘就可以安裝了:
I started with Windows 2000, PHP 4.3.9, Apache 1.3.33 and MySQL 4.1.7. I spent two days checking my wp-config.php literally 100 times; making changes; troubleshooting my database, using every known name for my host (localhost, 127.0.0.1, <IP address>, computer name, etc...) to no avail. I kept getting:
我從Windows 2000,PHP4.3.9,Apache1.3.33和MySQL4.1.7開始。我花了兩天的時間逐字檢查了我的wp-config.php100次;做出更改;發(fā)現(xiàn)并且解決我的數(shù)據(jù)庫問題,為我的主機使用每個已知的名稱(localhost, 127.0.0.1, <IP 地址>,電腦名,等等...)但是沒有用。我還是收到:
"Error establishing a database connection!" ...
"錯誤建立了數(shù)據(jù)庫連接!" ...
I knew it wasn't my config. So thanks to ADAMANT's suggestion, I uninstalled MySQL 4.1.7 and downloaded and installed MySQL 4.0.22 from mysql.org. After installing and configuring the new (old) MySQL, which took approximately 7 minutes (very easy), I ran the install.php once again and YES!! it actually took less than 5 minutes for the Wordpress install.
我知道這不是我的配置。因此非常感謝ADAMANT的建議,我卸載了MySQL4.1.7并且從mysql.org中下載并且安裝了MySQL。安裝并且配置了新的(舊的)MySQL,大概需要7分鐘(非常簡單),我再次運行install.php并且成功了!!安裝Wordpress真的沒有花到5分鐘。
NOTE: the Apache web site says NOT to use Apache 2 in production. So, after all my wasted time with the latest MySQL, I suggest the following to those who can control their environment: PHP 4.3.9, Apache 1.3.33 and MySQL 4.0.22. On Windows at least, they all work well together."
注:Apache網(wǎng)站顯示不在產(chǎn)品中使用Apache2.因此,我浪費了這麼多時間處理MySQL后,我給那些能夠控制環(huán)境的人,建議以下內(nèi)容: PHP 4.3.9, Apache 1.3.33 和 MySQL 4.0.22。至少在Windows上,他們一起運行很好。" Steven
[UPDATE: MySQL 4.1.7 uses a new password encryption system that is incompatible with prior methods. If you want to get WordPress working with a 4.1.7 database, you need to make sure your user password is set as an old-style password (password-old instead of password, if you're using mysqladmin). -- Nabil] Note : The above are actual user comments, and may be subjective in their content. It is hoped that it will be of help to some users who face the specific problems that are addressed by this question..
Steven
[更新:MySQL4.1.7使用新的密碼加密系統(tǒng),這個系統(tǒng)與先前的方法不兼容。如果你希望WordPress在4.1.7數(shù)據(jù)庫上能夠運行,你需要確定你的用戶密碼設置為舊樣式的密碼(如果你使用mysqladmin,舊樣式的密碼而不是密碼)。--Nabil] 注:以上內(nèi)容是真正的用戶評論,而且內(nèi)容可能有些主觀。希望這寫評論,遇到評論中提到的相同問題的用戶,有幫助。
Why does WordPress use MySQL?[ ]
為什么WordPress 使用 MySQL?[ ]
MySQL is extremely fast. It's also the most widely available database server in the world. Open-source and free, MySQL is supported by thousands of low-cost Linux (and Windows!) hosts, which means a very low barrier to entry for anyone wanting to start a WordPress (or database-driven) website. MySQL's documentation is useful, cogent and thorough. (Though it may be intimidating if you're new to all this.) Add to all that the fact that users are able to directly manipulate MySQL with WordPress:phpMyAdmin, developed expressly for that purpose, and it's obvious that MySQL is the best choice. Of course, WordPress insists on the best.
MySQL非常地快,也是世界上最常用的數(shù)據(jù)庫服務器。開放源碼而且是免費的,MySQL由成千上萬個低成本的Linux(和Windows?。┲鳈C支持,意思是任何人想要啟動WordPress網(wǎng)站(或者數(shù)據(jù)庫驅(qū)動的網(wǎng)站)遇到的阻礙都較小。MySQL的文檔有用,徹底,恰到好處。(如果你對這個文檔不熟悉,你可能仍然還心存疑惑)。此外,用戶能夠直接地使用phpMyAdmin操作MySQL,毫無疑問,MySQL是最佳的選擇。當然,WordPress總是堅持選擇最好的。
There are several other excellent database storage engines, such as PostgreSQL and SQLite that WordPress is interested in supporting in the future. Suppporting multiple databases is trickier than it sounds and is not under active development, although there are plenty of architectural discussions about the best approach to take. Approaches for increasing the number of supported databases are discussed at WordPress:Using Alternative Databases. There is a PostgreSQL port of WordPress available called WordPress-Pg.
還有一些其它的非常棒的數(shù)據(jù)庫儲存引擎,如PostgreSQL 和SQLite,WordPress希望將來能夠支持這些引擎。支持多個數(shù)據(jù)庫比聽起來復雜,而且當前正在發(fā)展中,有許多關于支持多個數(shù)據(jù)庫的方法討論。關于支持多個數(shù)據(jù)庫的方法討論在使用其它的數(shù)據(jù)庫中。WordPress擁有的PostgreSQL端口稱為WordPress-Pg。
Upload Path[ ]
上傳路徑[ ]
When you specified the upload path, you used backslashes.
規(guī)定了俄上傳路徑,你使用反斜線符號。
Use forward slashes "/" to specify the directory.
使用順斜線符號"/"規(guī)定目錄。
- 使用你已經(jīng)更改的用戶名和密碼登錄到WordPress。
-->
Delete Files[ ]
刪除文件[ ]
There are no files that you must delete.
沒有你必須刪除的文件。
There are no risks to your WordPress files or your database by leaving all the files exactly as they were when you uploaded them.
當你上傳文件的時候,使得文件保存原狀,對你的WordPress文件或者你的數(shù)據(jù)庫沒有什么風險。
However, it is safe to delete the following:
然而,刪除下面的內(nèi)容是安全的:
- license.txt
- Readme.html
- the import*.php files
- license.txt
- Readme.html
- the import*.php 文件
Rename Folder[ ]
重新命名文件夾[ ]
If you have not installed WordPress, you can rename the folder with the WordPress files.
如果你沒有安裝WordPress,你可以使用WordPress文件重新命名文件夾。
If you have already installed WordPress, and you want to rename the folder, login to the weblog as the administrator and change the following settings in Options->General :
如果你已經(jīng)安裝了WordPress,而且你想要重新命名文件夾,以管理員身份登錄到博客,在選項->總中,更改以下的設置:
- WordPress address (URI):
- Blog address (URI):
- WordPress 地址 (URI):
- 博客地址(URI):
Once you have done this, you can rename the directory or folder with the wordpress files in it.
完成這個操作之后,你可以重新命名WordPress文件的目錄或者文件夾。
Safe Mode[ ]
安全模式[ ]
Most definitely! There are no known issues with any version of WordPress when PHP is running in Safe Mode.
非常確定!當PHP在安全模式下運行的時候,任何版本的WordPress都沒有問題。
allow_url_fopen[ ]
allow_url_fopen[ ]
In order to accept incoming pingbacks, you have to set 'allow_url_fopen = On' in php.ini.
為了要接受即將到來的pingbacks,你需要設置'allow_url_fopen = On' in php.ini.
403 Error[ ]
403 錯誤[ ]
Symptoms:
癥狀:
You cannot seem to login after using the right username and password, into your admin account.
在你的管理帳戶上輸入正確的用戶名和密碼之后,你似乎還是不能夠登錄。
You get an error message like :
你得到錯誤信息,如:
You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied. If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the personal.rbhemauer.com home page. You can click Search to look for information on the Internet. HTTP Error 403 - Forbidden
你沒有得到授權(quán)瀏覽這個頁面 你可能沒有權(quán)限瀏覽這個目錄或者頁面,請使用你支持的權(quán)限 如果你相信你能夠瀏覽這個目錄或者頁面,情是這個聯(lián)系網(wǎng)站,使用列在personal.rbhemauer.com主頁上的電子郵件地址或者電話號碼。你可以點擊搜索,查找因特網(wǎng)上的信息。 HTTP錯誤403-禁止
Solution:If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load index.htm, index.html, default.htm, default.html, default.asp files.
解決辦法:如果你的帳戶托管在Windows服務器上,可能是目錄索引的問題。服務器默認配置是要上傳index.htm, index.html, default.htm, default.html, default.asp文件。
Wordpress is done in PHP so the default page is index.php. Now this is not part of the default configuration so we need to add it. To do this, you need to click on Web Options in the Control Panel. Then scroll down to the Directory Indexes section to add index.php to the Directory Indexes.
Wordpress是以PHP編寫的,因此默認頁面是index.php。現(xiàn)在這不是默認配置的一部分,因此我們需要添加。你需要點擊控制面板上的網(wǎng)絡選項。然后下滾至目錄索引部分,將index.php添加到目錄索引。
You could also contact your webhost for support in this matter.
你也可以聯(lián)系你的網(wǎng)絡主機得到這個問題的相關支持。
Create Database[ ]
創(chuàng)建數(shù)據(jù)庫[ ]
In the setup of WordPress, it will ask to setup the database. The appropriate answers are "Yes" and "No".
創(chuàng)建WordPress時,會要求你創(chuàng)建數(shù)據(jù)庫。合適的答案是"是的" 和"不是"。
- If your hosting plan allows only one MySQL database, you will probably need to answer "Yes".
- 如果你的托管方案只允許一個MySQL 數(shù)據(jù)庫,你可能需要回答"是的"。
- If your cPanel tells you the name of your MySQL database, then just enter that into DB NAME in wp-config.php.
- 如果你的cPanel向你顯示你的MySQL數(shù)據(jù)庫的名稱,那么只要將這個名稱輸入wp-config.php中的DB名稱。
- If you have multiple databases you can use, you will need to create the database, and then assign that name to DB NAME in wp-config.php so that WordPress knows which database to use when installing.
- 如果你可以使用多個數(shù)據(jù)庫,你需要創(chuàng)建數(shù)據(jù)庫,然后將這個數(shù)據(jù)庫名遞交到wp-config.php中的DB名,這樣,WordPress知道安裝的時候,使用哪個數(shù)據(jù)庫。
- 請看看安裝,詳細的指示說明
PHP Version[ ]
PHP 版本[ ]
To get information about your server, you can use the PHP Info function:
得到關于你的服務器的信息,你可以使用PHP信息函數(shù):
- Paste this into a new Notepad / BBEdit file
- 將這個粘貼到新的Notepad / BBEdit文件
<?php phpinfo(); ?>
<?php phpinfo(); ?>
- Save as info.php
- 作為info.php保存
- Upload to server. Visit in your browser (www.example.com/info.php)
- 上傳到服務器。在你的瀏覽器中訪問(www.example.com/info.php)
- That will give you info about your php version and mod_rewrite.
- 這個站點會向你提供有關你的php版本和 mod_rewrite的信息。
Multiple Blogs[ ]
多個博客[ ]
See: WordPress:Installing Multiple Blogs
請看看:安裝多個博客
Apache[ ]
Apache[ ]
WordPress works best on Apache 2.x To see your version, the phpinfo script above will tell you what version of Apache your server is running.
WordPress在Apache 2.x上能夠最好地運行。要查看你的版本,上述的phpinfo 腳本會提示你的你的服務器正在運行哪個版本的Apache。
Note: If you are running WordPress 1.5 on Apache 1.3.x you will have trouble WordPress:Using Permalinks with the %category% permalink structure. "If you are using Apache 1, do not use %category% in your permalink structure."
注意:如果你在Apache 1.3.x上運行WordPress1.5,你使用Permalinks會遇到%category% permalink結(jié)構(gòu)的問題。"如果你正在使用Apache 1 ,請不要在到你的premalink結(jié)構(gòu)中使用%category%。"