I currently installed php7.0 version of phpize, and xdebug does not work, wondering if there is a phpize for php7.1.1?
Asked
Active
Viewed 3,319 times
1
Dumb Question
- 221
1 Answers
0
To install xdebug for php7.1. Follow these steps to install for php7.1:
Install php7.1 dev, if there go to step 2:
sudo apt install php-all-devInstall the
xdebugmodule:sudo apt install php-xdebugRetstart
apachewith:sudo systemctl restart apache2To test it:
a. Go to the page you added to your OP and add the contents of your
phpinfo()command to get the relevantxdebug-2.5.1.tgzfileb. Follow the steps as directed on that page:
tar -xvzf xdebug-2.5.1.tgzcd xdebug-2.5.1/now run
phpize7.1, notphpizeas given on that pageYou should see this output, or something similar
Configuring for: ... Zend Module Api No: 20151012 Zend Extension Api No: 320151012
Add the following to the
/etc/php/7.1/mods-available/xdebug.iniunder any entry you see there:xdebug.show_error_trace = 1Restart apache:
sudo systemctl restart apache2Check your
phpinfo()output on a webpage you should see thexdebugsection now.
George Udosen
- 37,674
-
No, I am using php7.1.1 (when I installed xampp), xdebug does not work on it. that is my problem. – Dumb Question Mar 05 '17 at 13:33
-
Then anywhere you see
php7.0change it tophp7.1and you should be good to go – George Udosen Mar 05 '17 at 14:18 -
-
There is also an error when installing the
php7.1here it isE: Unable to locate package php7.1-dev E: Couldn't find any package by glob 'php7.1-dev' E: Couldn't find any package by regex 'php7.1-dev'– Dumb Question Mar 06 '17 at 03:30 -
I just updated the answer, use
php-all-devfor the dev package for `php7.1 – George Udosen Mar 06 '17 at 07:29 -
-
-
-
-
No this is a desktop version, when I tried to do
sudo apt install php-all-devit seems that it can't connect to ph.archive.ubuntu.com – Dumb Question Mar 06 '17 at 08:52 -
I have an error in your instruction 4.b) here is the error
No command 'phpize7.1' found, did you mean: Command 'phpize7.0' from package 'php7.0-dev' (main) phpize7.1: command not found– Dumb Question Mar 07 '17 at 02:43 -
In
/usr/bin/folderphpizeversion is 7.0, but I saw a folder/opt/lampp/bin/phpize's version is 7.1.1. Can I just transfer it to/usr/bin/? – Dumb Question Mar 07 '17 at 02:59 -
please don't transfer any thing leave as is. Please run
ls -l /opt/lampp/bin/phpize7.1.1lets see if its symbolically linked to/usr/bin/phpize– George Udosen Mar 07 '17 at 06:13 -
-
Sir there is still a problem In your instruction 4.b.3) now run phpize7.1, not phpize as given on that page Here is the result
No command 'phpize7.1' found, did you mean: Command 'phpize7.0' from package 'php7.0-dev' (main) phpize7.1: command not found– Dumb Question Mar 08 '17 at 03:00 -
-
xdebug? – George Udosen Mar 04 '17 at 04:35xdebug.show_error_trace = 1to the/etc/php/7.0/mods-available/xdebug.inifile – George Udosen Mar 04 '17 at 05:10xdebug.iniinmods-availablefolder – Dumb Question Mar 04 '17 at 13:34