How to make Multisite using WordPress

Share

WordPress 인스톨 한번으로 여러 싸이트를 한곳에서 관리하는 방법

기본 정보 링크:
https://wordpress.org/documentation/article/create-a-network/


Step 1: Prepare Your WordPress

WordPress 인스톨은 root 폴더에 해야한다. 만약 root 폴더에 하지 않으면 network (multisite) admin 에 로그인할때 문제가 발생한다.

Step 2: Allow Multisite

To enable the Network Setup menu item, you must first define multisite in the wp-config.php file.

Open up wp-config.php and add this line above where it says 
/* That’s all, stop editing! Happy publishing. */
If it doesn’t say that anywhere, then add the line somewhere above the first line that begins with require or include:

/* Multisite */ define( 'WP_ALLOW_MULTISITE', true );

You will need to refresh your browser to continue.

Step 3: Installing a Network

The previous step enables the Network Setup item in your Tools menu. Use that menu item to go to the Create a Network of WordPress Sites screen.

To see an example of the Create a Network of WordPress Sites screen, look at Administration >Tools > Network Setup. The screen does not look exactly the same in all circumstances. The example shown is for an installation on localhost, which restricts the options available.

Addresses of Sites in your Network

You are given the choice between sub-domains and sub-directories, except when existing settings restrict your choice.

You must choose one or the other. You can reconfigure your network to use the other choice after installation, despite the advice on the screen, but reconfiguring it might not be easy.

You only need wildcard DNS for on-demand domain-based sites, despite the advice that may be on the screen.

Once more: See Before You Create A Network.

Sub-domains — a domain-based network in which on-demand sites use subdomains
Sub-directories — a path-based network in which on-demand sites use paths
Network Details

These are filled in automatically, but you can make changes. Server Address The domain of the URL you are using to access your WordPress installation. Network Title The title of your network as a whole. Admin E-mail Address Your email address as super admin of the network as a whole.

Double-check the details and press the Install button.

Note: The installer may perform a check for wildcard subdomains when you have not configured them yet, or when you do not need them at all. Ignore the warning if it does not apply to your network. See the Server Requirements section in Before You Create A Network for information about wildcard subdomains.

Step 4: Enabling the Network

To enable your network, follow the instructions on the Create a Network of WordPress Sites screen. The instructions that you see are customized for your installation. They might not be the same as the examples you see here.

Back up your existing wp-config.php and .htaccess files, unless this is a fresh install and you have nothing to lose.

There are two steps: 1. Add the specified lines to your wp-config.php file The extra lines go just after where you added the line in Step 1: Prepare Your WordPress. 2. Add the specified lines to your .htaccess file If you do not have a .htaccess file, then create it in the same directory as your wp-config.php file. If you ALREADY have a .htaccess file, replace any existing WP lines with these new ones. In some cases you might also have to add Options FollowSymlinks at the start of the file.

After completing these steps, log in again using the link provided. You might have to clear your browser’s cache and cookies in order to log in.

Step 5: Network Admin Settings

At the left of your WordPress toolbar, My Sites is now the second item. There, all your sites are listed, with handy fly-out menus, as well as a Network Admin menu item. Under Network Admin you can use the Dashboard item to go to the Network Dashboard screen.

Go to the Settings Screen to configure network options, and the Sites Screen to manage your sites.

For more information, see: Network Admin

Upgraded and can’t find the Network Admin menu?

Step 6: Administration

There are some additional things you might need to know about advanced administration of the network, due to the additional complexity of a Multisite. Even if you’re familiar with WordPress, the location and behavior of Multisite Network Administration can be confusing.

Read Multisite Network Administration for more information.

For help troubleshooting:

Debugging a WordPress Network

Step 7: Additional Setting

• Godaddy 에서 name server setting 을 해야 한다.

• 서버 cPanel 에서 addon domains 을 만들면서 Document Root 셋팅을 root 으로 변경해서 만들어야 한다.

• Network Admin 에서
1. New Site 만들때 Site Address 는 원하는 이름 (도메인네임) 정할것
2. Site Title 넣고 (추후 다른것으로 변경 가능)
3. Admin Email 은 Network Admin (Super Admin) 이메일로 지정해줄
4. Click “Add Site” button
5. All Sites 로 이동해서 방금 만든 사이트 Edit 으로 들어가서 Site Address (URL) 을 다시 수정해주고 click “Save Changes” button
6. 끝