Linux system installation OneNav personal bookmark manager
1. Introduction to OneNav
1. Introduction to OneNav
OneNav is a navigation/bookmark manager developed with PHP + SQLite 3, supports Material Design style, simple interface and easy to use.
2. OneNav Features
- Support background management
- Support for private links
- Support multiple theme styles (2 sets of templates are built in by default)
- Support automatic identification of link information
- support API
- Support right-click menu management
2. Introduction to the local environment
2.1 Local Environment Planning
This practice is a personal test environment, and the operating system version is centos7.6.
hostname | IP address | operating system version | kernel version | PHP version |
---|---|---|---|---|
jeven | 192.168.3.166 | hundred 7.6 | 3.10.0-957.el7.x86_64 | 7.4.33 |
2.2 Introduction to this practice
1. The practical deployment environment is a personal test environment;
2. OneNav personal bookmark manager is deployed in the centos7.6 environment.
3. Check the local environment
3.1 Check the local operating system version
Check local OS version
[root@jeven ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
3.2 Check the system kernel version
Check system kernel version
[root@jeven ~]# uname -r
3.10.0-957.el7.x86_64
3.3 Check the status of the local yum warehouse
- Configure the mirror source of Alibaba Cloud
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
- Check the status of the local yum warehouse
[root@jeven yum.repos.d]# yum repolist all |grep enable
base/7/x86_64 CentOS-7 - Base - mirrors.aliyun.com enabled: 10,072
extras/7/x86_64 CentOS-7 - Extras - mirrors.aliyun.com enabled: 515
updates/7/x86_64 CentOS-7 - Updates - mirrors.aliyun.com enabled: 4,996
Fourth, install the httpd service
4.1 Install httpd
Install httpd using yum
yum install httpd -y
4.2 Start httpd service
- Start the httpd service and enable it to start automatically
systemctl enable --now httpd
- Check httpd service status
[root@jeven ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2023-08-22 20:02:24 CST; 6s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 21710 (httpd)
Status: "Processing requests..."
Tasks: 6
Memory: 2.9M
CGroup: /system.slice/httpd.service
├─21710 /usr/sbin/httpd -DFOREGROUND
├─21711 /usr/sbin/httpd -DFOREGROUND
├─21712 /usr/sbin/httpd -DFOREGROUND
├─21713 /usr/sbin/httpd -DFOREGROUND
├─21714 /usr/sbin/httpd -DFOREGROUND
└─21715 /usr/sbin/httpd -DFOREGROUND
Aug 22 20:02:24 jeven systemd[1]: Starting The Apache HTTP Server...
Aug 22 20:02:24 jeven systemd[1]: Started The Apache HTTP Server.
4.3 Set up firewall and selinux
- Firewall settings, turn off the firewall.
systemctl stop firewalld && systemctl disable firewalld
- Firewall settings, when you need to open the firewall, you can release port 80.
firewall-cmd --zone=public --permanent --add-port=80/tcp
firewall-cmd --reload
- close selinux
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
getenforce
4.4 Test httpd service
In the local browser, visit http://192.168.3.166/, and actually replace the IP with the IP address of your own server.
The content of the website can be opened normally, indicating that the httpd service is normal.
5. Install SQLite3
5.1 Install SQLite3
Install SQLite3 using yum
sudo yum install sqlite sqlite-devel
5.2 Check SQLite3 version
Check SQLite3 version
[root@jeven ~]# sqlite3 --version
3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668
6. Install php service
6.1 Install remi's yum source
Install remi's yum source
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
6.2 Install PHP tools
Directly install php7.4 version and its module components through yum.
yum install -y --showduplicate --enablerepo=remi --enablerepo=remi-php74 php-fpm php php-cli php-bcmathphp-gd php-json php-mbstring php-mcrypt php-mysqlnd php-opcache php-pdo php-pecl-crypto php-pecl-mcrypt php-pecl-geoip php-recode php-snmp php-soap php-xml php-pecl-zip
6.3 Edit info.php test file
Edit the info.php test file
[root@jeven ~]# cat /var/www/html/info.php
<?php
phpinfo();
?>
6.3 Restart hhtpd service
Restart hhtpd service
systemctl restart httpd
6.4 View php installation status
In the browser, http://192.168.3.166/info.php, replace the IP address with your own server IP address.
The following page appears, indicating that the PHP installation is normal.
7. Install OneNav
7.1 Download OneNav source package
- Download the OneNav source package
git clone https://github.com/helloxz/onenav.git
- Copy OneNav content to /var/www/html/
cp -r ./onenav/* /var/www/html/
7.2 Set directory permissions
Set website directory permissions
chown -R apache:apache /var/www/html/
7.3 Restart the httpd service
Restart the httpd service again
systemctl restart httpd
8. Access the OneNav background
8.1 Set login password
Access address: http://192.168.3.166/, replace the IP address with your own server IP address.
Customize the user name and password, set the admin account here.
8.2 Log in to the OneNav background
Access address: http://192.168.3.166/index.php?c=login
Replace the above access address with your own server address, and fill in the user name and password you set.
Nine, add a custom URL
9.1 Add URL
On the background management page, in Link Management, select Add Link.
Fill in URL information
9.2 Access the front page
Visit the front page: http://192.168.3.166/Replace
the IP address with the IP address of your own server
9.3 Add URL for test access
Open the URL just added, and open the URL normally, indicating that the deployment is successful.