WP Composer-install in a site subdirectory?
-
I’m setting up my 1st WP project. Trying to get it up & running with Composer install.
I want to have WP (/blog) in a subdir of my main site.
My initial, pre-WP skeleton looks like
<project> public/ index.php css/ js <code>
where my webserver doc root is
<project>/public
So nav to
https://example.com/
returns/renders that^ index.php.
I want co Composer-install WP so that it’s served up at
https://example.com/blog
Using @johnpbloch ‘s johnpbloch/wordpress-project
composer create-project johnpbloch/wordpress-project:dev-master wp
I can install the sources anywhere, but
(1) where *should* they be installed? under the existing <project>/public? so that I have
<project> public/ index.php css/ js/ wp/ composer.json composer.lock public/ index.php README.md vendor/
?
or,
(2) outside of the existing site tree so that I have,
<project> public/ index.php css/ js/ wp/ composer.json composer.lock public/ index.php README.md vendor/
and then point the webserver config somehow at that <project>/wp/public/index.php for anything
https://example.com/blog
?
I guess what I’m looking for is a how-to on composer-installing WP in a site subdir?
ac
- The topic ‘WP Composer-install in a site subdirectory?’ is closed to new replies.