I need to increase Max_Execution_Time and Max_Input Vars for WP in lightsail


Hi I am installing a new Theme on my WP that requires to increase the current MAX_EXECUTION_TIME and MAX_INPUT_VAR. to double the current values. How this can be done using lightsail ? I think the php.ini files or .htaccess needs to be modify but how I can do this in lightsail ? what are the command for it?


질문됨 8달 전829회 조회
1개 답변
수락된 답변


You must do several things:

Navigate to the PHP Configuration Folder: In Lightsail, the PHP configuration files are typically located in /opt/bitnami/php/etc/. You can use the cd command to navigate to this directory.

cd /opt/bitnami/php/etc/

Edit the php.ini File: You will need to edit the php.ini file to modify the MAX_EXECUTION_TIME and MAX_INPUT_VARS values. You can use a text editor like nano or vim. Here's an example using nano:

sudo nano php.ini

Inside the php.ini file, locate the following lines and modify them as needed: max_execution_time = 120 max_input_vars = 1000

Save and Exit: In nano, you can save the changes by pressing Ctrl + O, then press Enter. To exit, press Ctrl + X.

Restart the Apache Web Server: After making changes to the PHP configuration, it's a good practice to restart the Apache web server to apply the changes:

sudo /opt/bitnami/ctlscript.sh restart apache

Best regards, Andrii

profile picture
답변함 8달 전
  • I followed the instruction but still it seems the files size not changed!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