How to Edit Php.ini With Webmin

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.
Webmin allows you to administer a remote server through a Web browser.

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.

Advertisement

Step 1

Open a Web browser, and type in the URL of your Webmin server, for example:

Video of the Day

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.

Advertisement

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.

Advertisement

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.

Advertisement

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.

Advertisement

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.

Video of the Day

Advertisement

Advertisement

references & resources