How to Edit Php.ini With Webmin

By Gareth Downes-Powell

Webmin is a web-based tool for configuring Linux operating systems, allowing you to carry out administrative tasks on a remote server through a simple interface. As well as allowing you to edit the raw configuration files, Webmin also extracts the most commonly used settings for servers and applications. You can then quickly change these settings through a custom interface, without having to remember the configuration directives and possible values. The php.ini file is one of the many server configuration files that you can edit in this manner.

Step 1

Open a Web browser, and type in the URL of your Webmin server, for example:https://www.mydomain.com:10000/By default, Webmin uses a SSL connection for security, and the Webmin server runs on port 1000. Change the port number if you have configured this differently for your installation.

Step 2

Type in a system username and password to log in. The user must have permissions to be able to edit the php.ini file, such as an administrator or root user.

Step 3

Click on the "Others" tab in the main Webmin menu bar, and then click on "PHP Configuration" from the page that appears.

Step 4

Click on the "Manage" link to change the most common settings through a simple interface. Make the required changes, and then click the "Save" button to save the changes.

Step 5

Click on the "Edit Manually" link to edit the raw php.ini file yourself. This gives you full control over the file, and it does not limit you to the most common settings. Change the required settings, and then click the "Save" button to save the file.

Step 6

Restart Apache to ensure the new PHP settings take effect. Click on "Servers" in the main Webmin menu, and then click on "Apache Webserver." The tabs at the top of the screen allow you to stop and start the Apache server.

Tips & Warnings

  • Take a backup of the php.ini file before editing. Webmin carries out no syntax checking, so if you make a mistake it may stop PHP or Apache from running. You can then roll back to the backup version to restore.