Panduan Mengedit file PHP.ini di cPanel. Hai ! Apakah anda ingin mengubah file/code didalam file php.ini ? tetapi apakah anda tau apa itu php.ini? Php.ini adalah file konfigurasi PHP yang berfungsi untuk mengatur bagaimana PHP mengeksekusi script atau kode dalam website, disini saya akan menjelaskan bagaimana cara mengubah file php.ini melalui php selector , berikut penjelasannya : Show Panduan Mengedit file PHP.ini di cPanelDisini saya akan menjelaskan bagaimana cara mengubah file php.ini melalui php selector , berikut penjelasannya : Step 1 Login cPanelPertama anda bisa login ke halaman cPanel , seperti gambar dibawah ini : Step 2 Menu cPanelJika sudah anda akan menuju ke halaman cPanel , disini anda bisa mencari fitur Select Php Version, dengan cara ketik select php version pada kolom pencarian , seperti gambar dibawah ini : Step 3 PHP SelectorJika anda ingin mengubah file php.ini anda bisa klik Switch To PHP Options, seperti gambar dibawah ini : Dan anda akan menuju ke halaman PHP Options , disini terdapat beberapa setting di dalam file php.ini , seperti gambar dibawah ini : Disini anda bisa mengubah apapun di cPanel , sebagai contoh kita akan mengubah memory_limit , anda bisa mengubahnya dengan cara klk memory_limit lalu pilih berapa MB yang diperlukan lalu anda bisa klik Apply, seperti gambar dibawah ini : Jika sudah anda bisa klik Save dan Setting yang anda lakukan pun sudah disimpan oleh cPanel , seperti gambar dibawah ini : KesimpulanJika anda ingin mengubah setting di file php.ini anda bisa mengubahnya dengan cara menggunakan fitur Select PHP Version. Sekian Terima Kasih.
Author: Dicloud SupportLayanan Web Hosting berbasis teknologi komputasi awan terkini, berkerjasama dengan penyedia cloud #1 di dunia dengan Bantuan Teknis Terbaik dan Handal. The configuration file (php.ini) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. For the CGI and CLI versions, it happens on every invocation. php.ini is searched for in these locations (in order):
If php-SAPI.ini exists (where SAPI is the SAPI in use, so, for example, php-cli.ini or php-apache.ini), it is used instead of php.ini. The SAPI name can be determined with php_sapi_name().
Using environment variables can be used in php.ini as shown below. Example #1 php.ini Environment Variables ; PHP_MEMORY_LIMIT is taken from environment memory_limit = ${PHP_MEMORY_LIMIT} The php.ini directives handled by extensions are documented on the respective pages of the extensions themselves. A list of the core directives is available in the appendix. Not all PHP directives are necessarily documented in this manual: for a complete list of directives available in your PHP version, please read your well commented php.ini file. Alternatively, you may find » the latest php.ini from Git helpful too. Example #2 php.ini example ; any text on a line after an unquoted semicolon (;) is ignored [php] ; section markers (text within square brackets) are also ignored ; Boolean values can be set to either: ; true, on, yes ; or false, off, no, none register_globals = off track_errors = yes ; you can enclose strings in double-quotes include_path = ".:/usr/local/lib/php" ; backslashes are treated the same as any other character include_path = ".;c:\php\lib" It is possible to refer to existing .ini variables from within .ini files. Example: Assuming PHP is configured with --with-config-file-scan-dir=/etc/php.d, and that the path separator is :... $ php PHP will load all files in /etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d php PHP will load all files in /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=:/usr/local/etc/php.d php PHP will load all files in /etc/php.d/*.ini, then /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php PHP will load all files in /usr/local/etc/php.d/*.ini, then /etc/php.d/*.ini as configuration files.0. Scan directoriesIt is possible to configure PHP to scan for .ini files in a directory after reading php.ini. This can be done at compile time by setting the --with-config-file-scan-dir option. The scan directory can then be overridden at run time by setting the PHP_INI_SCAN_DIR environment variable. It is possible to scan multiple directories by separating them with the platform-specific path separator ( Assuming PHP is configured with --with-config-file-scan-dir=/etc/php.d, and that the path separator is :... $ php PHP will load all files in /etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d php PHP will load all files in /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=:/usr/local/etc/php.d php PHP will load all files in /etc/php.d/*.ini, then /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php PHP will load all files in /usr/local/etc/php.d/*.ini, then /etc/php.d/*.ini as configuration files.1 on Windows, NetWare and RISC OS; Assuming PHP is configured with --with-config-file-scan-dir=/etc/php.d, and that the path separator is :... $ php PHP will load all files in /etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d php PHP will load all files in /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=:/usr/local/etc/php.d php PHP will load all files in /etc/php.d/*.ini, then /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php PHP will load all files in /usr/local/etc/php.d/*.ini, then /etc/php.d/*.ini as configuration files.2 on all other platforms; the value PHP is using is available as the Assuming PHP is configured with --with-config-file-scan-dir=/etc/php.d, and that the path separator is :... $ php PHP will load all files in /etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d php PHP will load all files in /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=:/usr/local/etc/php.d php PHP will load all files in /etc/php.d/*.ini, then /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php PHP will load all files in /usr/local/etc/php.d/*.ini, then /etc/php.d/*.ini as configuration files.3 constant). If a blank directory is given in PHP_INI_SCAN_DIR, PHP will also scan the directory given at compile time via --with-config-file-scan-dir. Within each directory, PHP will scan all files ending in Assuming PHP is configured with --with-config-file-scan-dir=/etc/php.d, and that the path separator is :... $ php PHP will load all files in /etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d php PHP will load all files in /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=:/usr/local/etc/php.d php PHP will load all files in /etc/php.d/*.ini, then /usr/local/etc/php.d/*.ini as configuration files. $ PHP_INI_SCAN_DIR=/usr/local/etc/php.d: php PHP will load all files in /usr/local/etc/php.d/*.ini, then /etc/php.d/*.ini as configuration files.4 in alphabetical order. A list of the files that were loaded, and in what order, is available by calling php_ini_scanned_files(), or by running PHP with the --ini option. Bagaimana cara menjalankan file php?Untuk menjalankan file php, silahkan buka web browser seperti mozilla firefox, chrome, internet explorer atau web browser lain. Kemudian ketik url http://localhost/tutorial/ lalu enter, jika semua sudah benar maka akan tampil seperti gambar di bawah ini.
File php ini ada dimana?Dapat kita ketahui bersama, bahwa lokasi direktori file php.ini telah ditemukan yaitu di c:\xampp\php\php.ini, maka selanjutnya adalah membuka file tersebut menggunakan text editor.
Aplikasi apa yang dibutuhkan untuk menjalankan file PHP?File PHP pada dasarnya merupakan file text biasa yang bisa dibuat menggunakan aplikasi notepad bawaan windows, namun untuk penggunaan yang lebih baik, kita bisa pakai aplikasi text editor khusus programming seperti Notepad++, Atom, VS Code atau Sublime Text.
Apa itu file PHP?Hypertext Preprocessor atau PHP adalah bahasa penulisan skrip open-source yang banyak digunakan dalam pemrograman atau pengembangan website (web development). Bahasa ini umumnya dijalankan dalam komunikasi sisi server, dan saat ini didukung oleh hampir semua sistem.
|