Modify the default WWW installation directory of the Pagoda panel to another mounting disk directory

888u

Last update at :2024-06-29,Edit by888u

Today Snail was helping a server provided by a netizen to install the Pagoda Panel. He saw that the system disk had a 10GB hard drive, and the student had mounted it himself or the server opened by the merchant had automatically mounted the 50GB hard drive in the HOME directory. But those of us who have installed the Pagoda Panel must know that the Pagoda Panel is installed in the WWW directory by default. If we install it directly at this time, it will definitely not be installed in the mounting disk.

Snail has installed the Pagoda panel before. It was manually mounted directly to the WWW directory and then executed the one-click installation script to install it. However, although it can be remounted here, it feels a little troublesome, so I am not going to do this. I first looked to see if there was a script in the Pagoda Panel install directory that could modify the installation directory, but I didn't seem to find it.

So we are going to solve this problem through soft connection.

First, create the WWW directory

Create a WWW directory in the HOME directory.

cd home

mkdir -p www

Second, soft connection settings

We check whether the root parallel directory has a www directory, and if not, we need to create one.

ln -s /home/www /www

In this way, when we create a shortcut, when installing the Pagoda Panel, it will be installed directly to the www directory of the shortcut, but it is actually in the www directory of the home directory.

PS: If we have no other files in HoME, we can also directly set the root shortcut soft connection in the Home directory.

Finally, we have no problem executing the installation script of Pagoda Panel (Linux VPS host RPM extremely fast installation BT Pagoda Panel installation experience process). Of course, security issues need to be solved after installation. Reference: What you must do after installing Pagoda Panel Security settings options

Recommended site searches: US host ranking, website IP address query, virtual host evaluation, top ten server brand rankings, icp filing center, foreign free asp space, domain name filing query, cpanel space, how much does domain name trading network server defense cost ,

Modify the default WWW installation directory of the Pagoda panel to another mounting disk directory

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码