Quantcast
Channel: Sentora Support Forums - All Forums
Viewing all 4648 articles
Browse latest View live

FTP Home Directory Inside Domain Directory

$
0
0
Hi, 

I want to set the home directory of a FTP account inside the domain directory. When I select the "Use Domain Directory" option, I get the option to set the domain directory as the home directory, but not any other directory inside it. For example- If domain directory is /DOMAIN, I want the home directory to be /DOMAIN/FOLDER for the ftp account. 

How to accomplish this?

sentora cluster

$
0
0
Been thinking a while over sentora cluster. It was amazing challenge and idea.

A lot of issues but I think got the solution:

1. master node with full sentora install.

2. /var need to be on glusterfs (hmm logs) or maybe be only /var/sentora/hostdata

3. db on mariadb Galera or mysql. upgrade the main db to cluster.

4. install sentora stack on slave and upgrade db to cluster mode and same glusterfs setup to replicate data.

We may need too a small script on slave for apache conf rebuild or symlink it /var/sentora. same over dns data if needed.

sessions will be replicated. and all users data/bd's.

We could that way cluster web and email services.

Cluster could share load and survive disk failor but would be down if config messed up or hack.

I need to test this soon.

M B

automatation?

Index page landing on login page

$
0
0
For whatever reason, I've had difficulty with the last few domains I've landed. I've replaced the index.html and added an .htaccess file but it doesn't seem to matter, the pages always land on the Sentora login panel. My last 10+ sites have been fine. I'm not sure what I'm missing?

I appreciate any help!

Custom From Sentora Blue

[split] Can't see index.html

$
0
0
(09-05-2014, 03:07 PM)Nigel Wrote: http://docs.sentora.org

I'm thinking that it's a propagation issue or it could the fact that Sentora hasn't been released.

The page lands, is propagated. It will not find my index.html, even when forced. It seems like the directory is not forwarded or something. What do you mean by released?

How can i have SSLv3 Poodle when i disabled it.

$
0
0
on my vHost test.azure-test.nl i have this config

SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCMBig GrinH+AESGCM:ECDH+AES256Big GrinH+AES256:ECDH+AES128Big GrinH+AES:ECDH+3DESBig GrinH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/test.azure-test.nl/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/test.azure-test.nl/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/test.azure-test.nl/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
# SSLCompression off

the -SSLv3 should mean NO SSLv3 right.
But when you do the SSL lab test.. SSLv3 is on it says??
https://www.ssllabs.com/ssltest/analyze....re-test.nl

Please assist..

HOWTO : Sentora (on Centos) Letsencrypt with Python 2.7

$
0
0
As Letsencryp states that 2.6 is no longer supported in the future here is my guide to set it up with 2.7

Install Python 2.7 op Centos (with alternate install which leaves 2.6 also in place)
Code:
yum install gcc
cd /usr/src
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
tar xzf Python-2.7.10.tgz
cd Python-2.7.10
./configure
make altinstall

Install numpy for Python (because we can)
Code:
yum install python27-numpy

Install the letsencrypt Virtual Environment based on Python 2.7 this also removes an already installed letsencrypt version
Code:
yum install git
cd /root/tools
rm -rf /root/tools/letsencrypt
rm -rf /etc/letsencrypt
rm -rf /var/lib/letsencrypt
rm -rf /root/.local/share
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
sed -i "s|--python python2|--python python2.7|" letsencrypt-auto
./letsencrypt-auto --verbose

If you get somekind of ascii error just ignore @ this stage..

Code:
service httpd stop
./letsencrypt-auto certonly --standalone -d <your vhost domain>
service httpd start

Changing Sentora port:
On Sentora Panel go to Admin -> Module Admin -> Apache Config > Override a Virtualhost [Select VHost] ->
Tick Port Override.
Forward Port 80 to Overriden Port: 443

Custom Entry:
Code:
SSLEngine on
SSLProtocol ALL -SSLv2 -SSLv3
SSLHonorCipherOrder On
SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
SSLCertificateFile /etc/letsencrypt/live/support.randomsolutions.nl/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/support.randomsolutions.nl/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/support.randomsolutions.nl/chain.pem
# Keeping bellow for future upgrades.
# Requires Apache >= 2.4
# SSLCompression off

