Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Bagian 5

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server Instalasi Apache 2.2, MySQL 5 dan PHP 5 pada FreeBSD 6,0 untuk Reliable Web Server

Part 5 – Installing PHP Hypertext Preprocessor Scripting Language 5 and PHP 5 Extensions Bagian 5 - Instalasi PHP hypertext preprocessor Scripting Language 5 dan PHP 5 Extensions

  1. Install by enter the following commands on FreeBSD OS command line, wait for previous command to finish before running the next command: Install oleh masukkan perintah berikut pada FreeBSD OS baris perintah, menunggu perintah sebelumnya selesai sebelum menjalankan perintah berikut:

    cd /usr/ports/lang/php5 cd / usr/ports/lang/php5
    make install clean make install bersih

  2. If you're prompted, select “use Apache 2.x instead”. Jika Anda diminta, pilih "menggunakan Apache 2.x, bukan".
  3. Continue with the following commands to install PHP5 extensions and modules to enable the support of the modules in Apache: Lanjutkan dengan perintah berikut untuk menginstal ekstensi PHP5 dan modul untuk mengaktifkan dukungan modul di Apache:

    cd /usr/ports/lang/php5-extensions cd / usr/ports/lang/php5-extensions
    make config membuat config

  4. At Options for php5-extension 1.0 menu, select all PHP extensions and modules that you may use with Apache webserver. Pilihan di PHP5 untuk perpanjangan 1,0-menu, pilih semua ekstensi PHP dan modul yang anda gunakan dengan Apache webserver. This is a part of the configuration for PHP, where you need to enable features of PHP that come in modules, such as ability to manage user sessions, interface with databases and many others. Ini merupakan bagian dari konfigurasi untuk PHP, di mana Anda harus mengaktifkan fitur PHP yang datang di modul, seperti kemampuan untuk mengelola sesi pengguna, antarmuka dengan basis data dan lain-lain. Default extensions such as ctype functions support, HASH Message Digest Framework support, session support and etc have been selected. Default ekstensi seperti fungsi dukungan ctype, Hash Pesan Digest Framework dukungan, etc sesi dukungan dan telah dipilih. Other popular extensions that you most likely to be in used are MySQL database support and GD library support. Populer lainnya ekstensi yang paling mungkin dalam database MySQL yang digunakan adalah dukungan dan dukungan GD perpustakaan. Use space bar to select or unselect the extensions and press Enter when done. Menggunakan jarak untuk memilih atau unselect ekstensi dan tekan Enter jika sudah selesai.
  5. Continue the installation of php5-extensions with the following commands: Melanjutkan instalasi PHP5-ekstensi dengan perintah berikut:

    make install clean make install bersih

  6. If there are any message the pops up and prompts you to select some options or configurations, you can just accept the default settings by pressing Enter. Jika ada pesan yang muncul dan akan meminta anda untuk memilih beberapa opsi atau konfigurasi, Anda dapat menerima pengaturan standar dengan menekan Enter. Some modules that may prompt you for action include php5-gd, php5-mbstring and php5-sqlite. Beberapa modul yang mungkin meminta Anda untuk memasukkan tindakan-gd PHP5, PHP5-mbstring-PHP5 dan SQLite.
  7. Edit the Apache configuration file in order to enable Apache web server to load the PHP modules when initialization: Edit file konfigurasi Apache untuk mengaktifkan web server Apache untuk memuat modul PHP pada saat inisialisasi:
    1. Go to Apache configuration file location by cd /usr/local/etc/apache2/ Menuju ke lokasi file konfigurasi Apache oleh cd / usr/local/etc/apache2 /
    2. Edit Apache configuration file by vi httpd.conf Edit file konfigurasi Apache httpd.conf oleh vi
    3. Search for LoadModule lines, after the last LoadModule line, but within the same section, add the following 2 lines: Mencari LoadModule baris, setelah baris terakhir LoadModule, tetapi dalam waktu yang sama bagian, tambahkan 2 baris berikut:

      AddType application/x-httpd-php .php AddType application / x-httpd-php. Php
      AddType application/x-httpd-php-source .phps AddType application / x-httpd-php-source. Phps

  8. Optionally, copy /usr/local/etc/php.ini-recommended or /usr/local/etc/php.ini-dist to /usr/local/etc/php.ini (in same directory), which will enable you to tune and change the default settings of behaviours of PHP. Optionally, copy /usr/local/etc/php.ini-recommended or /usr/local/etc/php.ini-dist to /usr/local/etc/php.ini (in same directory), which will enable you to tune dan mengubah perilaku default dari PHP.
  9. Start the Apache HTTP web server by using apachectl start (or restart Apache HTTP web server by using apachectl restart). Memulai Apache HTTP web server dengan menggunakan apachectl start (atau restart Apache HTTP web server dengan menggunakan apachectl restart). apachectl is located in /usr/local/sbin, if you encounter Command not found problem, try to change directory to its location. apachectl terletak di / usr / local / sbin, jika anda menemukan Perintah tidak ditemukan masalah, cobalah untuk mengubah direktori ke lokasi.
  10. PHP5 installation done. PHP5 instalasi selesai.

