Quote:That's interesting as both tutorials are very similar and you are the first to report this.
I remember seeing this way back in ZPanel but since that site/forum is gone, I can't check there
If you edited any files using a Windows editor (wordpad, notepad, etc.), then uploaded them to your Ubuntu server this can happen.
I used Notepad2 to create the settings needed then logged onto my panel and pasted the lines into the Global Sentora Entry under Apache Config. (In Google Chrome Browser)
Once I saved the settings I ssh'd to the server and I ran:
Code:
php -q /etc/sentora/panel/bin/daemon.php
I then tried to
Code:
service restart apache2
But this failed.
I looked at the httpd-vhosts.conf and saw the ^M Characters.
I then ran
Code:
dos2unix /etc/sentora/configs/apache/httpd-vhosts.conf
Restarted apache and it started. But the httpd-vhosts.conf is getting overridden and ^M Characters are returning.
If I could find out how the "php -q /etc/sentora/panel/bin/daemon.php" is getting called (Cron or something) I could change it to run dos2unix after generating the httpd-vhosts.conf file and before attempting to restart Apache2. This would get me out of trouble for the moment.
I will look at setting up a new server over the next day or so. I will then setup LetEncrypt before setting up any sites and see what happens. It's only a personal server so only two websites so will not be that hard to migrate the sites over.
Thanks for the feedback and help so far.