Wait on daemon update or run it manually and restart apache.
Code:
php -q /etc/sentora/panel/bin/daemon.php
service httpd restart

When you get an error on starting stating that 443 is already in use
Code:
vi /etc/sentora/configs/apache/httpd-vhosts.conf
put a # before listen 443

How to get an A rating on SSLlabs (Qualys) we also need to disable SSLv3 in the main ssl.conf file
Code:
vi /etc/httpd/conf.d/ssl.conf
add -SSLv3 behind SSLProtocol ALL -SSLv2

Code:
service httpd start
done

NOW FOR THE AUTOMATIC RENEWAL PART make a Cronjob

Code:
sudo crontab -e
30 2 * * 1 /root/.local/share/letsencrypt/bin/letsencrypt renew >> /var/log/letsencrypt-renew.log
35 2 * * 1 service httpd restart

Save and exit. This will create a new cron job that will execute the letsencrypt-auto renew command every Monday at 2:30 am, and reload Nginx at 2:35am (so the renewed certificate will be used). The output produced by the command will be piped to a log file located at /var/log/le-renewal.log.

You can verify if it was set OK by
Code:
crontab -l

Done! No Thanks

PHP framework?

$
0
0
Hi,

Question if any here is used to? 

What is the best php framework you would use for building an API. Clean and light. 

I'm thinking about F3:

http://fatfreeframework.com/

HOWTO get A+ rating on SSLLabs..

Why do i always have to # out the lisen 443 to get it to work..

$
0
0
I have to do this every time when a save vhost config for SSL...

to get it to work again..

why it that..

Code:
When you get an error on starting stating that 443 is already in use
vi /etc/sentora/configs/apache/httpd-vhosts.conf
put a # before listen 443

Attn mods - Forum page not loading

OpenSSH on windows

$
0
0
Only a notice but openSSH is officially ported to windows

https://github.com/PowerShell/Win32-Open...32-OpenSSH

And this is stable and working fine.

BUT this doesn't mean we get rsync or linux tools. It's mainly SSH daemon. 

This can allow too to run powershell script remotly if you call powsershell scripts using ssh on remote server.


M B

Problem with subdomain

$
0
0
Hi Guys

i have problem with subdomains. After i create subdomains i see live status.. and after i click on this adress its nor run but off "not found the server". I lok on Sentora head wiki and found nice tutorial ok i try it but with fixing. already this problem again.

Wiki and info where i looking on tutorial:

- http://docs.sentora.org/?node=96
- http://thetechbase.net/article/how-to-cr...in-sentora


Domain: http://mlich.eu/
Problemable subdomain: http://juraj.mlich.eu/

Please help! Thank you

No emails sent via PHP Mail() function

$
0
0
I am building a webpage with a contact form that sends an email to me via the Mail() php function.

I can send/receive emails fine via Roundcube, but none are sent via this method.  

Here is my script:

contact page:

Code:
<form  action="mail_handler.php" method="post" class="col s12">
           <div class="row">
             <div class="input-field col s6">
               <input id="name" type="text" class="validate">
               <label for="name">Name</label>
             </div>
           </div>
           <div class="row">
             <div class="input-field col s6">
               <input id="email" type="email" class="validate">
               <label for="email">Email Address</label>
             </div>
             <div class="input-field col s6">
               <input id="telephone" type="tel" class="validate">
               <label for="telephone">Telephone Number</label>
             </div>
           </div>
             <div class="row">
               <div class="input-field col s12">
                 <textarea id="message" class="materialize-textarea"></textarea>
                 <label for="message">Breif description of work to be done.</label>
               </div>
             </div>
             <div class="row">
               <div class="input-field col s6">
                 <select>
                   <option value="" disabled selected>Choose the best way to contact you</option>
                   <option value="email">Email</option>
                   <option value="telephone">Telephone</option>
                 </select>
                 <label>Best Contact Method</label>
               </div>
               <div class="input-field col s6">
                 <button class="btn waves-effect waves-light" type="submit" name="action">Submit
                   <i class="material-icons right">send</i>
                 </button>
               </div>
             </div>
           </form>



php page:
Code:
<?php
if(isset($_POST['submit'])){
   $to = "myemailishere"; // this is your Email address
   $from = $_POST['email']; // this is the sender's Email address
   $name = $_POST['name'];
   $telephone = $_POST['telephone'];
   $contactmethod = $_POST['contactmethod'];
   $subject = "Form submission";
   $subject2 = "Copy of your form submission";
   $message = $name . " wrote the following:" . "\n\n" . $_POST['message'];
   $message2 = "Here is a copy of your message " . $name . "\n\n" . $_POST['message'];

   $headers = "From:" . $from;
   $headers2 = "From:" . $to;
   mail($to,$subject,$message,$telephone,$contactmethod,$headers);
   mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
   echo "Mail Sent. Thank you " . $name . ", we will contact you shortly.";
   // You can also use header('Location: thank_you.php'); to redirect to another page.
   // You cannot use header and echo together. It's one or the other.
   }
?>


Any ideas?  I'm not receiving any emails whether I specify the 'to' email as my personal email (hosted on protomail) or an email I have on round cube.

sentora server information

$
0
0
Hiya,
Where can I find module/files that deals with 'Server information' left site on your website when you log in? There is 'Server IP', and I have to modify it, because people are thinking that this is MySQL IP :/

best regards


//okay, I found it: Sentora\panel\etc\styles\default and file master

Webmail Access

$
0
0
Good day,

I would like to setup webmail access for domains. I added a separate configuration file that will keep the webmail virtual host configurations. However, when I test the url I only get the sentora control panel main page.

When I add the /etc/apps/webmail to the url, I do get to webmail. I am not sure what's the issue with the configuration, perhaps you can assist. Here is the configuration.

<VirtualHost *:80>
 ServerAdmin webmaster[at]domain.com
 DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
 ServerName webmail.domain.com
 AddType application/x-httpd-php .php3 .php
 <Directory /etc/sentora/panel/etc/apps/webmail/>
   Options FollowSymLinks Indexes
   AllowOverride All
   Order Allow,Deny
   Allow from all
 </Directory>
<VirtualHost>

Cant Add domain

$
0
0
Hi, So i have a vps on digitalocean and i installed sentora i can access it trough ip or the panel domain i filled in (panel.nicolaivds.pw) then i followed this (http://docs.sentora.org/?node=95) to setup my nameserver. 

now i try to add a domain to the panel i gave it the nameservers and evrything but it isnt working at all 

can some one tell me what i did wrong ? 

My setup:
digitalocean dns for the server domain:
[Image: SegJsPa.png]

nvds.be his name servers are ns1.nicolaivds.pw and ns2.nicolaivds.pw
and this is the dns settings i use on the panel 
[Image: e3432a31e0936a52ce9116f84d6af2fd.png]

[Image: 5cf160cdc2a9ba8fb84dab73a1684251.png]

[Image: 28f381b511be4cf7626adf341dd71e4c.png]

http://www.intodns.com/nvds.be

http://www.intodns.com/nicolaivds.pw

Using SMTP Relay

$
0
0
So I bummed around the forum but wasn't really seeing anything I was looking for. 

I'm trying to set Sentora up to use GoDaddy's SMTP relay servers. I had this setup once before by going through Sentora Config and entering my GoDaddy email information in there. 

I have the following configured:

SMTP Auth method: ssl
SMTP Pass: *my correct password*
SMTP Port: 465
SMTP Server: smtpout.asia.secureserver.net
SMTP User: *My correct username (Actually its my GoDaddy email address)
SMTP Auth: True
Use SMTP: True

As far as I can tell, I have everything setup correctly.. not sure what I'm doing wrong. 

I'm trying to send test emails to my GMail.. 

I run the "mailq" command and it returns that GMail is replying that they are rejecting the email because it's coming from my public IP. Which is exactly what I'm trying not to do.. so I'm not totally sure what I'm doing wrong here.

Assigning clients to domains?

$
0
0
Hello everyone, firstly let me start by apologizing if this is posted in the wrong place of previously been answered. I did search for the topic but couldn't find anything.

So i'm pretty new to Sentora my current server is using ispconfig but I'm in the middle of setting up a new server with Sentora and need to sort out a few issues before I move everything.

So here goes, I have added a couple of domain names lets say domain1.com and domain2.com then i've added client1 and client 2 my question is how do I assign the domain names to the clients? I no the if client1 logs in he can create his own domain but I want to set everything up from my root / zadmin account then when he logs in its all set up.

Any help with the would be appreciated

Thanks

Craig
Viewing all 4648 articles
Browse latest View live