A web server has been setup with the FreeBSD with Apache, MySQL and PHP. A web server telah setup dengan FreeBSD dengan Apache, MySQL dan PHP. The document root of the web server (where you should put your HTML and PHP files is at /usr/local/www/apache22/data/ and you will need a SecureFTP (SFTP) client such as WinSCP to upload your files to web server securely. Akar dokumen server web (dimana anda harus menempatkan Anda HTML dan PHP adalah file di / usr/local/www/apache22/data / dan anda akan memerlukan SecureFTP (SFTP) klien seperti WinSCP untuk meng-upload file ke web server aman.

IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.


27 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5” 27 Responses to "Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - Bagian 5"

Pages: [2] Halaman: [2] 1 1 » » Show All Tampilkan Semua

  1. data trucker data trucker
    May 13th, 2009 08:18 13 Mei 2009 08:18
    27 27

    This php setup doesn't support mysql element. Php setup ini tidak mendukung mysql elemen. Drupal can't detect that mysql is running… I hope this could be modified and be of help to others. Drupal tidak dapat mendeteksi bahwa mysql sedang berjalan ... saya berharap hal ini dapat dimodifikasi dan bantuan kepada orang lain.

  2. fred fred
    November 25th, 2008 10:40 November 25, 2008 10:40
    26 26

    This is a fine series of articles! Denda ini adalah serangkaian artikel!

    The only real change I would suggest is executing portsnap or cvsup after the base installation, before installing apache, mysql and php. Satu-satunya perubahan nyata saya sarankan adalah melaksanakan cvsup atau portsnap setelah instalasi dasar, sebelum menginstal apache, mysql dan php.

Pages: [2] Halaman: [2] 1 1 » » Show All Tampilkan Semua

Leave a Reply Meninggalkan Balas

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Anda dapat menggunakan tag ini: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Berlangganan ke fitur komentar telah dinonaktifkan. To receive notification of latest comments posted, subscribe to Untuk menerima pemberitahuan komentar diposting terbaru, berlangganan My Digital Life Comments RSS feed Saya Digital Life Komentar RSS feed or atau register to receive mendaftar untuk menerima new comments in daily email digest. komentar baru di email harian digest.
Custom Search

New Articles Artikel Baru

Incoming Search Terms for the Article Cari Syarat masuk untuk Artikel

freeBSD php FreeBSD php - -- php freebsd php freebsd - -- freebsd apache mysql php freebsd apache mysql php - -- freebsd apache freebsd apache - -- apache2 freebsd apache2 freebsd - -- freebsd apache php mysql freebsd apache php mysql - -- freebsd apache2 freebsd apache2 - -- freebsd apache php freebsd apache php - -- freebsd php5 freebsd PHP5 - -- freebsd apache mysql freebsd apache mysql - -- apache freebsd apache freebsd - -- apache php mysql freebsd apache php mysql freebsd - -- freebsd apache2 php5 freebsd apache2 PHP5 - -- php apache freebsd php apache freebsd - -- php5 freebsd PHP5 freebsd - -- apache php freebsd apache php freebsd - -- freebsd apache php5 freebsd apache PHP5 - -- freebsd apache22 php5 freebsd apache22 PHP5 - -- apache php5 freebsd apache PHP5 freebsd - -- apache2 php5 freebsd apache2 PHP5 freebsd - -- freebsd apache22 php freebsd apache22 php - -- freebsd php mysql freebsd php mysql - -- apache mysql php freebsd apache php mysql freebsd - -- install php freebsd instal php freebsd - -- freebsd apache2 php freebsd apache2 php - -- installing apache on freebsd instalasi apache pada freebsd - -- freebsd php apache freebsd php apache - -- php5 apache2 freebsd PHP5 apache2 freebsd - -- libphp5.so freebsd libphp5.so freebsd - -- apache2 php freebsd apache2 php freebsd - -- apache22 php apache22 php - -- php5 apache freebsd PHP5 apache freebsd - -- installing apache freebsd instalasi apache freebsd - -- freeBSD php5-extensions FreeBSD ekstensi PHP5 - - -- install php5 freebsd menginstal PHP5 freebsd - -- freebsd mysql php apache freebsd mysql php apache - -- install php on freebsd install php di freebsd - -- freebsd apache install install apache freebsd - -- freebsd install apache freebsd menginstal apache - -- apache22 php5 apache22 PHP5 - -- download apache for freebsd download apache untuk freebsd - -- freebsd install apache2 freebsd instal apache2 - -- apache 2.2 php5 freebsd apache 2,2 PHP5 freebsd - -- apache22 php5 freebsd apache22 PHP5 freebsd - -- freebsd install apache php freebsd menginstal php apache - -- freebsd php5 apache2 freebsd PHP5 apache2 - -- php mysql freebsd php mysql freebsd - -- freebsd php extensions freebsd ekstensi php - -- php on freebsd php pada freebsd - -- Apache2 on FreeBSD Apache2 pada FreeBSD - -- freebsd install apache php mysql freebsd menginstal apache php mysql - -- freebsd php5 apache22 freebsd PHP5 apache22 - -- php for freebsd php untuk freebsd - -- install apache freebsd install apache freebsd - -- apache mysql freebsd apache mysql freebsd - -- freebsd libphp5.so freebsd libphp5.so - -- apache22 php freebsd php apache22 freebsd - -- freebsd php install php instal freebsd - -- apache 2.2 php freebsd apache php 2,2 freebsd - -- installing php on freebsd instalasi php di freebsd - -- all semua - -- freebsd install php5 freebsd menginstal PHP5 - -- freebsd mysql apache php freebsd apache mysql php - -- FreeBSD apache 2.2 PHP5 FreeBSD apache 2,2 PHP5 - -- freebsd php port php port freebsd - -- install apache PHP mysql freebsd install apache php mysql freebsd - -- freebsd php5 apache freebsd PHP5 apache - -- download apache freebsd download apache freebsd - -- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 Instalasi Web Server di FreeBSD 6.0 with Apache 2.2, PHP MySQL 5,0 dan 5 - -- FreeBSD libphp5 FreeBSD libphp5 - -- how to install php on freebsd cara menginstal php di freebsd - -- freebsd php mysql apache freebsd apache php mysql - -- install php apache freebsd menginstal php apache freebsd - -- FreeBSD + Apache FreeBSD + Apache - -- freebsd php5 port freebsd PHP5 port - --