Last active
July 1, 2023 09:01
-
-
Save Zszywaczyk/3aee050916546f81622987f2ad01dd11 to your computer and use it in GitHub Desktop.
Getting ready with Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Open CDM as Administrator | |
2. Type: setx PATH "%PATH%;C:\xampp\php" /m | |
3. Close and reopen CMD as administrator | |
4. For test type: php -v | |
5. Type setx PATH "%PATH%;C:\xampp\mysql\bin" /m | |
6. For test type: mysql -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create folder C:\xampp\wp-cli | |
2. Download wp-cli via CMD: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
3. Create file wp.bat and type: | |
@ECHO OFF | |
php "c:/wp-cli/wp-cli.phar" %* | |
4. In CMD set env variable: setx PATH "%PATH%;C:\xampp\wp-cli" /m | |
5. Reopen CMD and for test type wp --info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. download last wordpress: wp core download --locale=pl_PL | |
2. loggin into mysql: mysql -u root -p | |
3. create database: create database db_name default character set utf8 collate utf8_unicode_ci; | |
4. Chcek if db exist: show databases; | |
5. Close mysql CTRL+C | |
6. Change connection settings: wp core config --dbhost=localhost --dbname=db_name --dbuser=root --dbpass= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In cmd: mklink /d "C:\xampp\htdocs\yoursite.local" "C:\zWWW\client\yoursite.local" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. (xampp) Add to file C:\xampp\apache\conf\extra\httpd-vhosts.conf lines: | |
<VirtualHost yoursite.local> | |
ServerAdmin admin@emial.com | |
DocumentRoot "C:/xampp/htdocs/yoursite.local" | |
ServerName yoursite.local | |
ErrorLog "logs/yoursite.local-error.log" | |
CustomLog "logs/yoursite.local-access.log" common | |
</VirtualHost> | |
2. (windows) Add to file c:\windows\System32\Drivers\etc\hosts line: | |
127.0.0.1 yoursite.local | |
3. Remember to restart xampp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type in cmd: wp core install --url=yoursite.local --title="Blog Title" --admin_name=admin_username --admin_password=password --admin_email=admin@email.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment