Cara menggunakan drupal 9 mysql module

Install and configure MySQL and PHP. You can get Mac binaries for OS X 10.3 and 10.4 from . PHP is also available from Marc Liyanage.

The stock version of Apache that comes with your Mac should be fine.

Turn on "personal web sharing" in the sharing panel of System Preferences to start Apache. Now comes the more involved part- changing the webserver configuration.

To make changes to the Apache configuration you should NOT edit /etc/httpd/httpd.conf but instead edit files in /private/etc/httpd/users/. Any file in the directory /private/etc/httpd/users/ ending with “.conf” will effectively be appended to /etc/httpd/httpd.conf. So any changes you want to make should be made in one or more configuration files of your own construction. System updates will leave these files untouched. You can create a file /private/etc/httpd/users/drupal.conf for all your Drupal-specific changes (even if you have no user named Drupal) and they will be loaded when Apache starts up.

Note: for Mac OS X Server 10.4 (Tiger Server) and most likely previous versions as well, do not make changes to /etc/httpd/httpd.conf expecting the AllowOverride All directive to work. The correct file to add the AllowOverride All directive is in the directory

#
# Dynamic Shared Object (DSO) Support
#
1. In that directory are the virtual host configuration files. Each virtual server has a configuration file in that directory so it is in those files that you must enable AllowOverride All. If you only have one web server on your server configured, then the file you want to modify is
#
# Dynamic Shared Object (DSO) Support
#
3.

To enable clean URLs you will need the following code in your conf file. You'll need to be root (or sudo) to do this. Don't forget to restart apache after modifying httpd.conf (turn personal web sharing off, then back on again, or use /usr/sbin/apachectl restart).

#  
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#     
#    AllowOverride None
        AllowOverride All

You may also need to edit this file to enable the PHP module for Apache. You have to uncomment two lines. First in this section:

#
# Dynamic Shared Object (DSO) Support
#

Uncomment this line (around line 235) by removing the

#
# Dynamic Shared Object (DSO) Support
#
4:

#LoadModule php4_module        libexec/httpd/libphp4.so

Then go below to this section:

#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.

and uncomment this line (around line 278) by removing the

#
# Dynamic Shared Object (DSO) Support
#
4:

#AddModule mod_php4.c

Drupal goes into /Library/WebServer/Documents/, or ~/Sites. If you use ~/Sites, you may also have to edit the .conf file in /etc/httpd/users that corresponds to your user account. You must AllowOverride in this file for your ~/Sites for clean URLs to work there.

After any edits to your .conf files, be sure to restart Apache (as described above).

MacZeaolots has a good tutorial on installing Drupal on Mac OS X 10.4. The same tutorial applies to 10.3 as well. While the tutorial talks about Drupal 4.6, the setup of the server environment is the same for any version of Drupal.


Important notes for MySQL install:

The version of PHP that Apple included with Mac OS X 10.4.4 has mysql.default_socket set to "/var/mysql/mysql.sock", while the binary version of MySQL from mysql.com uses "/tmp/mysql.sock". This will cause PHP to fail to connect to mysql with a message in Drupal like

Sudah menjadi rahasia umum bahwa Drupal merupakan salah satu CMS atau content management system yang paling popular untuk membangun website. Saat ini Drupal digunakan oleh lebih dari 2,1% website yang ada di internet, termasuk blog personal website eCommerce, website dating, galeri foto hingga forum. Jika kamu berencana untuk menggunakan Drupal untuk membangun website, kali ini kami akan bahas mengenai cara install Drupal secara manual.

