在上一篇文章中,小编为您详细介绍了关于《vivo x6和魅族pro5相比真的很垃圾么?为什么样vivooppo很多非常一般的手机卖2000+也有不错销量》相关知识。本篇中小编将再为您讲解标题怎样搭建一个自有域名的 WordPress 博客?如何整合wordpress博客与discurz论坛。
具体有哪些步骤?请详解,谢谢!
那些用cPanel安装的答案对于我这种用搬瓦工(Bandwagon)VPS的人不太友好哇,而且大部分答案都不是手把手的“教程”。
最近建WordPress时找到了①些不错的教程,这里转载①下:How To Install Wordpress on Centos ⑥
栗子是搬瓦工默认的CentOS ⑥ x⑧⑥ · 从LAMP开始,其它(比如:How To Install Wordpress on Ubuntu ①④.⓪④)就不贴了。
●●●●●分割线●●●●●
How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS ⑥
About LAMP
LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest.
Set Up
The steps in this tutorial require the user on the virtual private server to have root privileges. You can see how to set that up in the Initial Server Setup Tutorial in steps ③ and ④.
Step One—Install Apache
Apache is a free open source software which runs over ⑤⓪% of the world’s web servers.
To install apache, open terminal and type in this command:
sudo yum install httpd
Once it installs, you can start apache running on your VPS:
sudo service httpd start
That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. ). The page should display the words “It works!” like this.
How to find your Server’s IP address
You can run the following command to reveal your server’s IP address.
ifconfig eth⓪ | grep inet | awk \'{ print $② }\'Step Two—Install MySQL
MySQL is a powerful database management system used for organizing and retrieving data on a virtual server
To install MySQL, open terminal and type in these commands:
sudo yum install mysql-serversudo service mysqld start
During the installation, MySQL will ask you for your permission twice. After you say Yes to both, MySQL will install.
Once it is done installing, you can set a root MySQL password:
sudo /usr/bin/mysql_secure_installation
The prompt will ask you for your current root password.
Since you just installed MySQL, you most likely won’t have one, so leave it blank by pressing enter.
Enter current password for root (enter for none): OK, successfully used password, moving on...
Then the prompt will ask you if you want to set a root password. Go ahead and choose Y and follow the instructions.
CentOS automates the process of setting up MySQL, asking you a series of yes or no questions.
It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.
By default, a MySQL installation has an anonymous user, allowing anyoneto log into MySQL without having to have a user account created forthem. This is intended only for testing, and to make the installationgo a bit smoother. You should remove them before moving into aproduction environment.Remove anonymous users? [Y/n] y ... Success!Normally, root should only be allowed to connect from \'localhost\'. Thisensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] y... Success!By default, MySQL comes with a database named \'test\' that anyone canaccess. This is also intended only for testing, and should be removedbefore moving into a production environment.Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success!Reloading the privilege tables will ensure that all changes made so farwill take effect immediately.Reload privilege tables now? [Y/n] y ... Success!Cleaning up...All done! If you\'ve completed all of the above steps, your MySQLinstallation should now be secure.Thanks for using MySQL!Step Three—Install PHP
PHP is an open source web scripting language that is widely used to build dynamic webpages.
To install PHP on your virtual private server, open terminal and type in this command:
sudo yum install php php-mysql
Once you answer yes to the PHP prompt, PHP will be installed.
PHP Modules
PHP also has a variety of useful libraries and modules that you can add onto your server. You can see the libraries that are available by typing:
yum search php-
Terminal then will display the list of possible modules. The beginning looks like this:
php-bcmath.x⑧⑥_⑥④ : A module for PHP applications for using the bcmath libraryphp-cli.x⑧⑥_⑥④ : Command-line interface for PHPphp-common.x⑧⑥_⑥④ : Common files for PHPphp-dba.x⑧⑥_⑥④ : A database abstraction layer module for PHP applicationsphp-devel.x⑧⑥_⑥④ : Files needed for building PHP extensionsphp-embedded.x⑧⑥_⑥④ : PHP library for embedding in applicationsphp-enchant.x⑧⑥_⑥④ : Human Language and Character Encoding Supportphp-gd.x⑧⑥_⑥④ : A module for PHP applications for using the gd graphics libraryphp-imap.x⑧⑥_⑥④ : A module for PHP applications that use IMAP
To see more details about what each module does, type the following command into terminal, replacing the name of the module with whatever library you want to learn about.
yum info name of the module
Once you decide to install the module, type:
sudo yum install name of the module
You can install multiple libraries at once by separating the name of each module with a space.
Congratulations! You now have LAMP stack on your droplet!
We should also set the processes to run automatically when the server boots (php will run automatically once Apache starts):
sudo chkconfig httpd onsudo chkconfig mysqld onStep Four—RESULTS: See PHP on your Server
Although LAMP is installed on your virtual server, we can still take a look and see the components online by creating a quick php info page
To set this up, first create a new file:
sudo nano /var/www/html/info.php
Add in the following line:
Then Save and Exit.
Restart apache so that all of the changes take effect on your virtual server:
sudo service httpd restart
Finish up by visiting your php info page (make sure you replace the example ip address with your correct one):
It should look similar to this.
How To Install Wordpress on Centos ⑥
About Wordpress
Wordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in ②⓪⓪③ and has since then expanded to manage ②②% of all the new websites created and has over ②⓪ · ⓪⓪⓪ plugins to customize its functionality.
Setup
The steps in this tutorial require the user to have root privileges. You can see how to set that up here in steps ③ and ④.
Before working with wordpress, you need to have LAMP installed on your server. If you don’t have the Linux, Apache, MySQL, PHP stack on your server, you can find the tutorial for setting it up here.
Once you have the user and required software, you can start installing wordpress!
Step One—Download WordPress
We can download Wordpress straight from their website:
wget
This command will download the zipped wordpress package straight to your user’s home directory. You can unzip it the the next line:
tar -xzvf latest.tar.gz Step Two—Create the WordPress Database and User
After we unzip the wordpress files, they will be in a directory called wordpress in the home directory.
Now we need to switch gears for a moment and create a new MySQL directory for wordpress.
Go ahead and log into the MySQL Shell:
mysql -u root -p
Login using your MySQL root password, and then we need to create a wordpress database, a user in that database, and give that user a new password. Keep in mind that all MySQL commands must end with semi-colon. First, let’s make the database (I’m calling mine wordpress for simplicity’s sake; feel free to give it whatever name you choose):
CREATE DATABASE wordpress;Query OK, ① row affected (⓪.⓪⓪ sec)
Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer:
CREATE USER wordpressuser@localhost;Query OK, ⓪ rows affected (⓪.⓪⓪ sec)
Set the password for your new user:
SET PASSWORD FOR wordpressuser@localhost= PASSWORD(\"password\");Query OK, ⓪ rows affected (⓪.⓪⓪ sec)
Finish up by granting all privileges to the new user. Without this command, the wordpress installer will not be able to start up:
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY \'password\';Query OK, ⓪ rows affected (⓪.⓪⓪ sec)
Then refresh MySQL:
FLUSH PRIVILEGES;Query OK, ⓪ rows affected (⓪.⓪⓪ sec)
Exit out of the MySQL shell:
exitStep Three—Setup the WordPress Configuration
The first step to is to copy the sample wordpress configuration file, located in the wordpress directory, into a new file which we will edit, creating a new usable wordpress config:
cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
Then open the wordpress config:
vi ~/wordpress/wp-config.php
Find the section that contains the field below and substitute in the correct name for your database, username, and password:
// ** MySQL settings - You can get this info from your web host ** ///** The name of the database for WordPress */define(\'DB_NAME\', \'wordpress\');/** MySQL database username */define(\'DB_USER\', \'wordpressuser\');/** MySQL database password */define(\'DB_PASSWORD\', \'password\');
Save and Exit.
Step Four—Copy the Files
We are almost done uploading Wordpress to the server. The final move that remains is to transfer the unzipped WordPress files to the website’s root directory.
sudo cp -r ~/wordpress/* /var/www/html
From here, WordPress has its own easy to follow installation form online.
However, the form does require a specific php module to run. If it is not yet installed on your server, download php-gd:
sudo yum install php-gd
Last of all restart Apache:
sudo service httpd restartStep Five—RESULTS: Access the WordPress Installation
Once that is all done, the wordpress online installation page is up and waiting for you:
Access the page by adding /wp-admin/install.php to your site’s domain or IP address (eg. ) and fill out the short online form (it should look like this).
感谢邀请,算起来,我的博客已经开站③个多月了,虽然每天从百度来的流量仍然是那么仅有的几⑩个,但幸好google大叔的排名还不错,每天能从google获得大约③⑤⓪⓪-⑤⓪⓪⓪IP的流量(可以看出来google确实喜欢wordpress),加上其他杂⑦杂⑧的搜索引擎来路,小小的博客每天的流量也突破⑥⓪⓪⓪IP了。 随着流量的增长,博客的评论也越来越多,每天光固定访客就有将近②⓪⓪⓪人,博客原有的评论功能感觉不够用了,于是想再开设①个论坛。 想到就做,论坛系统肯定首选Discuz,花了⑤分钟时间,安装了Discuz! X② · 开始设置论坛时,才发现Discuz并不能直接通过Ucenter管理中心实现与wordpress的用户共享和同步登录。搜遍了百度大婶,翻遍了discuz论坛,所能找到的方法都已经不适合最新版本的wordpress和Discuz! X②。这时候gogole大叔的好就体现出来了,通过gogole搜索,成功在①个国外的个人博客上找到了方法,也就是给wordpress安装①个叫Ucenter的插件就可以实现wordpress与Ucenter管理中心的整合了,下面就把具体步骤给大家分享①下。 ①.首先设置wordpress 登录wordpress后台,打开插件项,搜索插件Ucenter并安装激活。然后你可以在后台控制板的最下面看到新增加了①个名称为‘Ucenter’的项目,我们打开它,可以看到插件是中文的。 先来看Ucenter简介,这里面简述了设置插件的③个步骤, 其中第①个步骤需要在UCenter用户管理中心操作,我们先不管它。 打开第②项:Ucenter预定义设置,这里面需要你填写安装Discuz时需要的数据库链接资料。打开你论坛的config目录,找到里面的config_ucenter.php文件,对照填写就OK了。 然后我们再打开第③项设置:集成设置,这里面就比较容易了,按照上面的推荐把前两项都打勾,其它的根据个人偏好填写即可。这里需要说明的是,“打开信箱”这①项,我原先是选上的,但测试登陆时,却发现登陆到wordpress后,用户面板相对应的项目出现数据库链接错误,鉴于这①项实在没什么用处,建议大家不用选中它了。 ②.设置UCenter用户管理中心 登录UCenter用户管理中心后,打开应用管用- 添加新应用。应用类型选其他,应用名称随意填写,如wordpress;应用的主URL这①项填写上面我们说到的Ucenter插件的第①项,通信密钥填写你论坛的通信密钥,然后点下面的提交即可,其他项均不需要填写。 至此,wordpress和Discuz已经通过UCenter用户管理中心以及Ucenter插件完美整合,你现在可以测试下你的wordpress博客和Discuz的登陆同步是否存在问题,如有问题,请对照以上设置看是否有所遗漏。 以上就是Wordpres与Discuz整合的完美方法了,希望对有需要的朋友有所帮助。 哦,对了最后在升级到X②.⑤
编后语:关于《怎样搭建一个自有域名的 WordPress 博客?如何整合wordpress博客与discurz论坛》关于知识就介绍到这里,希望本站内容能让您有所收获,如有疑问可跟帖留言,值班小编第一时间回复。 下一篇内容是有关《乐视出的超级电视能颠覆电视业么?乐视超级电视质量咋样》,感兴趣的同学可以点击进去看看。
小鹿湾阅读 惠尔仕健康伙伴 阿淘券 南湖人大 铛铛赚 惠加油卡 oppo通 萤石互联 588qp棋牌官网版 兔牙棋牌3最新版 领跑娱乐棋牌官方版 A6娱乐 唯一棋牌官方版 679棋牌 588qp棋牌旧版本 燕晋麻将 蓝月娱乐棋牌官方版 889棋牌官方版 口袋棋牌2933 虎牙棋牌官网版 太阳棋牌旧版 291娱乐棋牌官网版 济南震东棋牌最新版 盛世棋牌娱乐棋牌 虎牙棋牌手机版 889棋牌4.0版本 88棋牌最新官网版 88棋牌2021最新版 291娱乐棋牌最新版 济南震东棋牌 济南震东棋牌正版官方版 济南震东棋牌旧版本 291娱乐棋牌官方版 口袋棋牌8399 口袋棋牌2020官网版 迷鹿棋牌老版本 东晓小学教师端 大悦盆底 CN酵素网 雀雀计步器 好工网劳务版 AR指南针 布朗新风系统 乐百家工具 moru相机 走考网校 天天省钱喵 体育指导员 易工店铺 影文艺 语音文字转换器