This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
deb12:lamp [2024/04/21 08:24] – [Xdebug] Bernard Condrau | deb12:lamp [2024/04/25 15:31] (current) – [Links] Bernard Condrau | ||
---|---|---|---|
Line 64: | Line 64: | ||
- Download that package from the output before by clicking on it's name, for example xdebug-3.3.2.tgz | - Download that package from the output before by clicking on it's name, for example xdebug-3.3.2.tgz | ||
- Install the pre-requisites for compiling PHP extensions< | - Install the pre-requisites for compiling PHP extensions< | ||
- | - Unpack the downloaded file with '' | + | - Unpack the downloaded file with '' |
phpize | phpize | ||
Configuring for: | Configuring for: | ||
- | ... | + | PHP Api Version: |
- | Zend Module Api No: | + | Zend Module Api No: |
- | Zend Extension Api No: 3220170718 (7.2), 320190902 (7.4)</ | + | Zend Extension Api No: 420230831</ |
- If it does not, you are using the wrong phpize. Please follow [[https:// | - If it does not, you are using the wrong phpize. Please follow [[https:// | ||
- Run:< | - Run:< | ||
make</ | make</ | ||
- | - Copy the module to:< | + | - Copy the module to:< |
- | - Modify the configuration in / | + | - Modify the configuration in / |
xdebug.remote_enable=1 | xdebug.remote_enable=1 | ||
xdebug.remote_port=9000 (default: 9000) | xdebug.remote_port=9000 (default: 9000) | ||
Line 82: | Line 82: | ||
xdebug.remote_log=PATH_TO_LOG/ | xdebug.remote_log=PATH_TO_LOG/ | ||
- Change the PATH_TO_PROFILER_OUTPUT_DIR to point to the directory you want to receive profiler output. change PATH_TO_LOG to point to the directory where you want to receive xdebug.log. | - Change the PATH_TO_PROFILER_OUTPUT_DIR to point to the directory you want to receive profiler output. change PATH_TO_LOG to point to the directory where you want to receive xdebug.log. | ||
- | - Make sure that zend_extension = / | + | - Make sure that zend_extension = / |
- Restart your webserver. | - Restart your webserver. | ||
- Create a PHP page that has phpinfo(). Load it in a browser and look for the info on the Xdebug module. If you see it next to the Zend logo, you have been successful! | - Create a PHP page that has phpinfo(). Load it in a browser and look for the info on the Xdebug module. If you see it next to the Zend logo, you have been successful! | ||
- On the command line, you can also '' | - On the command line, you can also '' | ||
+ | |||
+ | ===== MariaDB 10.11.6 Installation ===== | ||
+ | - Install< | ||
+ | - Start MariaDB< | ||
+ | - Secure the installation following [[https:// | ||
+ | - Assign a password to root | ||
+ | - Dump all databases on the old server< | ||
+ | - Copy '' | ||
===== phpMyAdmin ===== | ===== phpMyAdmin ===== | ||
- | Debian 10/11, other than Debian 9, require manual installation of phpmyadmin, phpmyadmin has been removed from Debian' | + | |
- | ==== Installation ==== | + | |
- | | + | |
- | * Unzip the tarball, then move the folder:< | + | |
- | sudo mv phpMyAdmin-5.0.2-english/ | + | |
- | ==== Configuration ==== | ||
- | * To begin, make a new directory where phpMyAdmin will store its temporary files and set ownership:< | ||
- | sudo chown -R www-data: | ||
- | * In the same folder, create a file with the blowfish secret passphrase and set permissions:< | ||
- | <?php | ||
- | $cfg[' | ||
- | < | ||
- | sudo chown root: | ||
- | sudo chmod 640 / | ||
- | * Copy folder {{: | ||
- | * Symlink the configuration files for apache:< | ||
- | ln -s ../ | ||
- | cd ../ | ||
- | ln -s ../ | ||
- | * Symlink the configuration files for phpmyadmin in it's root folder:< | ||
- | ln -s / | ||
- | ln -s / | ||
- | ln -s / | ||
- | * Create a additional config file with the path to the **tmp** directory:< | ||
- | <?php | ||
- | $cfg[' | ||
- | * Make sure the // | ||
- | SELECT user,host FROM mysql.user; | ||
- | CREATE USER ' | ||
- | GRANT USAGE ON phpmyadmin.* TO phpmyadmin</ | ||
- | * The password is in file / | ||
- | sudo chmod 640 / | ||
- | * Create a regular MariaDB user for the purpose of managing databases through phpMyAdmin, as it’s recommended that you log in using another account than the pma user. You could create a user that has privileges to all tables within the database, as well as the power to add, change, and remove user privileges, with this command. Whatever privileges you assign to this user, be sure to give it a strong password as well:< | ||
- | GRANT ALL PRIVILEGES ON *.* TO ' | ||
- | exit</ | ||
- | * [[https:// | ||
- | ==== Manual Upgrade on Debian 9 ==== | ||
- | * Check latest version of [[https:// | ||
- | * Download and install< | ||
- | sudo wget https:// | ||
- | tar xzf phpMyAdmin-5.1.0-english.tar.gz | ||
- | sudo mv phpMyAdmin-5.1.0-english phpmyadmin</ | ||
- | * Modify the following lines in / | ||
- | define(' | ||
- | * See [[https:// | ||
- | ==== Security ==== | ||
- | * You should secure access to phpmyadmin, for example by limiting access to verified ip addresses | ||
===== Windows Subsystem for Linux ===== | ===== Windows Subsystem for Linux ===== | ||
* For Windows Subsystem for Linux, create a **Virtual Host** file with document root in /// | * For Windows Subsystem for Linux, create a **Virtual Host** file with document root in /// | ||
Line 167: | Line 130: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
===== SSL for localhost ===== | ===== SSL for localhost ===== | ||
==== Ignore invalid certificates ==== | ==== Ignore invalid certificates ==== |