Sebelum install Drupal secara manual, kamu terlebih dahulu memastikan bahwa web server yang kamu sewa sudah memenuhi syarat minimal teknis agar Drupal berjalan dengan lancar. Syaratnya diantaranya:

  • Web server: Apache, Nginx, Microsoft IIS atau web server apa saja yang mendukung PHP.
  • Data base: Untuk Drupal 8 minimal MySQl 5.5.3, MariDB 5.5.20, PostgreSQL 9.1.2, dan SQLLite 3.7.11. Drupal 7 minimal MySQL 5.0.15, MariaDB 5.1.44, PostgreSQL 8.3 dan SQLite 3.3.7.
  • PHP: Untuk Drupal 8 minimal menggunakan PHP 5.5.9. Dan untuk Drupal 7 menggunakan minimal PHP 5.2.5.
  • Disk Space minimum installation membutuhkan 15MB. Setidaknya 60MB dibutuhkan untuk website dengan banyak moduler dan theme yang di install. Selain itu tentunya kamu butuh space untuk menyimpan file lain seperti database, media, backup dan lainnya.

Cara Install Drupal Secara Manual

Untuk cara install Drupal secara manual, dasarnya kamu hanya perlu empat langkah yang terbilang mudah. Ikuti langkah-langkah dibawah ini.

Langkah 1

Yang pertama kamu harus lakukan adalah mendownload file instalasi Drupal di website resminya disini. Saat ini di website resminya yang tersedia adalah Drupal 8.2.6 dan Drupal 7.54 yang keduanya dirilis pada 1 Februari 2017. Atau mungkin sudah tersedia versi yang lebih baru, karena sering di update untuk memperbaiki bugs dan menutup celah keamanan yang ditemukan, dan kamu juga harus rajin-rajin mengupdatenya.

Kamu bisa memilih format file yang dinginkan tar.gz atau zip, yang mana saja sama. Setelah kamu mendwonloadnya, sekarang kamu harus menguploadnya ke server dan mengekstrak file tersebut. Untuk mengupload bisa menggunakan aplikasi FTP client seperti FileZilla atau melalui File Manager di control panel, karena alasan keamanan saya sarankan menggunakan File Manager.

Upload file tar.gz atau zip pada direktori root. Setelah selesai upload, ekstrak file tersebut dengan mengklik kanan pada file, kemudian klik tombol Extract. Setelah proses ekstrak selesai, lanjutkan proses berikutnya.

Langkah 2

Langkah selanjutnya adalah membuat database MySQL. Untuk membuatnya bisa menggunakan phpMyAdmin dari Control Panel. Buat database, masukan saja username dan password, dan piliha semua privileges, dan database segera dibuat. Jangan lupa untuk mengingat nama, username, dan password dari database yang baru dibuat.

Langkah 3

Sebelum menjalankan script instalasi, kamu perlu untuk membuat file settings.php terlebih dahulu untuk handling Drupal yang lebih baik. Ada file konfigurasi bawaan yang ada di dalam file instalasi yang bernama default.settings.php. Copy konten yang ada didalamnya, dan paste pada file baru settings.php, dan simpan file ini pada direktori yang sama dengan file bawaan.

Langkah 4

Langkah terakhir setelah semua persiapan selesai, adalah menjalankan scrips instalasi. Caranya cukup mudah, buka aplikasi browser dan masuk ke link http://yourdomain.com/install.php, ganti yourdomain dengan domain kamu. Akan muncul menu untuk memilih installation profile, pilih saha saja Standard.

Langkah selanjutnya adalah memilih bahasa, pilih sesuai dengan kebutuhan kamu. Setelah itu akan muncul halaman requirement verification, kamu bisa menskip halaman ini jika sudah memenuhi syarat minimum instalasi Drupal.

Sekarang akan tampil halaman Database configuration, masukan nama, username, dan password database yang telah dibuat sebelumnya, dan piliha MySQL untuk database type.

Langkah selanjutnya akan muncul halaman profile, masukan nama website, alamat email, dan konfigurasi akun dengan menambahkan username, email dan password.

Dan itulah langkah-langkah untuk install Drupal secara manual.

 

Jakartawebhosting menyediakan server yang sesuai dengan kebutuhan minimum sistem Drupal dan bisa dijadikan pilihan yang tepat untuk Drupal hosting.