Can't access Multicraft installation page
✓ 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
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:
- 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 ([email protected]_exists(dirname(FILE).'/protected/config/config.php'))
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
systemctl restart apache2
What @andysh said…
sudo systemctl restart php7.4-fpm
The configuration for php-fpm is in /etc/php-fpm.conf and /etc/php-fpm.d.