wp local wp admin setup config php
WordPress.org
Categories
Installing WordPress on your own Computer
Topics
Local Installation Instructions # Local Installation Instructions
Use these instruction for setting up a local server environment for testing and development.
Installing WordPress locally is usually meant for the purpose of development. Those interested in development should follow the instructions below and download WordPress locally.
Software Appliance – Ready-to-Use # Software Appliance – Ready-to-Use
You may find that using a pre-integrated software appliance is a great way to get up and running with WordPress, especially in combination with virtual machine software (e.g., VMWare, VirtualBox, Xen HVM, KVM).
Another software that can be used is Parallels, which you would have to pay for unlike virtual machine software. It allows you to run both Mac and Windows on your machine.
A software appliance allows users to altogether skip manual installation of WordPress and its dependencies, and instead deploy a self-contained system that requires little to no setup, in just a couple of minutes.
Unattended/automated installation of WordPress on Ubuntu Server 16.04 LTS # Unattended/automated installation of WordPress on Ubuntu Server 16.04 LTS
Unattended installation of WordPress on Ubuntu Server https://peteris.rocks/blog/unattended-installation-of-wordpress-on-ubuntu-server/
You can follow this guide by copy & pasting commands in a terminal to set up WordPress on a fresh Ubuntu Server 16.04 installation with nginx, PHP7, MySQL plus free SSL from LetsEncrypt.
You will not be prompted to enter any credentials or details like in other guides, everything is automated. You can even skip the installation wizard.
WAMP # WAMP
If you don’t have IIS on your computer or don’t want to use it, you could use a WAMP Stack :
These stacks can be downloaded freely and set up all the bits you need on your computer to run a website. Once you have downloaded and installed WAMP, you can point your browser at localhost and use the link to phpmyadmin to create a database.
Then, in order to install WordPress, download the zip file, and extract it into the web directory for your WAMP installation (this is normally installed as c:\wamp\www). Finally visit http://localhost/wordpress to start the WordPress install. (Assuming you extracted into c:\wamp\www\wordpress).
Tip: If you want to use anything other than the default permalink structure on your install, make sure you enable the mod_rewrite module in WAMP. This can be enabled by clicking on the WAMP icon in the taskbar, then hover over Apache in the menu, then Apache modules and ensure that the rewrite_module item has a checkmark next to it.
WordPress.org
Categories
How to install WordPress
Topics
WordPress is well-known for its ease of installation. Under most circumstances, installing WordPress is a very simple process and takes less than five minutes to complete. Many web hosts now offer tools (e.g. Fantastico) to automatically install WordPress for you. However, if you wish to install WordPress yourself, the following guide will help.
Things to Know Before Installing WordPress # Things to Know Before Installing WordPress
Before you begin the install, there are a few things you need to have and do. Refer the article Before You Install.
If you need multiple WordPress instances, refer Installing Multiple WordPress Instances.
Basic Instructions # Basic Instructions
Here’s the quick version of the instructions for those who are already comfortable with performing such installations. More detailed instructions follow.
That’s it! WordPress should now be installed.
Detailed Instructions # Detailed Instructions
Step 1: Download and Extract # Step 1: Download and Extract
Download and unzip the WordPress package from https://wordpress.org/download/.
The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
Step 2: Create the Database and a User # Step 2: Create the Database and a User
If you are using a hosting provider, you may already have a WordPress database set up for you, or there may be an automated setup solution to do so. Check your hosting provider’s support pages or your control panel for clues about whether or not you’ll need to create one manually.
If you determine that you’ll need to create one manually, follow the instructions for Using phpMyAdmin below to create your WordPress username and database. For other tools such as Plesk, cPanel and Using the MySQL Client, refer the article Creating Database for WordPress.
If you have only one database and it is already in use, you can install WordPress in it – just make sure to have a distinctive prefix for your tables to avoid over-writing any existing database tables.
Using phpMyAdmin # Using phpMyAdmin
If your web server has phpMyAdmin installed, you may follow these instructions to create your WordPress username and database. If you work on your own computer, on most Linux distributions you can install PhpMyAdmin automatically.
Note: These instructions are written for phpMyAdmin 4.4; the phpMyAdmin user interface can vary slightly between versions.
Step 3: Set up wp-config.php # Step 3: Set up wp-config.php
You can either create and edit the wp-config.php file yourself, or you can skip this step and let WordPress try to do this itself when you run the installation script (step 5). (you’ll still need to tell WordPress your database information).
(For more extensive details, and step by step instructions for creating the configuration file and your secret key for password security, please see Editing wp-config.php.)
Return to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php, and open it in a text editor.
DB_NAME The name of the database you created for WordPress in Step 2. DB_USER The username you created for WordPress in Step 2. DB_PASSWORD The password you chose for the WordPress username in Step 2. DB_HOST The hostname you determined in Step 2 (usually localhost, but not always; see some possible DB_HOST values). If a port, socket, or pipe is necessary, append a colon (:) and then the relevant information to the hostname. DB_CHARSET The database character set, normally should not be changed (see Editing wp-config.php). DB_COLLATE The database collation should normally be left blank (see Editing wp-config.php).
Save the wp-config.php file.
Step 4: Upload the files # Step 4: Upload the files
Now you will need to decide where on your domain you’d like your WordPress-powered site to appear:
Note: The location of your root web directory in the filesystem on your web server will vary across hosting providers and operating systems. Check with your hosting provider or system administrator if you do not know where this is.
In the Root Directory # In the Root Directory
In a Subdirectory # In a Subdirectory
Step 5: Run the Install Script # Step 5: Run the Install Script
Point a web browser to start the installation script.
Setup configuration file # Setup configuration file
If WordPress can’t find the wp-config.php file, it will tell you and offer to try to create and edit the file itself. (You can also do this directly by loading wp-admin/setup-config.php in your web browser.) WordPress will ask you the database details and write them to a new wp-config.php file. If this works, you can go ahead with the installation; otherwise, go back and create, edit, and upload the wp-config.php file yourself (step 3).
Finishing installation # Finishing installation
The following screenshots show how the installation progresses. Notice that in entering the details screen, you enter your site title, your desired user name, your choice of a password (twice), and your e-mail address. Also displayed is a check-box asking if you would like your blog to appear in search engines like Google and DuckDuckGo. Leave the box unchecked if you would like your blog to be visible to everyone, including search engines, and check the box if you want to block search engines, but allow normal visitors. Note all this information can be changed later in your Administration Screen.
If you successfully install the WordPress, login prompt will be displayed.
Install script troubleshooting # Install script troubleshooting
Common Installation Problems # Common Installation Problems
The following are some of the most common installation problems. For more information and troubleshooting for problems with your WordPress installation, check out FAQ Installation and FAQ Troubleshooting.
I see a directory listing rather than a web page.
The web server needs to be told to view index.php by default. In Apache, use the DirectoryIndex index.php directive. The simplest option is to create a file named .htaccess in the installed directory and place the directive there. Another option is to add the directive to the web server’s configuration files.
I see lots of Headers already sent errors. How do I fix this?
You probably introduced a syntax error in editing wp-config.php.
My page comes out gibberish. When I look at the source I see a lot of “ ” tags.
If the tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That’s why it’s called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
I keep getting an Error connecting to database message but I’m sure my configuration is correct.
Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host’s control panel to reset the password for your database user.
I keep getting an Your PHP installation appears to be missing the MySQL extension which is required by WordPress message but I’m sure my configuration is correct.
Check to make sure that your configuration of your web-server is correct and that the MySQL plugin is getting loaded correctly by your web-server program. Sometimes this issue requires everything in the path all the way from the web-server down to the MySQL installation to be checked and verified to be fully operational. Incorrect configuration files or settings are often the cause of this issue.
My image/MP3 uploads aren’t working.
If you use the Rich Text Editor on a blog that’s installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or other file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select Send to Editor.
Настройка wp-config.php для работы с несколькими окружениями: локальное, тест, продакшн
При разработке продуктов на WordPress рано или поздно встает вопрос о правильной настройке процесса. Сюда входит все: начиная от выбора локального окружения, отладки, тестирования и заканчивая настройкой развертывания (деплоя) итогового кода на сервер. От того, как работает каждое звено, зависит итоговая скорость появления новых фич на сайте, поэтому лучше ответственно подойти к задаче с самого начала.
Я не буду подробно рассматривать сейчас настройки собственно локального окружения, потому что это слишком обширная тема. Просто скажу, что есть 3 основных подхода, каждый со своими плюсами и минусами: Vagrant, Local by Flywheel и Docker. Код, предлагаемый в этой статье, подходит для первых двух окружений. Также, нет смысла в предлагаемой структуре проекта для разработки плагинов или тем – ведь они в принципе должны работать на любых окружения.
Инфраструктура как код
wp-config.php
А если не хранить доступы в Git?
Для некоторых проектов такой подход плох тем, что все доступы хранятся в общем репозитории и могут быть доступны любому участнику команды. В таком случае можно вынести все в отдельные файлы, например local.php, live.php, stage.php и подключать их в php для каждого окружения, вот так:
Спасибо uptimizt за идею и наводку на подход Infrastructure as code.
Если у вас есть вопросы по применению этого кода, критика или идеи по его улучшению – пишите их в комментариях. Любая обратная связь приветствуется!
WordPress.org
Codex
Установка WordPress
Contents
Знаменитая установка за 5 минут более подробная информации об этом процессе.
Необходимые вещи
Перед началом установки Вам потребуется узнать несколько вещей.
Это нужно знать
Вам нужен доступ к вашему сайту, его директориям и программное обеспечение для процесса установки. Это:
Это нужно сделать
Начните установку с:
Знаменитая 5-минутная установка
Ниже представлены краткие инструкций, для тех, кто уже знаком с процессом установки различных веб-приложений. Более подробные инструкции далее.
Установка в деталях
Шаг 1: Загрузка и распаковка
Загрузите и распакуйте дистрибутив WordPress, перейдя по ссылке http://ru.wordpress.org/releases/.
Шаг 2: Создание базы данных и пользователя
Если вы пользуетесь услугами хостинг-провайдера, возможно у вас уже есть предустановленная база данных для WordPress или же хостинг-провайдер предоставляет ее создание в автоматическом режиме. Обратитесь в службу тех. поддержки к хостинг-провайдеру или воспользуйтесь панелью управления хостинга cPanel для выяснения всех нюансов по созданию базы данных и заведению пользователей.
Если вам все же необходимо создать базу данных и пользователя самому, воспользуйтесь ниже представленными инструкциями: Доступ к phpMyAdmin на различных серверах, инструкцией Работа с cPanel или Работа с phpMyAdmin.
Если вы производите установку WordPress на вашем собственном веб-сервере, обратитесь к инструкциям Работа с phpMyAdmin или Работа с MySQL Клиентом для того, чтобы создать базу данных и пользователя для установки WordPress.
Работа с cPanel
Если ваш хостинг-провайдер использует cPanel, вы можете воспользоваться ниже представленными инструкциями, для создания базы данных и пользователя, чтобы в последующем установить WordPress.
Работа с phpMyAdmin
Если на вашем веб-сервере установлен phpMyAdmin, следуйте нижепредставленным инструкциям, чтобы создать базу данных и пользователя для последующей установки WordPress.
Внимание: Данные инструкции приведены для phpMyAdmin версии 2.6.0; поэтому внешний вид phpMyAdmin может отличаться от внешнего вида phpMyAdmin, установленного на вашем веб-сервере.
Работа с MySQL клиентом
Если у вас есть shell доступ к веб-серверу, вам удобно пользоваться коммандной строкой, а ваш MySQL пользователь имеетправа для создания других MySQL пользователей и баз данных, тогда вы можете воспользоваться нижеприведенными инструкциями для создания пользователя и базы данных для WordPress.
Впишите значения, которые вы используете для переменных databasename, wordpressusername, hostname, и password.
Работа с системой Plesk
Шаг 3: Настройка файла wp-config.php
Внимание: Этот шаг можно пропустить. Файл wp-config.php можно создать автоматически (при наличии прав на запись в папку установки у процесса вебсервера) просто зайдя на ваш сайт, вам потребуется ввести только адрес сервера БД, имя пользователя БД, имя базы данных, префикс таблиц и имя учетной записи администратора и пароль для нее. Всё! Или же вы можете продолжать читать далее как настроить wp-config.php вручную.
В данной части, все изменения вносятся в следующую часть кода:
Для получения более детальной информации и пошаговых инструкций, используемых при создании файла конфигурации следуйте по ссылке Editing wp-config.php.
Шаг 4: Размещение файлов
Теперь вам необходимо решить в каком именно месте вашего веб-сайта будет располагаться блог WordPress:
Внимание: Месторасположение корневого католога в файловой системе на вашем веб-сервере может значительно изменяться в зависимости от хостинг-провайдера и используемым им програмным обеспечением. Узнайте у вашего хостинг-провайдера или системного администратора, где именно располагается корневой каталог.
Размещение файлов в корневом каталоге
Размещение файлов в подкаталоге
Шаг 5: Запуск установки
Запустите ваш любимый веб-браузер для начала установки.
Решение проблем при запуске установки
Распространенные проблемы установки
Ниже описаны часто встречающиеся проблемы, возникающие в ходе установки системы. Для более детальной информации и решению проблем с установкой WordPress, обратитесь к Руководство по установке и Руководство по решению проблем.
Установка Multiple Blogs
Полее подробная информация размещена по следующей ссылке Установка Multiple Blogs.
Установка WordPress на локальном компьютере
Если у вас имеется достаточно мощный домашний компьютер и скорость соединения с интернетом позволяет вести мощный обмен данными с сетью, вы можете избежать использования услуг хостинг-провайдеров, используя свой компьютер в качестве сервера. Нижепредставленные руководства помогут разобраться с установкой веб-сервера и WordPress на локальный компьютер у вас дома.