I
I
Islam Ibakaev2017-07-12 08:53:37
CMS
Islam Ibakaev, 2017-07-12 08:53:37

How to put multiple projects on wordpress locally?

In general, I'm just getting acquainted with WordPress. Installed lamp stack on linux mint. Installed WordPress according to the tutorial
And then I thought: "What about other static projects that will need to be put on WordPress?".
Do I need to create a separate database for each site?
Maybe it would be better to install WordPress in the project directory at /var/www/html/project_name ? That is, for each project, re-install WordPress.
Do I understand correctly that the tutorial assumes that the author will not put more than one layout on WordPress. Otherwise, would it be necessary to install wordpress in the project directory and go through a separate installation for each project?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Igor Vorotnev, 2017-07-12
@devellopah

The proposed Multisite option is still an option, but it is far from always suitable. Firstly, one of the new sites may itself be a multisite, and secondly, there are some differences in coding. Thirdly, with the growth in the number of sites, given that they will be different and the sets of plugins / themes / custom code will also be different, it becomes more difficult to manage this.
In general, a separate database is used for each site, a separate WordPress installation in a separate project folder in /var/www/, a separate virtual host config for Apache or Nginx. This is fine. This is how servers work. That's the way it should be.
If we are talking about whether this monkey work of creating and setting up new sites can somehow be automated, then the answer is yes, it is possible and necessary. WP-CLI is used for this ..

N
nonamich, 2017-07-12
@dimaeromin

You need to ride a multi-site that will work on one base.
Instruction

M
Mixa, 2017-07-12
@Mixa

Activate the multisite mode in the config: https://codex.wordpress.org/Create_A_Network
To assign your own domain to each of the projects, you can use the WordPress MU Domain Mapping plugin

S
Sanes, 2017-07-12
@Sanes

https://web-cp.ru/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question