✓ Solved

Can't access Multicraft installation page

I just installed Multicraft following the instructions in this guide and every time I try to go to http://IP/multicraft/install.php I get a ERR_CONNECTION_TIMED_OUT

9 Replies

✓ Best Answer

The guide says this:

 6. Reload the Apache configuration:
 
service apache2 reload

This guide was obviously written before the advent (cough! cough!) of systemd(8). Starting, stopping, reloading apache2(8) is now accomplished (cough! cough!) through systemd(8) (since 2015). Do this instead:

sudo systemctl restart apache2

Your web server didn't reload/restart.

DANGER WILL ROBINSON! DANGER! DANGER!

If you made any mistakes in the web server configuration, systemd(8) will refuse to start your web server and send you straight to systemctl(1) hell with no clue as to what went wrong or why. Your web server will not be started.

Prior to doing this, check the syntax of your apache2(8) configuration with

/usr/local/sbin/apachectl configtest

-- sw

Ive done what stevewi said and now when i go to the link it comes up with a 404 error and if i go to http://IP/multicraft it shows this:

<?php
/**
*

  • Copyright © 2010-2021 by xhost.ch GmbH
    *
  • All rights reserved.
    *
    **/

$yii = dirname(FILE__).'/protected/yii/yii.php'; $config = dirname(__FILE).'/protected/config/internal/application.php';

// uncomment the following line to enable more detailed error messages
//defined('YII_DEBUG') or define('YII_DEBUG',true);
// how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

if (!@file_exists(dirname(FILE).'/protected/config/config.php'))
header('Location: install.php');
else
{
require_once($yii);
Yii::createWebApplication($config)->run();
}

The default Apache page works fine and the Multicraft folder location was set correctly, even putting an index.html file in the Multicraft directory works, it must be a problem with the php scripts, when i do > apt-get install php7.2 php7.2-sqlite php7.2-gd
the console says:

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting 'php7.2-common' for regex 'php7.2'
Note, selecting 'php7.2-sodium' for regex 'php7.2'
Note, selecting 'libapache2-mod-php7.2' for regex 'php7.2'
Note, selecting 'php7.2-thrift' for regex 'php7.2'
E: Unable to locate package php7.2-sqlite
E: Couldn't find any package by glob 'php7.2-sqlite'
E: Couldn't find any package by regex 'php7.2-sqlite'
E: Unable to locate package php7.2-gd
E: Couldn't find any package by glob 'php7.2-gd'
E: Couldn't find any package by regex 'php7.2-gd'

What Linux distro and version are you running?

The default PHP version in recent-ish distros (such as Ubuntu 20.04) is 7.4, so replace php7.2 with php7.4.

I’d also suggest NOT using libapache2-mod-php7.2/4, and use FPM instead.

apt install php7.4-fpm
a2enconf php7.4-fpm
systemctl restart apache2

What @andysh said…

…and

sudo systemctl restart php7.4-fpm

The configuration for php-fpm is in /etc/php-fpm.conf and /etc/php-fpm.d.

-- sw

I just did that and it still does the same thing

Did you restart the web server?

sudo systemctl restart apache2

-- sw

I did the php one and apache one

Ive connected the server to a domain: kool-kid.club/multicraft/install.php

Ive decided to just use a different control panel alltogether

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct