Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading page -- connection refused #628

Open
sayantani11 opened this issue May 5, 2024 · 7 comments
Open

Error loading page -- connection refused #628

sayantani11 opened this issue May 5, 2024 · 7 comments

Comments

@sayantani11
Copy link

Questions here may or may not be answered depending on the state of the question, to increase your chance, read this before asking Asking For Technical Help.

Basically, the more details you give, the more chance of getting an answer. We need at least:

  • Where did you get DVWA from?
    digininja/DVWA

  • What OS are you installing it on?
    Ubuntu 18.04 (WSL)

  • Last five lines from the web server access and error log from the time the error occurred if you got that far.
    APACHE2 LOG
    [Sun May 05 11:30:36.405862 2024] [core:notice] [pid 9681] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:40:48.120308 2024] [mpm_prefork:notice] [pid 9681] AH00169: caught SIGTERM, shutting down [Sun May 05 11:40:48.176306 2024] [mpm_prefork:notice] [pid 9877] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:40:48.176363 2024] [core:notice] [pid 9877] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:51:17.913314 2024] [mpm_prefork:notice] [pid 9877] AH00169: caught SIGTERM, shutting down [Sun May 05 11:51:17.976538 2024] [mpm_prefork:notice] [pid 10048] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:51:17.976593 2024] [core:notice] [pid 10048] AH00094: Command line: '/usr/sbin/apache2'

  • The error you got when you got stuck.
    image

  • Any previous errors.
    Related to mysql and php setup but already fixed it

  • What you have tried to do yourself to fix the problem.
    In the '/var/www/html' i tried removing the html and folder and already keeping the config.inc.php file and in the apache sites-enabled files I changed the path to '/var/www/'. Although none of it worked. Point to be noted, I have restarted the apache2 server and rebooted the terminal everytime. Someone said changing the name of the directory from DVWA to dvwa will work but it didn't.

Support will only be given for users running the latest pull of code from GitHub. Not a tagged release, not a pre-installed app, not a ZIP you got from a mate.

@digininja
Copy link
Owner

digininja commented May 5, 2024 via email

@sayantani11
Copy link
Author

You are trying to access the site over https but you probably only set Apache up to serve the site on http. Try accessing it over http instead.

On Sun, 5 May 2024, 07:36 Sayantani Saha, @.> wrote: Questions here may or may not be answered depending on the state of the question, to increase your chance, read this before asking Asking For Technical Help https://digi.ninja/blog/asking_for_help.php. Basically, the more details you give, the more chance of getting an answer. We need at least: - Where did you get DVWA from? digininja/DVWA - What OS are you installing it on? Ubuntu 18.04 (WSL) - Last five lines from the web server access and error log from the time the error occurred if you got that far. APACHE2 LOG [Sun May 05 11:30:36.405862 2024] [core:notice] [pid 9681] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:40:48.120308 2024] [mpm_prefork:notice] [pid 9681] AH00169: caught SIGTERM, shutting down [Sun May 05 11:40:48.176306 2024] [mpm_prefork:notice] [pid 9877] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:40:48.176363 2024] [core:notice] [pid 9877] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:51:17.913314 2024] [mpm_prefork:notice] [pid 9877] AH00169: caught SIGTERM, shutting down [Sun May 05 11:51:17.976538 2024] [mpm_prefork:notice] [pid 10048] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:51:17.976593 2024] [core:notice] [pid 10048] AH00094: Command line: '/usr/sbin/apache2' - The error you got when you got stuck. image.png (view on web) https://github.com/digininja/DVWA/assets/75435974/70e9c059-6435-4514-8c5f-92642233bf4e - Any previous errors. Related to mysql and php setup but already fixed it - What you have tried to do yourself to fix the problem. In the '/var/www/html' i tried removing the html and folder and already keeping the config.inc.php file and in the apache sites-enabled files I changed the path to '/var/www/'. Although none of it worked. Point to be noted, I have restarted the apache2 server and rebooted the terminal everytime. Someone said changing the name of the directory from DVWA to dvwa will work but it didn't. Support will only be given for users running the latest pull of code from GitHub. Not a tagged release, not a pre-installed app, not a ZIP you got from a mate. — Reply to this email directly, view it on GitHub <#628>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWPHWUDABBOJP6EI2ILZAXHOZAVCNFSM6AAAAABHHO2BJ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSMZVGE3TIOI . You are receiving this because you are subscribed to this thread.Message ID: @.>

Tried changing the port to '443' and still get the same error
ent 127.0.0.1:42522] PHP Notice: Array to string conversion in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php on line 77 [Sun May 05 12:37:57.217862 2024] [php7:error] [pid 10356] [client 127.0.0.1:42522] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php:535\nStack trace:\n#0 /var/www/dvwa/login.php(8): dvwaDatabaseConnect()\n#1 {main}\n thrown in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php on line 535 [Sun May 05 12:42:11.932531 2024] [mpm_prefork:notice] [pid 10355] AH00169: caught SIGTERM, shutting down [Sun May 05 12:42:12.042984 2024] [mpm_prefork:notice] [pid 17588] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 12:42:12.043075 2024] [core:notice] [pid 17588] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 12:43:56.750550 2024] [mpm_prefork:notice] [pid 17588] AH00169: caught SIGTERM, shutting down [Sun May 05 12:43:56.803178 2024] [mpm_prefork:notice] [pid 18713] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 12:43:56.804095 2024] [core:notice] [pid 18713] AH00094: Command line: '/usr/sbin/apache2'

and for http
The side doesn't load even if it manages to connect

