Wojtek

Page:

I did test on fresh Debian GNU/Linux 9 (stretch).
Everything works.
I will prepare hint with information why is not prepared.
So you could see what is wrong.
Update will be available in 1 hour

Hi Florian.

Thank You for bug report.

Yes. I was able to make a simulations and finally I have found problem.
You cannot add domain when your hostname is equal to.
TinyCP was tinking that there is already added.

I just fixed it in version 384.

If you have problems with update from panel do it from command line:

/opt/tinycp/bin/tinycp.sh update s




Hello.

TinyCP does not manage DNS.
DNS server on device where the "A" record point to itself is not good practice.
You should use your domain provider DNS servers or other external.

Hi

To enable directory listing simply create .htaccess file in your site directory

Options +Indexes
# or #
IndexIgnore *
You can install any PHP versions  you want manually.
By default TinyCP install PHP7 with Apache or older if 7 not exists.

You can modify /etc/apache2/apache2.conf manually. TinyCP wont override it.
VHosts config files for each sites are always generated by TinyCP so better to do not modify it manually.
To specify PHP version for site you can also do it via .htaccess file

to switch to PHP 5.6:

AddHandler application/x-httpd-php56 .php
to switch to PHP 7:
AddHandler application/x-httpd-php7 .php
to switch to PHP 7.1:
AddHandler application/x-httpd-php71 .php
etc.

In next update will be able to enable PHP FPM for sites.

Hi.

I found up that ufw is disabled by default.
https://help.ubuntu.com/community/UFW

TinyCP uses iptable and ip6table commands to manage firewall.
It stores here: /opt/tinycp/etc/iptables.cron.reboot
I am not sure but probably ufw has default policy deny.
You can check it by command: 

ufw status verbose

Default policy after clear installation of system is usually allow incomming.
Try do the same via command below. Then TinyCP and UFW should be able to work together.
ufw default allow

Remember, when you enable ufw you start managing firewall in your way.
If my tips above would not help, you have to choose tinycp or ufw.

One more TIP.
TinyCP panel shows and creates the rules with descriptions: 
CUSTOM-TINYCP-VElOWUNQIFNJR05BVFVSRQ
SERVICE-TINYCP-VElOWUNQIFNJR05BVFVSRQ
In this way the panel does not interact with many other softwares which use firewall too ie fail2ban and so one.

Join our Discord server
Write a reply Edit a reply