First we need to make sure that the backup tar file is in the backup directory described in the gitlab.rb configuration (Default is /var/opt/gitlab/backups). Next, we need gitlab running for restoring backup on ominbus installations. If it’s not up, start with,
sudo gitlab-ctl start
and we need to have services that are connected to database in stopped state,
here, 1393157476_2018_03_11_9.1.0 is the name of the backup file that will be restored. Once the backup has been restored, we need to restart the gitlab services,
sudo gitlab-ctl restart
We now have successfully restored gitlab from the backup file.
git clone https://github.com/petranikin/mgrvphp.git
cd mgrvphp
bash mgrvphp
Then enter version of PHP You need to install (remember that you need to enter fool version: 7.1.4). All versions of PHP You can see on site: http://php.net/releases
Install packages and dependencies: Yes
Create links in /usr/bin : Yes
Create template in VestaCP: Yes
Then wait when script install PHP on Your server (it took me more than 30 minutes)
Once the installation is complete, you can go to the panel to install the desired template:
How to check PHP version on server and site?
Create the file phpinfo.php. Open it with a text editor and enter the following:
‹?php
phpinfo();
?›
Upload the file to the root of the site → open the file in the browser and look at the installed version of php:
Another PHP framework for web applications is Symfony. It is used by thousands of web applications (including BlaBlaCar.com and Spotify.com) and most of the popular PHP projects (including Drupal and Magento).GitHub Stars: 17.8k+
I’ll give you an example of viewing information about ONT (ONU) on EPON OLT BDCOM P3310C, on other models is essentially the same.
Connect to OLT and go into configuration mode:
enable
config
To view the ONU list, use the commands:
show epon onu-information
show epon active-onu
show epon inactive-onu
To view all ONU MAC addresses on interface use command:
show epon onu-information interface EPON 0/1
Example of viewing clients routers MAC addresses on a port or ONU:
show mac address-table interface EPON0/1
show mac address-table interface EPON0/1:5
show mac address-table brief
Viewing the optical power of all ONUs on interface and a specific ONU:
show epon optical-transceiver-diagnosis interface EPON 0/1
show epon interface ePON 0/1:4 onu ctc optical-transceiver-diagnosis
View ONU models and firmware versions:
show epon onu-software-version
show epon onu-software-version interface EPON 0/1
View description and status of interfaces:
show interface brief
ONU ethernet port status and viewing statistics:
show epon interface epON 0/1:1 onu port 1 state
show epon interface epON 0/1:1 onu port 1 statistics
show epon interface epON 0/1:1 onu mac address-table
Also you can see in the saved and active OLT configuration which ONUs are registered:
Next lets create new folder “react-app” with files of our application. In this folder create two empty files: index.html, package.json, and subfolder src such as on screenshot:
File index.html will have basic html markup:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<!-- Bundle -->
<script src="./src/index.js"></script>
</body>
</html>
In subfolder src create file index.js, it will be main file of our react application: