Error 40 can’t access url

Error 404 while validating remote environment. Can do ssh to remote server. Server folder configured and synced.

9 comments

Hi. Could you please clarify the problem?

0

A new error popped up. “No debug extension is loaded”.
Validate debug confiding on web server shows - /opt/alt/php72/etc/php.ini
However, CLI Interpreter shows - /usr/local/etc/php/7.2/php.ini
I see Xdebug 2.6.1 is loaded on this page. Below added to php.inp -
[XDebug]
zend_extension="xdebug.so”
xdebug.remote_enable=1
xdebug.remote_host=120.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1

0

Hi. Could you please clarify the problem and provide steps to reproduce it?

0

I followed the exactly same steps as noted in the documentation. I don’t understand what additional details you want. I tried to all the information in my last post.
Can you please check if there is something wrong with php.ini?

0

Hi, remove xdebug.remote_connect_back=1 - you most likely don't need it.

zend_extension="xdebug.so” - provide a full or a relative path. Looks like it's not loaded. 

To test it try to create & open <?php phpinfo(); page & check if xdebug is loaded there.

 xdebug.remote_host=120.0.0.1 - shouldn't it start with 127?

0

Thanks Dmitry,

1. phpinfo() doesn't load xdebug. http://pixelytics.tech/phpInfo.php

2. Even full path of xdebug.so is not working. 

zend_extension="/usr/local/lib/php/pecl/20170718/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_host=127.0.0.1

3. However 'php -version' shows below;

Cannot load Xdebug - it was already loaded

Cannot load Xdebug - it was already loaded

PHP 7.2.11 (cli) (built: Oct 11 2018 16:24:11) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

    with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans

0

Actually I do see the extension loaded in phpinfo(). I am stuck please help.

 

PHP version: 7.2.11
PHP CLI: /usr/local/Cellar/php/7.2.11/bin/php PHP CGI: /usr/local/Cellar/php/7.2.11/bin/php-cgi
Loaded Configuration File: /usr/local/etc/php/7.2/php.ini
Debugger extension: Xdebug 2.6.1
Loaded extensions: bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, phpdbg_webhelper, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xdebug, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

0

Please describe your infrastructure - the initial post, you mentioned 'remote server'.
Are you going to debug your code on a remote server?
If so, why are you looking at phpinfo() for a local one?

0

I want to make it work on the remote server. Local phpinfo() is just for reference. Xedebug is not even working on the local.

1. phpinfo() doesn't load xdebug. http://pixelytics.tech/phpInfo.php

2. Even full path of xdebug.so is not working.

zend_extension="/usr/local/lib/php/pecl/20170718/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_host=127.0.0.1

3. However 'php -version' shows below;
Cannot load Xdebug - it was already loaded

Cannot load Xdebug - it was already loaded

PHP 7.2.11 (cli) (built: Oct 11 2018 16:24:11) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans

0

Please sign in to leave a comment.