PHP Dev and Debug Environment Setup
*** forgot to mention in video***** please install mysql driver for phpmyadmin to work!! command - sudo apt install php8.1-mysql sudo service apache2 restart Also if your debugger still dont work - please use below command and try the steps from video again - this command is to enable the xdebug!! sudo phpenmod xdebug ************************************ sudo apt install apache2 sudo apt install php8.1 sudo apt install composer sudo chown -R your-username:your-username /var/www/html sudo gedit /etc/apache2/apache2.conf "add user as per video" restart apache2 sudo service apache2 restart sudo apt install mysql-server sudo mysql run following lines inside : 1. ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your password'; 2. FLUSH PRIVILEGES; Install phpmyadmin download and unzip to /var/www/html/ edit xdebug.ini file sudo gedit /etc/php/7.4/mods-available/xdebug.ini ----------------------------- xdebug.ini ----------------------------- zend_extension=xdebug.so xdebug.mode=debug xdebug.remote_autostart = 1 xdebug.remote_enable = 1 xdebug.remote_handler = dbgp xdebug.remote_host = 127.0.0.1 xdebug.remote_port = 9003 xdebug.remote_log = /tmp/xdebug_remote.log xdebug.remote_mode = req --------------------------------- Debug parameter to set ____________________ localhost/project1/?XDEBUG_SESSION_START=1
Download
0 formatsNo download links available.