You can use a2enmod
or a2dismod
to enable/disable modules by name.
From terminal, run: sudo a2enmod php5
to enable PHP5 (or some other module), then sudo service apache2 reload
to reload the Apache2 configuration
Related Posts:
- How to run php files on my computer
- Whats the point of running Laravel with the command ‘php artisan serve’?
- PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?
- Apache is downloading php files instead of displaying them
- PHP code is not being executed, but the code shows in the browser source code
- How to configure self hosted wordpress so that everything can be upgraded/installed from dashboard
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How can I use an .htaccess file in Nginx?
- .htaccess redirect http to https
- How do I resolve a HTTP 414 “Request URI too long” error?
- 404 Not Found The requested URL was not found on this server
- Getting an error when I visit http://localhost
- What is the difference between Local Server and a Web Server?
- Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error
- Localhost is not working
- Redirect vs RedirectMatch
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SVN Error E175002 while checking out code from repository
- XAMPP, Apache – Error: Apache shutdown unexpectedly
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- htaccess – Redirect to subfolder without changing browser URL
- client denied by server configuration
- What is HTTPD exactly?
- XAMPP: Connecting to localhost fix? [Persistent]
- Request exceeded the limit of 10 internal redirects due to probable configuration error
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How do you redirect HTTPS to HTTP?
- Adding a user on .htpasswd
- Only variable references should be returned by reference – Codeigniter
- Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- a2enmod command not found in apache server using cpanel in linux vps
- How do I disable directory browsing?
- file_get_contents( ) not working
- Apache and Node.js on the Same Server
- XAMPP, using port:81, cannot run localhost:81/mywebsite
- lbmethod_heartbeat:notice – No slotmem from mod_heartmonitor –error after installing apache2.4.2 [closed]
- Difference between Systemctl and service command
- “End of script output before headers” error in Apache
- “End of script output before headers” in Apache + PHP
- XAMPP installation on Win 8.1 with UAC Warning
- org.apache.jasper.JasperException
- Https to http redirect using htaccess
- How can I force users to access my page over HTTPS instead of HTTP?
- Site does not exist error for a2ensite
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Using PHP 7 with WAMP
- How to remove index.php from WordPress site URL
- WAMP won’t turn green. And the VCRUNTIME140.dll error
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- cURL 28 error after switch from to brew php 7.2 on localhost
- How do I get the right permissions for WordPress running Apache on Debian
- How can I improve site/page performance of WordPress websites?
- How to run multiple Async HTTP requests in WordPress?
- WP CLI info showing correct PHP binary but wrong version of PHP
- Does the debug.log do log rotation?
- Best practices for making a WordPress site “movable”?
- WordPress V2 REST-API: Endpoints 404?
- Installing WordPress in a Sub-Folder (not in root) on Localhost
- What’s the proper way to setup WP-CLI on Ubuntu so that I don’t have to use the flag –allow-root?
- Which Apache-modules must I enable?
- What are some good Apache settings to use with wordpress?
- apache cpu over 70% on localhost
- Is it possible to move wordpress out of webroot?
- login wp impossible
- wp-admin/index.php gives a “500 Internal Server Error [closed]
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Evaluations of two wordpress security plans against php code injection attack
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Is XAMPP faster than running LAMP in WSL on Windows 10? [closed]
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- Apache Fallback instead of add_rewrite_rule
- WordPress: get recent posts, delete the current category
- PHP Warning: chmod(): Operation not permitted in class-wp-filesystem-direct.php on line 173
- Point root folder to blog.domain.com and subdirectory to domain.com possible?
- WordPress admin dashboard missing icons
- WordPress returning 404 for multisite pages
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- how to combine wordpress htaccess on my root domain + php on subfolder
- How to disable server signature on wordpress? [closed]
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- Detect CURLOPT_SSL_VERIFYPEER programatically?
- Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3
- Internal Server Error apache
- How does WP work in conjunction with a web server?
- What to do when WordPress posts on a new server return an error 404
- Accidentally messed up URLs
- Show wordpress locally in xammp and in iPhone via ip
- WordPress docker with empty responses to HTTP requests
- Permalinks are not working in WordPress in digitalocean
- White Screen of Death for unknown reason but fixes after rebooting the server
- Forbidden You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server [closed]
- WordPress page not accessible through WAN [closed]