Adding a Wordpress Installation to an existing CAKEPHP application

Keywords: LAMP/MAMP/WAMP - AWS - How to - Plugins installation/configuration

Description:
I have a running cakephp application to which I want to add a blog. My preferred blog engine is WP. I do not want to use a subdomain (blog.example.com) I want to use a directory (https://example.com/blog) for SEO reasons.

My question: is what is the best way to do this short of tinkering with some htaccess file?

I have downloaded WP into a blog/ folder which hangs off of the app root folder
/root
/app (cake’s app directory)
/webroot
/…
/blog (wordpress directory)
/wp-admin
/…

Hi @ddGuy,

I do not know if you followed the Bitnami guides to deploy the applications but if you want to use the htaccess files to configure this, you will need to take a look at this guide first.

https://docs.bitnami.com/aws/infrastructure/lamp/administration/use-htaccess/

Hi @jota
Thanks for replying so promptly. The document is certainly very insightful. But my original question asked was how to do it w/o messing around with .htacess

Hi @ddGuy,

Sorry for the misunderstanding.

Where is that blog folder? Did you use the htdocs folder of Apache to deploy it? There is already a virtual host serving that folder. In that case, you can also deploy WordPress there and access it using /blog (you will need to configure the wp-config.php file). In order to create a database for the WordPress app, you will need to follow this guide

https://docs.bitnami.com/aws/apps/wordpress/configuration/create-database-mariadb/

Hi @jota
The blog folder is directly at same level as my app/ folder (see below)
Since I already had a cakephp application running, i want to simply add a wordpress blog w/o having to use a subdomain (as in blog.example.com). I want to integrate WP directly into the already CakePHP app (see config below). My cakephp Views are served off webroot (document root) and I am trying to configure WP to fit in.

/root
/app (cake’s app directory)
/webroot
/…
/blog (wordpress directory)
/wp-admin
/…

Hi @ddGuy,

If you already have the “app” and “blog” folders in the machine and you can access app by using yourIP/app, you should be able to access WordPress by using yourIP/blog. As I explained above, if you deployed those folders inside the /opt/bitnami/apache2/htdocs folder (default DocumentRoot), they should be accesible right now.

With a brand new installation of Bitnami XAMPP on Mac, I url over to http://ocalhost/blog and see the following. This is w/o me doing anything else (not creating a blog folder or anything. I just installed the server and url over to http://ocalhost/blog

My question is where in the Bitnami XAMPP configuration does it know to pickup the blog folder?
I have searched all the Virtual Hosts and everywhere else but could not see how it picks up the directory. Any help is greatly appreciated it

@jota
I ended up figuring all out (at least as it pertains to this question). Thanks for your guidance
The thread can now be closed

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