Plesk Document Roots

In order to solve issues related to Plesk control Panel , you must be aware of the important documents.

Below are the important document roots in Plesk :

8) Site Document root

/var/www/vhosts/domain.com

8) Apache config File

/var/www/vhosts/domain.com/conf

8) Apache include files directory

/etc/httpd/conf.d

8) DNS/Named path

/var/named/run-root/var

8) Statistics path

/var/www/vhosts/domain.com /statistics

8) Path for qmail

/var/qmail/mailnames

8) Php.ini Path

/etc/php.ini or /usr/local/psa/admin/conf/php.ini

8) Maillog path:

/usr/local/psa/var/log/maillog

8) Error log Path

/home/httpd/vhosts/domain.com/statistics/logs/error_log

8) Domain Access logs

/home/httpd/vhosts/domainname.tld/statistics/logs/access_log

8) Domain backup path

/var/lib/psa/dumps/domains

8) Mysql Path

/var/lib/mysql/database_name

How to add/bind additional IP’s in Fedora

If  you have a  single NIC (Network  Interface Card)  card  on  your  server  and you want to  add or bind few new  IP’s on the same server  using the same NIC  card  then you need to  create  the  aliases for eth0 .

For example if you want to  add the below two IP’s  on  the server :

10.10.10.02

10.10.10.03

Assuming that the eth0 has IP 10.10.10.01

then  you need to  create the aliases  as :

eth0:1  for  10.10.10.02

eth0:2 for  10.10.10.03

Follow the belows  steps to find out  how you can  add/bind the above two IP’s on  the server :

The network scripts are located in /etc/sysconfig/network-scripts/. Go into that directory.

[email protected][#] cd /etc/sysconfig/network-scripts/

Then list the files in the network-scripts directory

[[email protected] network-scripts]# ls
ifcfg-eth0 ifcfg-lo ifdown-ippp ifdown-post ifdown-sl ifup-bnep ifup-ipv6 ifup-plusb ifup-sit init.ipv6-global route6-eth0
ifcfg-eth0:1 ifdown ifdown-ipsec ifdown-ppp ifdown-tunnel ifup-eth ifup-ipx ifup-post ifup-sl net.hotplug
ifcfg-eth0:2 ifdown-bnep ifdown-ipv6 ifdown-routes ifup ifup-ippp ifup-isdn ifup-ppp ifup-tunnel network-functions
ifcfg-eth1 ifdown-eth ifdown-isdn ifdown-sit ifup-aliases ifup-ipsec ifup-plip ifup-routes ifup-wireless network-functions-ipv6

And then create the two aliases for eth0 as etho:1 and etho:2 by runnning the below commands :

[[email protected] network-scripts]# cp ifcfg-eth0 ifcfg-eth0:1
[[email protected] network-scripts]# cp ifcfg-eth0 ifcfg-eth0:2

Then, take a look inside ifcfg-eth0 and review it’s contents

[[email protected] network-scripts]# cat ifcfg-eth0

It will show the output as :


DEVICE=eth0
BOOTPROTO=static
BROADCAST=x.x.x.x
IPADDR=10.10.10.01
NETMASK=x.x.x.x
NETWORK=x.x.x.x
ONBOOT=yes

Then just change the IP address for ifcfg-eth0:1 to 10.10.10.02

[[email protected] network-scripts]# vi ifcfg-eth0:1

DEVICE=eth0:1
BOOTPROTO=static
BROADCAST=x.x.x.x
IPADDR=10.10.10.02
NETMASK=x.x.x.x
NETWORK=x.x.x.x
ONBOOT=yes

Save and Quit.
Restart the Network Service

[email protected][#] /etc/init.d/network restart
or
[email protected][#] service network restart

Repeat the same steps for eth0:2 .

That’s all you are done.

How to enable Mysql 3306 port for a particular IP and deny for all ?

If you want to disable the Mysql Access for all IPs except your ip then follow the below steps :

[email protected][#] vi /etc/csf/csf.conf

Then search for the line :
# Allow incoming TCP ports
and the remove the port : 3306

and also search for the line :

# Allow outgoing TCP ports
and remove the port : 3306

Save and Quit.

then open the csf.allow file

[email protected][#] vi /etc/csf/csf.allow
and add the entry as :

tcp:in:d=3306:s=10.10.10.10

And then restart the CSF service

[email protected][#] csf -r

Note : Replace 10.10.10.10 with the IP for which you want to Allow access.

That’s all you are done.