@arnoldo.moen
To enable the mcrypt PHP extension on XAMPP running on Linux, you can follow these steps:
- Open a terminal window.
- Navigate to the XAMPP installation directory. This is typically located at /opt/lampp.
- In the XAMPP directory, you will find a folder named "etc". Inside this folder, there should be a file called "php.ini". Open this file in a text editor.
- Search for the line that contains "extension=mcrypt.so". If it is commented out (with a semicolon at the beginning of the line), remove the semicolon to uncomment it.
- Save the php.ini file and close the text editor.
- Restart the Apache server in XAMPP by running the following command in the terminal:
sudo /opt/lampp/lampp restart
- Check if the mcrypt extension is now enabled by creating a PHP file with the following code:
1
2
3
|
<?php
phpinfo();
?>
|
Save the file in the htdocs directory of your XAMPP installation and access it through a web browser. Search for "mcrypt" in the phpinfo output to confirm that the extension is enabled.
That's it! You have successfully enabled the mcrypt PHP extension on XAMPP running on Linux.