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,164 times
1
Dumb Question
- 221
- 1
- 4
- 8
-
how did you setup `xdebug`? – George Udosen Mar 04 '17 at 04:35
-
@George just followed the instructions here https://xdebug.org/wizard.php. – Dumb Question Mar 04 '17 at 04:46
-
At what stage did you get stuck? – George Udosen Mar 04 '17 at 04:54
-
Did you add `xdebug.show_error_trace = 1` to the `/etc/php/7.0/mods-available/xdebug.ini` file – George Udosen Mar 04 '17 at 05:10
-
@George xdebug is not working because phpize is not compatible to my php version – Dumb Question Mar 04 '17 at 13:33
-
@George there is no `xdebug.ini` in `mods-available` folder – Dumb Question Mar 04 '17 at 13:34
-
Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/54795/discussion-between-george-and-dumb-question). – George Udosen Mar 04 '17 at 13:41
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
- 35,970
- 13
- 99
- 121
-
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.0` change it to `php7.1` and you should be good to go – George Udosen Mar 05 '17 at 14:18
-
-
There is also an error when installing the `php7.1` here it is `E: 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-dev` for 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-dev` it 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/` folder `phpize` version 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.1` lets see if its symbolically linked to `/usr/bin/phpize` – George Udosen Mar 07 '17 at 06:13
-
Let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/54924/discussion-between-george-and-dumb-question). – George Udosen Mar 07 '17 at 06:18
-
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
-
-