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]
- .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
- 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
- XAMPP: Connecting to localhost fix? [Persistent]
- Request exceeded the limit of 10 internal redirects due to probable configuration error
- How do you redirect HTTPS to HTTP?
- Adding a user on .htpasswd
- a2enmod command not found in apache server using cpanel in linux vps
- file_get_contents( ) not working
- Apache and Node.js on the Same Server
- lbmethod_heartbeat:notice – No slotmem from mod_heartmonitor –error after installing apache2.4.2 [closed]
- “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
- How can I force users to access my page over HTTPS instead of HTTP?
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- 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
- 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?
- apache cpu over 70% on localhost
- Is it possible to move wordpress out of webroot?
- login wp impossible
- 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]
- Point root folder to blog.domain.com and subdirectory to domain.com possible?
- WordPress admin dashboard missing icons
- how to combine wordpress htaccess on my root domain + php on subfolder
- How to disable server signature on wordpress? [closed]
- Detect CURLOPT_SSL_VERIFYPEER programatically?
- How does WP work in conjunction with a web server?
- What to do when WordPress posts on a new server return an error 404
- 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
- I Made WordPress Multisite. And Now Everything Doesn’t Display Properly
- If I use Apache & ngnix together will I have fewer problems?
- Check against server time to display SQL entries – Radio Station DJ Rotator Plugin
- Plugin error after installation
- Problem with data collection in tables
- New wordpress keep redirecting to localhost/wp-admin/install.php
- How to point domain to wordpress page
- CURL error with REST API
- Is a local multisite installation equivalent to multiple VirtualHosts?
- How to rename a wordpress site from http://myserver.example.com/blog to http://myserver.example.com/somethingelse or just http://myserver.example.com
- WordPress in AWS Lightsail – restrict public IP
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Upgrade to PHP7.3 and Changing Apache from Prefork to Event Breaks WordPress
- Removed index.php now all pages with Internal Server Error
- Huge time to first byte on live site
- Move site root directory on debian
- How to change wordpress port number to 8000?
- Timthumb isn’t displaying any images. “A TimThumb error has occured
- 403 Forbidden Localhost Wamp Apache Php
- Strange special character/Latin characters
- I got ERR_TOO_MANY_REDIRECTS on subdomain
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Error 500 ONLY in dashboard main page. How to fix it?
- W3 Total Cache Can’t Really Detect Things
- Admin-area broken through weird issues
- Apache and Networks
- Blog only showing code
- Configure VirtualHost for a perfect WordPress Environment
- WordPress Memory limit not increasing
- Having an HTTP error 500 after migrating a website
- oEmbed work on localhost but not on distant server
- session_start(): Cannot find save handler ‘mm’ – session startup failed in /sites
- how to put shortcode to the top of the page – theme 2014
- Permalinks to Post name not working
- WordPress – Unable to Create New Account – Windows/Apache/MySQL
- Serve static files via a subdomain on a wordpress