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!
Hi @tamararesearch,
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:
- service apache2 restart
- service nginx restart
another way would be to use systemctl:
- systemctl restart apache2
Hello there,
To stop Apache, run:
- sudo systemctl stop apache2
To start Apache when it is stopped, run:
- sudo systemctl start apache2
To stop and then start the service again, run:
- sudo systemctl restart apache2
Apache can often reload without dropping connections if you are making configuration changes. To do this, use the following command:
- sudo systemctl reload apache2
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:
Output
. . .
Syntax OK
Restart Apache to implement your changes:
- sudo systemctl restart apache2
Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.