Dapatkan Uang, klik link ini http://projects.id/uangberkah

Selasa, 13 Juli 2021

Cara Install Wordpress di Termux ( Langsung lewat hp Android )

 

Cara Install Wordpress di Termux ( Langsung lewat hp Android )

Cara Install Wordpress di Termux ( Langsung lewat hp Android )

Cara install wordpress di termux 

Wordpress merupakan cms berbasis blog ataupun toko online ataupun yang lain  ,sesuai anda ingin membuat website di wordpress seperti apa ? Apa blog biasa atau toko online , sebenarnya saya belum pernah mencoba wordpress tapi tutorial ini akan mencoba install wordpress langsung di Android lewat Aplikasi Termux 

Alat yang di perlukan untuk install wordpress 

1. Z-archiver 

Z-Archiver merupakan alat untuk mengkompres file dari nama ke nama ini , membuat folder pokoknya serba guna untuk yang namanya file ,jika anda belum punya z-archiver silahkan download dari link di bawah 

 ZARCHIVER
2. Aplikasi termux 

Aplikasi termux harus sudah bisa akses localhost anda bisa mencari tutorial cara buat localhost di termux dan  jika sama sekali belum ada aplikasinya silahkan download di playstore 

Cara install wordpress  di termux seperti berikut 

1. Buka Aplikasi termux 
2. $ apt update --> $ apt upgrude
3. Tulis $ cd /data/data/com.termux/files/usr/share/apache2/default-site/htdocs
4. Cek dengan menulis $ ls 
5. Selanjutnya buka mc jika belum ada install pkg mc dengan mengetik $ pkg install mc
6. Sesudah terinstall kutip $ mc [ enter  ]
7. Oh iya lupa ! Download terlebih dahulu wordpress dari situs wordpress.org 
8. Jika wordpress sudah terinstall 
9. Buka zarchiver kemudian pilih yang wordpress yang sudah di download tetapi jangan di ekstrack file tersebut cukup lihat isi file nya yang ada di dalam wordpress.tar.gz atau wordpress.zip kemudian cukup salin saja dalaman wordpress tersebut pastekan di area download juga 
10. Setelah isi file di salin dalamannya , buka lagi termux kemudian ketikan $ termux-setup-storage [ enter ] 
11. Cek dulu dengan nengetik $ ls jika ada file downloads 
12. Lanjutkan k mc dengan mengetik $ mc
13. Layar pasti terbuka , kemudian pilih  --->storage ---->downloads----pilih wordpress  lihat gambar di bawah


11. Setelah itu kopi file wordpress yang ada di sdcard /download ke
/data/data/com.termux/files/usr/share/apache2/default-site/htdocs 
Lihat gambambar di bawah 


Gambar berikutnya ketika kita mengklik wordpress klik file dibagian atas  + kopi 


Perlu di ingat juga file wordpress dari storage/sdcard/downloads
Pindah ke
/data/data/com.termux/files/usr/share/apache2/default-site/htdocs

12. Silahkan sekarang masuk termux ulangi ambil cd dengan mengetik
$ cd  /data/data/com.termux/files/usr/share/apache2/default-site/htdocs


13. Kemudian masuk localhost dengan perintah $ php -S localhost:8080 [ enter ]

14. Masuk ke browser kutip localhost:8080/wordpress mungkin tampilannya seperti di bawah 


Ups ! Tetapi hanya untuk melihat homepage wordpress doang jika tidak melanjutkan membaca 

15. Lihat gambar di bawah anda di haruskan menginput data untuk bisa menginstall wordpress
tetapi setelah anda memasukan data konfigurasi tersebut anda menemukan eror pesan tidak masuk pastinya jika tidak secara manual di buat di root di rektori wordpress ,anda harus mengubah file / atau membuat nama file wp-config.php.  beberapa kali beberapa cara terap eror seperti di bawah 


16. Agar tidak terjadi eror kita hanya perlu masuk ke root di rekttori wordpress kemudian menambahkan wp-config.php karna dalam direktori wordpress tidak ada yang ada hanya konfigurasi contoh di tulis dengan wp-config-sample.php dengan kode di bawah yang ada di dalam file wp-config.sample.php tersebut silahkan ganti apa apa text yang di garis bawah di bawah

/**
 * The base configuration for WordPress
 *
 * The wp-config.php creation script uses this file during the
 * installation. You don't have to use the web site, you can
 * copy this file to "wp-config.php" and fill in the values.
 *
 * This file contains the following configurations:
 *
 * * MySQL settings
 * * Secret keys
 * * Database table prefix
 * * ABSPATH
 *
 * @link https://wordpress.org/support/article/editing-wp-config-php/
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** MySQL database username */
define( 'DB_USER', 'username_here' );

/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

/** Database Charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/** The Database Collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', 'tambah_nanti' );

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define( 'AUTH_KEY',         'put your unique phrase here' );
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
define( 'NONCE_KEY',        'put your unique phrase here' );
define( 'AUTH_SALT',        'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
define( 'NONCE_SALT',       'put your unique phrase here' );

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each
 * a unique prefix. Only numbers, letters, and underscores please!
 */
$table_prefix = 'wp_';

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 *
 * For information on other constants that can be used for debugging,
 * visit the documentation.
 *
 * @link https://wordpress.org/support/article/debugging-in-wordpress/
 */
define( 'WP_DEBUG', false );

/* That's all, stop editing! Happy publishing. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}

/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

17. Tetapi anda harus membuat database di termux untuk kata sandi dan username server lokal di termux dengan perintah sebagai berikut

18. 1. Masuk termuk
       2. Kutip mysql -u @localhost
      3. buat database kutip ( create database wordpress ) [ enter ]
     4. ( GRANT ALL PRIVILEGES ON wordpress. * TO "USERNAME_ANDA"@"localhost" IDENTIFIED BY "SANDI_ANDA"; ) [enter]
   5.(  FLUSH PRIVILEGES; ) [ enter ]
   6. ( EXIT ) [ enter ]
   7. Lihat gambar di bawah
8. Sesudah itu masuk folder wordpress dengan mengutip $ cd /data/data/com.termux/files/usr/share/apache2/default-site/htdocs/wordpress [ enter ]
19.  Masuk buat file php wp-config.php dengan perintah $ nano wp-config.php [ enter ]
20. Masukan dulu saja kode sample yang ada di dalam file wp-config-sample.php
21. Ctrl + x [ enter ] auto klik y [ enter ]
22. buka mc dengan perintah $ mc silahkan edit folder wp-config.php dari kode sample yang perlu di ganti yang di garis bawahi 
23. Jika selesai dan perintah database benar 
24. Silahkan masuk ke php -S localhost:8080 [ enter ]
25. Masuk browser kutip localhost:8080  jika lulus anda akan sukses install wordpress  contoh lihat gambar di bawah




Nah untuk configurasi wp-config.php mungkin di postingan berikutnya

Mungkin cukup sekian mungkin seperti itu cara install wordpress di termux

Tidak ada komentar:

Posting Komentar