Competitibia
Pain & Glory WHole
- Joined
- Apr 1, 2021
- Messages
- 545
- Solutions
- 3
- Reaction score
- 210
Running your first ubuntu linux OT - OTS Guide
docs.otland.net
using the outdated tutorial as reference
ubuntu@vps-x3:~$ sudo nginx -t
nginx: [emerg] open() "/etc/nginx/sites-enabled/phpmyadmin" failed (2: No such file or directory) in /etc/nginx/nginx.conf:60
nginx: configuration file /etc/nginx/nginx.conf test failed
ubuntu@vps-61e8e063:~$ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
ubuntu@vps-x:~$ sudo nginx -t
nginx: [emerg] open() "/etc/nginx/sites-enabled/phpmyadmin" failed (2: No such file or directory) in /etc/nginx/nginx.conf:60
nginx: configuration file /etc/nginx/nginx.conf test failed
ubuntu@vps-61e8e063:~$
Post automatically merged:
fixed:
sudo ln -sf /etc/nginx/sites-available/phpmyadmin /etc/nginx/sites-enabled/phpmyadmin
if anyone comes across similar problem.
also added } to eof
cant access phpmyadmin via ip:2344 it just downloads a file?
<?php
declare(strict_types=1);
use PhpMyAdmin\Routing;
if (! defined('ROOT_PATH')) {
// phpcs:disable PSR1.Files.SideEffects
define('ROOT_PATH', DIR . DIRECTORY_SEPARATOR);
// phpcs:enable
}
global $route, $containerBuilder;
require_once ROOT_PATH . 'libraries/common.inc.php';
$dispatcher = Routing::getDispatcher();
Routing::callControllerForRoute($route, $dispatcher, $containerBuilder);
Last edited: