configure_certain_settings_in_php_ini_ubuntu_22_04_nextcloud_27_0
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configure_certain_settings_in_php_ini_ubuntu_22_04_nextcloud_27_0 [2023/06/21 03:20] – ↷ Page name changed from configure_items_php_ini_ubuntu_22_04_nextcloud_27_0 to configure_certain_settings_in_php_ini_ubuntu_22_04_nextcloud_27_0 wikiadmin | configure_certain_settings_in_php_ini_ubuntu_22_04_nextcloud_27_0 [2023/06/21 18:39] (current) – wikiadmin | ||
---|---|---|---|
Line 4: | Line 4: | ||
< | < | ||
- | :~$ sudo cd / | + | :~$ cd / |
:~$ / | :~$ / | ||
:~$ / | :~$ / | ||
Line 16: | Line 16: | ||
</ | </ | ||
- | Locate | + | Within the php.ini file, locate |
< | < | ||
Line 24: | Line 24: | ||
max_execution_time = 300 | max_execution_time = 300 | ||
date.timezone = America/ | date.timezone = America/ | ||
+ | </ | ||
+ | |||
+ | Here is another author' | ||
+ | |||
+ | < | ||
+ | file_uploads = On | ||
+ | allow_url_fopen = On | ||
+ | memory_limit = 512M | ||
+ | upload_max_filesize = 500M | ||
+ | post_max_size = 600M | ||
+ | max_execution_time = 300 | ||
+ | display_errors = Off | ||
+ | date.timezone = Europe/ | ||
+ | output_buffering = Off | ||
</ | </ | ||
Line 29: | Line 43: | ||
< | < | ||
+ | sudo systemctl reload apache2 | ||
sudo systemctl start apache2 | sudo systemctl start apache2 | ||
sudo systemctl start mysql | sudo systemctl start mysql | ||
Line 38: | Line 53: | ||
< | < | ||
- | :~$ sudo systemctl | + | :~$ sudo systemctl |
[sudo] password for user: | [sudo] password for user: | ||
+ | OR | ||
+ | :~$ sudo systemctl start apache2 | ||
+ | |||
:~$ sudo systemctl start mysql | :~$ sudo systemctl start mysql | ||
:~$ sudo systemctl enable apache2 | :~$ sudo systemctl enable apache2 | ||
Line 48: | Line 66: | ||
Executing: / | Executing: / | ||
:~$ | :~$ | ||
+ | </ | ||
+ | |||
+ | Use Vim to open php.ini again to enable opcache extension and configure its options and behavior. | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | vim php.ini | ||
+ | </ | ||
+ | |||
+ | First, uncomment the ' | ||
+ | |||
+ | < | ||
+ | Before | ||
+ | ; | ||
+ | |||
+ | After (uncommented) | ||
+ | zend_extension=opcache | ||
+ | </ | ||
+ | |||
+ | Now, move down to the ' | ||
+ | |||
+ | < | ||
+ | [opcache] | ||
+ | ... | ||
+ | .... | ||
+ | ..... | ||
+ | opcache.enable = 1 | ||
+ | opcache.interned_strings_buffer = 8 | ||
+ | opcache.max_accelerated_files = 10000 | ||
+ | opcache.memory_consumption = 128 | ||
+ | opcache.save_comments = 1 | ||
+ | opcache.revalidate_freq = 1 | ||
+ | </ | ||
+ | |||
+ | Press ESC button to exit the INS mode of Vim and save the configuration by entering :w [enter], then exit by entering :q! | ||
+ | |||
+ | Now restart the apache service to apply new changes using the command below. | ||
+ | |||
+ | < | ||
+ | sudo systemctl restart apache2 | ||
</ | </ |
configure_certain_settings_in_php_ini_ubuntu_22_04_nextcloud_27_0.1687317623.txt.gz · Last modified: 2023/06/21 03:20 by wikiadmin