@digininja
Copy link
Owner

digininja commented May 5, 2024 via email

@sayantani11
Copy link
Author

That isn't how things work, if you change the http port to 443 you are now doing http over port 443 not 80 which will work but isn't how things are supposed to be done. Put it back. You've also not installed all the PHP libraries, go back to the README and follow it step by step.

On Sun, 5 May 2024, 08:17 Sayantani Saha, @.> wrote: You are trying to access the site over https but you probably only set Apache up to serve the site on http. Try accessing it over http instead. … <#m_4348027560136397332_> On Sun, 5 May 2024, 07:36 Sayantani Saha, @.> wrote: Questions here may or may not be answered depending on the state of the question, to increase your chance, read this before asking Asking For Technical Help https://digi.ninja/blog/asking_for_help.php https://digi.ninja/blog/asking_for_help.php. Basically, the more details you give, the more chance of getting an answer. We need at least: - Where did you get DVWA from? digininja/DVWA - What OS are you installing it on? Ubuntu 18.04 (WSL) - Last five lines from the web server access and error log from the time the error occurred if you got that far. APACHE2 LOG [Sun May 05 11:30:36.405862 2024] [core:notice] [pid 9681] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:40:48.120308 2024] [mpm_prefork:notice] [pid 9681] AH00169: caught SIGTERM, shutting down [Sun May 05 11:40:48.176306 2024] [mpm_prefork:notice] [pid 9877] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:40:48.176363 2024] [core:notice] [pid 9877] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 11:51:17.913314 2024] [mpm_prefork:notice] [pid 9877] AH00169: caught SIGTERM, shutting down [Sun May 05 11:51:17.976538 2024] [mpm_prefork:notice] [pid 10048] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 11:51:17.976593 2024] [core:notice] [pid 10048] AH00094: Command line: '/usr/sbin/apache2' - The error you got when you got stuck. image.png (view on web) https://github.com/digininja/DVWA/assets/75435974/70e9c059-6435-4514-8c5f-92642233bf4e https://github.com/digininja/DVWA/assets/75435974/70e9c059-6435-4514-8c5f-92642233bf4e - Any previous errors. Related to mysql and php setup but already fixed it - What you have tried to do yourself to fix the problem. In the '/var/www/html' i tried removing the html and folder and already keeping the config.inc.php file and in the apache sites-enabled files I changed the path to '/var/www/'. Although none of it worked. Point to be noted, I have restarted the apache2 server and rebooted the terminal everytime. Someone said changing the name of the directory from DVWA to dvwa will work but it didn't. Support will only be given for users running the latest pull of code from GitHub. Not a tagged release, not a pre-installed app, not a ZIP you got from a mate. — Reply to this email directly, view it on GitHub <#628 <#628>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWPHWUDABBOJP6EI2ILZAXHOZAVCNFSM6AAAAABHHO2BJ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSMZVGE3TIOI https://github.com/notifications/unsubscribe-auth/AAA4SWPHWUDABBOJP6EI2ILZAXHOZAVCNFSM6AAAAABHHO2BJ2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSMZVGE3TIOI . You are receiving this because you are subscribed to this thread.Message ID: @.> Tried changing the port to '443' and still get the same error ent 127.0.0.1:42522] PHP Notice: Array to string conversion in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php on line 77 [Sun May 05 12:37:57.217862 2024] [php7:error] [pid 10356] [client 127.0.0.1:42522] PHP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php:535\nStack trace:\n#0 /var/www/dvwa/login.php(8): dvwaDatabaseConnect()\n#1 {main}\n thrown in /var/www/dvwa/dvwa/includes/dvwaPage.inc.php on line 535 [Sun May 05 12:42:11.932531 2024] [mpm_prefork:notice] [pid 10355] AH00169: caught SIGTERM, shutting down [Sun May 05 12:42:12.042984 2024] [mpm_prefork:notice] [pid 17588] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 12:42:12.043075 2024] [core:notice] [pid 17588] AH00094: Command line: '/usr/sbin/apache2' [Sun May 05 12:43:56.750550 2024] [mpm_prefork:notice] [pid 17588] AH00169: caught SIGTERM, shutting down [Sun May 05 12:43:56.803178 2024] [mpm_prefork:notice] [pid 18713] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations [Sun May 05 12:43:56.804095 2024] [core:notice] [pid 18713] AH00094: Command line: '/usr/sbin/apache2' and for http The side doesn't load even if it manages to connect — Reply to this email directly, view it on GitHub <#628 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWLPZA5V25RYW2UCPXTZAXMHBAVCNFSM6AAAAABHHO2BJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGY3DEMRSGA . You are receiving this because you commented.Message ID: @.**>

Followed the step and replaced sql server with mariadb and some of the dependencies are shown broken but forced installed it. At first the server was opening but the database creation was giving an error, but now the setup.php page displays the code and not the UI it was showing previously :(
image

@digininja
Copy link
Owner

digininja commented May 5, 2024 via email

@sayantani11
Copy link
Author

If you are forcing things and tried to use SQL server rather than MariaDB then you aren't following the instructions and there are all sorts of things you could have messed up. The best advice is to nuke that machine and start again and follow the instructions properly next time. And when replying to tickets, please don't include the full email in the reply, it makes things really hard to read.
Message ID: @.***>

I already had mysql server so I tried with that, but I did nuke the machine and try from the start again but it still has error and few php dependencies give broken errors so I forced installed them. With sql server I was facing issues in database creation, but after installing mariadb the page ends up displaying code.

@digininja
Copy link
Owner

digininja commented May 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants