Apache Server

You are here:
Estimated reading time: < 1 min

Max File size

php_value upload_max_filesize = 12M php_value post_max_size = 13M php_value memory_limit = 15M

Source

Start Apache (Debian 8.x+ or Ubuntu 15.04+ or above)

$ sudo systemctl start apache2

Stop Apache (Debian 8.x+ or Ubuntu 15.04+ or above)

$ sudo systemctl start apache2

Restart Apache (Debian 8.x+ or Ubuntu 15.04+ or above)

$ sudo systemctl restart apache2

Start Lampp’s Apache

$ sudo /opt/lampp/lampp startapache

Stop Lampp’s Apache

$ sudo /opt/lampp/lampp stopapache

Reload Lampp’s Apache

$ sudo /opt/lampp/lampp reloadapache

vhosts.conf location

/etc/httpd/conf.d

Apache Config Testing

sudo apachectl configtest

How To Run Multiple PHP Versions on One Server Using Apache and PHP-FPM on Ubuntu 20.04

Source

See las error log

sudo tail -5 /var/log/apache2/error.log

How To Rewrite URLs with mod_rewrite for Apache on Ubuntu 16.04

Source

Was this article helpful?
Dislike 0
Views: 55