How to change PHP settings in Vesta

Many times, you will need to change the PHP settings on your web server. For example you may want to change the values for memory_limit, upload_max_filesize etc.

To change the PHP settings in Vesta CP:

1. Log into VestaCP

2. From the top menu click on Server

vesta php settings1

3. On the page that opens, look for httpd entry and click the CONFIGURE button on that row.

vesta php settings2

4. Click the CONFIGURE PHP.INI link

vesta php settings3

5. You will see the basic interface for PHP settings. Here you can change the most used PHP settings like:  max_execution_time, max_input_time, memory_limit, error_reporting, display_errors, post_max_size, upload_max_filesize.

6. At the bottom of the page there is a link to Advanced Options. Click it if you want to alter other PHP settings.

vesta php settings4

7. Another page will open.

vesta php settings5

8. When done editing basic or advanced PHP options, click the Save button.


If you prefer you can change the PHP settings from the command line. Just edit the /etc/php.ini file in your preferred text editor (vi, nano etc). For example:

# nano /etc/php.ini


The movie tutorial for this post:

PHP settings in Vesta

This Post Has One Comment

  1. Dennis, ListsUK

    Thanks 🙂

Leave a Reply