This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Control-M (^M) Characters in httpd-vhosts.conf
#4
RE: Control-M (^M) Characters in httpd-vhosts.conf
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 Blush  

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.
Reply
Thanks given by:


Messages In This Thread
RE: Control-M (^M) Characters in httpd-vhosts.conf - by mckinnon81 - 07-07-2016, 09:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
what files edit /etc/sentora/configs/apache/httpd-vhosts.conf mungujakisa 11 27 ,364 08-21-2018, 10:11 AM
Last Post: TGates
Important HTTPD not starting timce2000 4 11 ,161 03-17-2018, 06:43 AM
Last Post: TGates
httpd-vhosts.conf problem mohamadcom 5 12 ,036 02-03-2018, 08:40 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 3 Guest(s)