GCP - How to edit wp-config.php

#4
Hi,

Any idea how we can edit the wp-config file? I'm new to this, and any direction will be greatly helpful.

I'm also unable to access IPaddress:7080 even though the TCP/UDP ports are open.

Regards
 
#6
Hi @Cold-Egg - Thanks for sharing the extremely helpful links. I switched to root and allowed 7080. But the OLS panel still wouldn't open. "Failed to Open Page". Any idea why this might be happening?

On the other hand, the site, Wordpress panel and PHPMyadmin are running fine.

Best regards
 
#8
Hi @Cold-Egg ,

I get the following response on using the command recommended by you. Does this mean there's a firewall?

<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->

<title>LiteSpeed WebAdmin Console</title>
<meta name="description" content="LiteSpeed WebAdmin Console">
<meta name="author" content="LiteSpeed Technologies, Inc.">

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

<!-- Basic Styles -->
<link rel="stylesheet" type="text/css" media="screen" href="/res/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="/res/css/font-awesome.min.css">

<link rel="stylesheet" type="text/css" media="screen" href="/res/css/smartadmin-production.min.css">

<link rel="stylesheet" type="text/css" media="screen" href="/res/css/lst-webadmin.min.css">

<!-- FAVICONS -->
<link rel="shortcut icon" href="/res/img/favicon/favicon.ico" type="image/x-icon">
<link rel="icon" href="/res/img/favicon/favicon.ico" type="image/x-icon">

<!-- GOOGLE FONT -->
<link rel="stylesheet" type="text/css" media="screen" href="/res/css/googlefonts.css">
<!-- link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700" -->

<!-- iOS web-app metas : hides Safari UI Components and Changes Status Bar Appearance -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="robots" content="noindex">

<script src="/res/js/libs/jquery-2.2.4.min.js"></script>
<script src="/res/js/libs/jquery-ui-1.12.1.min.js"></script>

</head>
<body class="lst-bgdark lst-bg-full">
<div class="container">
<div style="margin-top:25vh"></div>
<div class="col-md-4 col-md-offset-4 padding-10">
<div class="well no-padding">
<form action="login.php" id="login" method="post" class="smart-form client-form" novalidate="novalidate">
<header><div class="text-center"><object type="image/svg+xml" data="/res/img/product_logo.svg" width="80%">Your browser doesn't support SVG</object></div></header>
<fieldset>
<section><div class="note">Invalid credentials. </div></section> <section>
<label class="label">User Name</label>
<label class="input"> <i class="icon-append fa fa-user"></i>
<input type="text" id="uid" name="userid" tabindex="1" required autofocus="autofocus">
<b class="tooltip tooltip-top-right"><i class="fa fa-user txt-color-teal"></i> Please enter user name</b></label>
</section>

<section>
<label class="label">Password</label>
<label class="input"> <i class="icon-append fa fa-lock"></i>
<input type="password" id="pass" name="pass" tabindex="2" required >
<b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i> Enter your password</b> </label>
</section>

</fieldset>
<footer>
<button type="submit" class="btn btn-login">
Login </button>
</footer>
</form>
</div>
</div>
<br>
</div>
<div class="row" style="margin:40px"></div>
<div class="footer">
<p class="text-center lst-copyright">Copyright &copy; 2014-2021 <a href="https://www.litespeedtech.com">LiteSpeed Technologies, Inc.</a> </p>
</div>

<script type="text/javascript">
function lst_restart() {
$.SmartMessageBox({
title: "<i class='fa fa-lg fa-repeat txt-color-green'></i> <span class='text-warning'><strong>Are you sure you want to restart LiteSpeed?</strong></span>",
buttons: '[Cancel][Go]'
}, function (ButtonPressed) {
if (ButtonPressed === "Go") {
$.ajax({
type: "POST",
url: "view/serviceMgr.php",
data: {"act": "restart"},
beforeSend: function () {
$.smallBox({
title: "Requesting",
content: "<i class='fa fa-clock-o'></i> <i>Current page will be refreshed after a few seconds...</i>",
color: "#659265",
iconSmall: "fa fa-check fa-2x fadeInRight animated",
timeout: 15000
});
},
success: function (data) {
location.reload(true);
}
});
}
});
}

function lst_toggledebug() {
$.SmartMessageBox({
title: "<i class='fa fa-lg fa-bug txt-color-red'></i> <span class='text-warning'><strong>Are you sure you want to toggle debug logging?</strong></span>",
content: "With debug logging turned on, you may fill up disk space. Only turn on for debug purpose and for short period of time.",
buttons: '[Cancel][Go]'
}, function (ButtonPressed) {
if (ButtonPressed === "Go") {
$.ajax({
type: "POST",
url: "view/serviceMgr.php",
data: {"act": "toggledebug"},
beforeSend: function () {
$.smallBox({
title: "Requesting",
content: "<i class='fa fa-clock-o'></i> <i>Current page will be refreshed after a few seconds...</i>",
color: "#659265",
iconSmall: "fa fa-check fa-2x fadeInRight animated",
timeout: 2200
});
},
success: function (data) {
setTimeout(refreshLog, 2000);
}
});
}
});
}
</script>

<!-- IMPORTANT: APP CONFIG -->
<script src="/res/js/app.config.min.js"></script>

<!-- BOOTSTRAP JS -->
<script src="/res/js/bootstrap/bootstrap.min.js"></script>

<!-- CUSTOM NOTIFICATION -->
<script src="/res/js/notification/SmartNotification.min.js"></script>

<!-- browser msie issue fix -->
<script src="/res/js/plugin/msie-fix/jquery.mb.browser.min.js"></script>

<!--[if IE 8]>
<h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>
<![endif]-->

<!-- MAIN APP JS FILE -->
<script src="/res/js/lst-app.min.js"></script>

<script type="text/javascript">
// DO NOT REMOVE : GLOBAL FUNCTIONS!
$(document).ready(function () {
pageSetUp();
});


</script>


</body>
</html>
 
Top