Vestacp wrong default folder permissions
I have a brand new installation of Vestacp. I went and added a new domain/account.
It created the account but then when I went to visit the site I got a 403 forbidden error on images and anything else that is not directly on the root folder. Obviously, I went and check the folder permissions and realized that the system is creating folders with a 644 permission instead of 755.
My VPS is a Centos 7
Has anybody else experience this before?
I tried registering to the vestcp forums but their "Anti spam" question is so stupid and unclear that I got block and now I have to wait.
See also questions close to this topic
local to local connections with TIME_WAIT state in centos
I have centos7 host with 2 interfaces:
lo: 127.0.0.1 eth0: 10.0.0.11
when I am looking for 'local to local' connections in
netstat -apeenoutput or in /proc/net/tcp file, I can see only one line for TIME_WAIT connection, for example (case 1):
tcp 0 0 127.0.0.1:6388 127.0.0.1:13444 TIME_WAIT
at the same time if state ESTABLISHED I can see 2 lines accordingly, see examples (case 2):
tcp 0 0 127.0.0.1:11514 127.0.0.1:24156 ESTABLISHED tcp 0 0 127.0.0.1:24156 127.0.0.1:11514 ESTABLISHED
tcp 0 0 10.0.0.11:81 10.0.0.11:52162 ESTABLISHED tcp 0 0 10.0.0.11:52162 10.0.0.11:81 ESTABLISHED
in both cases pair of ports busy correct?
could someone explain why 1 case having 1 line and 2 case 2 lines in output ?
I am trying to count total amount of busy ports on each IP address by counting 1 line - 1 port in
/proc/net/tcpbut looks like this is incorrect, is there any better way ?
Convert file to PDF using LibreOffice using under apache (i.e. when using JSP)
I am converting my
Libre officeis not converting file through
JSP. But when i am converting it through terminal or bash file, it is converting successfully. Please suggest.
My code for
Process p = Runtime.getRuntime().exec("bash fullpathtofile/file.sh pdf full fileName_to_convert myoutput directory");
My code for bash file is:
!/bin/bash export HOME=/tmp libreoffice --headless --convert-to $1 --outdir $3 $2
How do i staticly assign a ip in CentOS7
Trying to follow the guides online but i have no ifcfg-Eth0 or ensp3? or what ever all i have i ifcfg-lo and the contents look nothing like https://www.youtube.com/watch?v=5Hwv6OcfazI https://i.imgur.com/bxovaJ1.png also been trying to assign ip in Ubuntu 18.04 which doesn't use ect/network/interface no more it uses Netplan and even after i edit that and apply it i never have internet access. why on earth is linux so difficult to give addresses, i also tried the GUI way but i can never get online after. Is it something to do with Vmware?
start haproxy without Sudo: Starting frontend http-in: cannot bind socket
If I did execute haproxy from User with Sudoers right (Oracle Linux 7.5)
/data/haproxy/haproxy -f /etc/haproxy/haproxy.cfg
did start OK.
If I use User without Sudoers rights did return error: Starting frontend http-in: cannot bind socket
[WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for frontend 'https-in' as it requires HTTP mode. [WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-basic' as it requires HTTP mode. [WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-redirect' as it requires HTTP mode. [WARNING] 197/182406 (115694) : config : 'option forwardfor' ignored for backend 'https-servers-service' as it requires HTTP mode. [ALERT] 197/182406 (115694) : Starting frontend http-in: cannot bind socket [0.0.0.0:80] [ALERT] 197/182406 (115694) : Starting frontend https-in: cannot bind socket [0.0.0.0:443]
How solve this problem?
How do I script a “yes” response for installing programs in ansible
How do I script a “yes” response for installing programs in ansible eg: when i was trying to install a software through ansible it is looking for y/n response
I was trying to install jenkins on centos7 using ansible.
My code is failing at y/n interactive response
Let me know any way to do this.
How to run clamd by systemd as daemon on Centos 7
# rpm -q centos-release centos-release-7-5.1804.el7.centos.2.x86_64 # rpm -qa clam clamav-filesystem-0.100.0-2.el7.noarch clamav-data-0.100.0-2.el7.noarch clamav-lib-0.100.0-2.el7.x86_64 clamav-update-0.100.0-2.el7.x86_64 clamav-server-systemd-0.100.0-2.el7.x86_64 clamav-devel-0.100.0-2.el7.x86_64 clamav-scanner-systemd-0.100.0-2.el7.x86_64 clamd-0.100.0-2.el7.x86_64 clamav-0.100.0-2.el7.x86_64
# cat /usr/lib/systemd/system/clamd\@.service [Unit] Description = clamd scanner (%i) daemon After = syslog.target nss-lookup.target network.target [Service] Type = forking ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf Restart = on-failure
I use the standard config with defaults settings
# /etc/clamd.d/mail.conf LogSyslog yes TCPSocket 3310 TCPAddr 127.0.0.1 User clamscan
After start no any errors
# systemctl start clamd@mail 09:02:35 -- clamd: Limits: Global size limit set to 104857600 bytes. 09:03:39 -- clamd: Received 0 file descriptor(s) from systemd. 09:03:39 -- clamd: clamd daemon 0.100.0 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) 09:03:39 -- clamd: Running as user clamscan (UID 992, GID 989) 09:03:39 -- clamd: Log file size limited to 1048576 bytes. 09:03:39 -- clamd: Reading databases from /var/lib/clamav 09:03:39 -- clamd: Not loading PUA signatures. 09:03:39 -- clamd: Bytecode: Security mode set to "TrustSigned". 09:04:01 -- clamd: Loaded 6575820 signatures. 09:04:08 -- clamd: TCP: Bound to [127.0.0.1]:3310 09:04:08 -- clamd: TCP: Setting connection queue length to 200
# systemctl status clamd@mail ● firstname.lastname@example.org - clamd scanner (rspamd) daemon Loaded: loaded (/usr/lib/systemd/system/clamd@.service; static; vendor preset: disabled) Active: inactive (dead) # lsof -i | grep 3310 Empty
Looks like the service was not run as daemon. I tried to edit the
/usr/lib/systemd/system/clamd@.service, but got no expected result (it always restart)
[Service] Type = simple ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf --foreground=yes Restart = on-failure
Is anyone interested to set up a community for GeoDMS?
GeoDMS is a fairly obscure geographic object-oriented programming language written in C++ by Object Vision (http://www.objectvision.nl/geodms/). I'm using it to analyse location-dependent renewable energy options, with or without the Vesta model, also by Object Vision and the Dutch Environmental Planning Bureau (http://www.pbl.nl/).
I have frequent questions on how to do things in GeoDMS. If anyone else is working with this language, it would be great to exchange knowledge! Please respond to this threat. Thank you.
How to make a private proxy IP and port in Vestacp
I have a small server using Vesta control panel with Apache2 and Nginx. How to make use the server IP and port as my private proxy, something like: