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.

[GUIDE] Guides/Fixes For Sentora For Windows
#1
[GUIDE] Guides/Fixes For Sentora For Windows
Figured i would start this due to finding various things that were ether broken/missing in the Windows version. I will format this in a Q&A style as to make things simple.

Q: A command line window pops up every 5 minutes, how do i stop this?

A: People have said that Sentora is not meant to be used on a workstation, although i find that there are certain scenarios where it is okay to use it on a workstation. Take mine for example, i need a full web stack for development of PHP applications, being able to run one with everything i need including a email server and a nice UI is a godsend. It has completely replaced AMPPS for me, and have been doing this since i found zPanel.

As to fix this issue (because i do know it can be annoying), it is quite simple. Simply open the file C:\Sentora\bin\cron\cron.ini and search for the line that has "AsLoggedUser ON" and replace it with "AsLoggedUser OFF". Restart cron and the window should no longer appear.

Note: If you are on Windows XP this is not necessary. The reason being is that after Windows XP the way services were handled changed. You can read up more on it here http://www.howtogeek.com/school/using-wi...o/lesson8/


Q: The bandwidth is not being added up for clients, it stays at 0 Bytes. How do i fix this?

A: The reson behind why this is not working is that bandwidth logs are not being generated for virtual hosts. The line is missing from the apache_admin daemon hook. To fix it the following line needs to be added to C:\Sentora\panel\modules\apache_admin\hooks\OnDaemonRun.hook.php right under line #318
PHP Code:
$line .= '    CustomLog "' ctrl_options::GetSystemOption'log_dir' ) . "domains/" $vhostuser'username' ] . "/" $rowvhost'vh_name_vc' ] . '-bandwidth.log" ' ctrl_options::GetSystemOption'bandwidth_log_format' ) . fs_filehandler::NewLine(); 

Q: How do i setup SSL for the Sentora Panel?

A: You need to download openssl from https://www.openssl.org/related/binaries.html
All you need to do is extract it to some place on your drive (I recommend C:\Sentora\bin\openssl as i am developing a module to automate the entire process and this is where openssl will be located.) and run the following command from a command prompt
Code:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out C:/Sentora/bin/apache/conf/ssl/sentora.crt -keyout C:/Sentora/bin/apache/conf/ssl/sentora.key

Note: This will generate a self signed SSL certificate and key. I am not going to go on about how to get a signed SSL certificate as that info can be found all over the internet and goes beyond what is needed in this guide.

You then need to open C:\Sentora\bin\apache\conf\httpd.conf and replace the line "
#LoadModule
ssl_module modules/mod_ssl.so" with "LoadModule ssl_module modules/mod_ssl.so". This will enable SSL on the apache server.

You then need to go to Server Admin > Module Admin > Apache Config and add the following to the Global Sentora vHost entry

Code:
NameVirtualHost *:443
    SSLEngine on
    SSLCertificateFile C:/Sentora/bin/apache/conf/ssl/sentora.crt
    SSLCertificateKeyFile C:/Sentora/bin/apache/conf/ssl/sentora.key

After the next daemon run and apache restart you should be able to access the panel from https://


If i have made any mistakes do feel free to correct me, and i will take requests for more guides.
I will update this as neccessary.
Reply
Thanks given by: zHostingSolutions
#2
RE: [GUIDE] Guides/Fixes For Sentora For Windows
Thanks for the tips.
Reply
Thanks given by:
#3
RE: [GUIDE] Guides/Fixes For Sentora For Windows
Thanks for the command line to prevent daemon from running every 5 minutes.

I can't wait till you make the module to automate SSL process.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora for Windows 1.0.0 released! MarkDark 72 245 ,633 04-01-2022, 09:41 PM
Last Post: cathelest
ZPanel 10.1.1 -> Sentora 1.0.3 Windows Version TGates 20 64 ,533 09-30-2021, 09:36 PM
Last Post: cathelest
Sentora on Windows ANY NEW INSTALLER elmoutakaf 3 11 ,642 10-04-2020, 02:37 AM
Last Post: Gigamax

Forum Jump:


Users browsing this thread: 1 Guest(s)