Bitnami Wordpress堆栈是否允许多个Wordpress安装 [英] Does bitnami wordpress stack allow multiple wordpress installs

查看:119
本文介绍了Bitnami Wordpress堆栈是否允许多个Wordpress安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用bitnami wordpress堆栈,我正在使用一个网站,但我也想启动另一个网站,但是我不想使用多站点,因为我不想让他们共享数据库./p>

那么可以在bitnami上安装另一个WordPress吗?如果是的话,我该怎么办?

解决方案

此处是Bitnami工程师,

您可以按照以下步骤在正在运行的Bitnami实例之上部署另一个应用程序.他们假定您的应用程序将位于/opt/bitnami/apps/myapp/目录中:

  • 运行以下命令来创建目录并分配必要的权限:

sudo mkdir /opt/bitnami/apps/myapp
sudo mkdir /opt/bitnami/apps/myapp/htdocs/
sudo mkdir /opt/bitnami/apps/myapp/conf            
sudo chown -R bitnami:daemon /opt/bitnami/apps/myapp/htdocs/
sudo chmod -R g+w /opt/bitnami/apps/myapp/htdocs/

  • 创建和编辑/opt/bitnami/apps/myapp/conf/httpd-prefix.conf文件,并在其中添加以下行:

Alias /myapp/ "/opt/bitnami/apps/myapp/htdocs/"
Alias /myapp "/opt/bitnami/apps/myapp/htdocs/"
Include "/opt/bitnami/apps/myapp/conf/httpd-app.conf"

  • 创建和编辑/opt/bitnami/apps/myapp/conf/httpd-app.conf文件,然后将以下内容添加到其中.这是您应用程序的主要配置文件,因此请根据您应用程序的要求对其进行进一步修改.

<Directory /opt/bitnami/apps/myapp/htdocs/>
    Options +FollowSymLinks
    AllowOverride None
    <IfVersion < 2.3 >
    Order allow,deny
    Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
    Require all granted
    </IfVersion>
</Directory>

注意:如果您的应用程序使用.htaccess文件,则应将AllowOverride None选项更改为AllowOverride All.了解如何将.htaccess文件内容移动到主服务器配置文件中.

创建完上面的文件和目录后,将以下行添加到主Apache配置文件的末尾/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf,如下所示:

Include "/opt/bitnami/apps/myapp/conf/httpd-prefix.conf"

重新启动Apache服务器:

sudo /opt/bitnami/ctlscript.sh restart apache

您现在应该可以通过 http://SERVER-IP/myapp 访问该应用程序./p>

注意:由于WordPress需要数据库,因此您需要在服务器中创建一个新数据库

您可以在我们的文档指南中找到有关如何部署自定义应用程序的更多信息

https://docs.bitnami. com/general/apps/wordpress/administration/create-custom-application-php/

谢谢

I am currently using the bitnami wordpress stack, I have a website I'm working on but I also want to start another but I don't want to use multisite because I don't want them to share a database.

so is it possible to install another WordPress on bitnami? if yes how do i go about it?

解决方案

Bitnami Engineer here,

You can deploy another application on top of a running Bitnami instance by following these steps. They assume that your application will live in the /opt/bitnami/apps/myapp/ directory:

  • Run the following commands to create the directories and assign the necessary permissions:

sudo mkdir /opt/bitnami/apps/myapp
sudo mkdir /opt/bitnami/apps/myapp/htdocs/
sudo mkdir /opt/bitnami/apps/myapp/conf            
sudo chown -R bitnami:daemon /opt/bitnami/apps/myapp/htdocs/
sudo chmod -R g+w /opt/bitnami/apps/myapp/htdocs/

  • Create and edit the /opt/bitnami/apps/myapp/conf/httpd-prefix.conf file and add the line below to it:

Alias /myapp/ "/opt/bitnami/apps/myapp/htdocs/"
Alias /myapp "/opt/bitnami/apps/myapp/htdocs/"
Include "/opt/bitnami/apps/myapp/conf/httpd-app.conf"

  • Create and edit the /opt/bitnami/apps/myapp/conf/httpd-app.conf file and add the content below to it. This is the main configuration file for your application, so modify it further depending on your application’s requirements.

<Directory /opt/bitnami/apps/myapp/htdocs/>
    Options +FollowSymLinks
    AllowOverride None
    <IfVersion < 2.3 >
    Order allow,deny
    Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
    Require all granted
    </IfVersion>
</Directory>

NOTE: If your application uses .htaccess files, you should change the AllowOverride None option to AllowOverride All. Find out how to move the .htaccess file content to the main server configuration file.

Once you have created the files and directories above, add the following line to the end of the main Apache configuration file at /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf, as shown below:

Include "/opt/bitnami/apps/myapp/conf/httpd-prefix.conf"

Restart the Apache server:

sudo /opt/bitnami/ctlscript.sh restart apache

You should now be able to access the application at http://SERVER-IP/myapp.

Note: As WordPress requires a database, you will need to create a new database in the server

You can find more information about how to deploy a custom application in this guide of our documentation

https://docs.bitnami.com/general/apps/wordpress/administration/create-custom-application-php/

Thanks

这篇关于Bitnami Wordpress堆栈是否允许多个Wordpress安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