I wanted to increase my Wordpress upload_max limit, changed the php.ini, but could not restart php.ini service or apache 2 service with any command including sudo nacho stuff, literally tried any forum about that, but could not fix
Guys help me
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
To stop Apache, run:
To start Apache when it is stopped, run:
To stop and then start the service again, run:
Apache can often reload without dropping connections if you are making configuration changes. To do this, use the following command:
When you’re making changes to the Apache configuration or doing restarts, it’s considered good practice to perform a config test to ensure the config files do not have misconfiguration that can trigger an error and cause downtime for your sites or applications.
Next, test for configuration errors:
sudo apache2ctl configtest You should receive the following output:
Restart Apache to implement your changes:
Changing the PHP settings in php.ini will need you to restart apache2 or nginx for the changes to take effect. Here is how you can do it:
another way would be to use systemctl: