로컬 컴퓨터에 워드 프레스를 설치 MAMP를 사용하여

If you’re a WordPress developer then you probably know how much quicker and easier it is to develop a theme or create a new WP site on your local machine rather than doing so on a remote server. The only slight problem with building a theme locally is that you can’t run PHP on your local browser — it’s just not supported. 다행히도, 우리가 사용할 수 있습니다 MAMP to easily and efficiently create a local PHP server on your machine.

icon-mamp

The steps to setting up your server are simple. Once you’ve installed MAMP, configure your settings as follows:

  • Make sure that your ports are configured to 8888 (you’ll access your server from localhost:8888), to do this click preferences and then ports from the main MAMP dashboard
  • Set your server’s document root (under the Web Server tab) to the directory that contains your WordPress install. If you have it set to another file or directory, you won’t be able to use MAMP to access your WP site.

Now that your server is configured, it’s time to set up WordPress. Click “start” on your MAMP dashboard. Set up your database by clicking the phpMyAdmin link and selecting “create new database.” Give your new database any name of your choosing.

To actually run your WordPress site, go to localhost:8888 and enter the following information into the fields you’ll find on your local server’s home page:
Database Name: yournewdatabasename
User Name (database): root
Password (database): root
Database Host/server: localhost
Table Prefix: wp_
That’s all you need to do to set up your site. Now all that’s left to do is to get to work.

출처

광고

회신을 남겨주

이 사이트는 스팸을 줄이기 위해 Akismet 플러그를 사용. 귀하의 코멘트 데이터가 처리되는 방법 알아보기.

우리는 당신에게 최고의 온라인 경험을 제공하기 위해 쿠키를 사용합니다. 동의함으로써 당신은에 따라 쿠키 사용을 허용 우리 개인 정보 정책.