Is there a way to install WordPress on the main domain and PHP script on a sub directory?

Keywords: WordPress - AWS - How to - Services (Apache, MariaDB, MySQL…)

I have installed WordPress from bitnami on AWS. But can I install a PHP script on a subdirectory.
For example: should be the Wordpress should be the PHP script.

Hello @varunvarathv,

Please take a look at our documentation:

Don’t hesitate to ask if you have any doubt


Sorry, I don’t get it. The documentation shows to install the custom PHP application but I’m asking to install the application on the subdirectory of the WordPress.

Hello @varunvarathv,

The documentation explains the recommended steps to create a custom PHP application. It uses virtualhost to server it fo Approach A.

For Approach B, you can see the prefix configuration:

  Alias /myapp/ "/opt/bitnami/apps/myapp/htdocs/"
  Alias /myapp "/opt/bitnami/apps/myapp/htdocs/"

With that, you could serve your app in

I hope it helps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.