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

mod_fastcgi multiple php version

$
0
0
Hi devs, 

I've been using Sentora for a few years now and it was becoming increasingly more difficult to run sites on my server because of the PHP constraint.

I was wondering whether or not it is possible to upgrade sentora to enable a dropdown in the domain listing pages to change the PHP version of a website. 

Looking at it, with a little thought and effort this seems doable. 

Ways to do it? 

The way I see it being done is as follows:
  • Check the servers php version and make not of this.
  • Backup all php configuration files for easy revert later if needs be 
  • Backup vhost file just incase something screws up
  • Remove all versions of php on the machine
  • Clean up the configs (so not to leave any garbage)
  • Install/Enable mod_fastcgi
  • Install the cgi scripts ready
  • Allow the install script to offer which versions of php install so not to overload the system with PHP versions which aren't necessary (PHP5.6 and PHP7.0 should be defaults)
  • Run a command or something similar to update the vhosts. 
  • Create and update a php_versions table in the database with the installed versions
  • Add a new column to the domains table with a php version id (Makes life easier when figuring out what version is being used when it comes to updating the php version )
  • Add a new inline form field to: domains, sub domains and parked domains (?) which enables the user to select a PHP version
  • Done? I think.
Of course this will require mod_fastcgi to be enabled and some custom CGI scripts but it could also cause major issues with peoples installs if they've forcefully upgraded PHP without the use of the Sentora upgrade scripts.

It is also a cause for concern because it will be a major switch from PHP to PHP-FPM.

I think this feature will be very useful since many sites are upgrading to PHP7.1 and others are left to rot on PHP5.6.

With that being said it will be very difficult to upgrade to newer versions without suhosin, until that is released this project is kind of a sitting duck.

State to State

zpanel daemon errors "Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'"

$
0
0
Hello,

Been using zpanel for a while but recently upgraded to php7. Everything seems to be running smoothly until I tried to add a sub domain last night. It was "pending" for longer than usual so I ran daemon.php manually and received this error.



Code:
PHP Fatal error:  Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /etc/zpanel/panel/inc/dbc.inc.php:25
Stack trace:
#0 /etc/zpanel/panel/bin/daemon.php(20): require_once()
#1 {main}
  thrown in /etc/zpanel/panel/inc/dbc.inc.php on line 25

Other posts I found with this error had multiple versions of php installed or no pdo driver enabled. But I've verified I only have php 7 installed and according to phpinfo() the mysql pdo driver is installed.


Hoping someone here has some ideas. Thanks!

Change PHP folder..

$
0
0
Running sentora on a PHP Version 5.5.9-1ubuntu4.9 on a Ubuntu 14.04 server..

I have installed php7 in a new folder, så i can have them both present.

Is there anyway i can "change" the php version for the hosted sites one at a time to test that they work with the installed php7

installing without public IP

$
0
0
It is possible to install with private IP, since I'm just doing testing with vmware fusion as a VM?
I want to evaluate sentora before using it on production.

FTP read or write only permission not work

$
0
0
When I create a FTP account and set it to read only or write only, I use Windows login the account also can read write data, something wrong or some setting I missing? Please help and Thanks!

yum error during install

$
0
0
centos 7

after I ran yum clean all, then I ran ./install but there are a few yum error repeating


Code:
-- Updating+upgrading system, it may take some time...
Loaded plugins: fastestmirror
http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/7/x86_64/repodata/a4b6ccdd02d9f6e1c6f08a4032d55c53254db58783a6ee7c4da39edd070f1daa-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

https://mirrors.ustc.edu.cn/epel/7/x86_64/repodata/a4b6ccdd02d9f6e1c6f08a4032d55c53254db58783a6ee7c4da39edd070f1daa-updateinfo.xml.bz2: [Errno 14] HTTPS Error 404 - Not Found

It finished install process but I saw some error like failing to create mysql table etc

why install script does not check that?

cron task issue

$
0
0
I have installed Sentora 1.0.3 on Ubuntu 14.04.5 LTS, also installed xbilling on sentora, everthing is working fine except the cron tasks.I have configured a cron task in cron manager to run 'accounts_jobs.php' every 1 mitute, but nothing is executing, any help, will be very appréciated.

Socks Problems SQL

$
0
0
Hello dear Sentora community. Now i am here.
I thought i can safe me this part, but ...

Long words small sense.

I can connect to sentora phpmyadmin.

If i want install, wordpress or other scripts, the login form/db connect tells me: Cant connect db

/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Access denied for user 'dbuser'@'localhost' (using password: YES)

Need your support.

I knowsentora, that i install the software, configure it fast and can start/install other software.

Where the problem is? Cant fix it.
Greetings

MySQL User não funciona após atualizar MySQL - Veja como resolver :)

$
0
0
Senhores,

Tive a ideia de atualizar meu PHP e MySQL e logo depois tive a surpresa que o módulo MySQL Users parou de funcionar.
Para resolver é bem simples.

Entre em seu servidor via SSH como root ou use SUDO, e aplique os seguintes comandos:

Code:
mysql_upgrade -u root -p

Após isso lhe pedirá a senhora de root MySQL, digite e aperta Enter.

Depois reinicie o servidor MySQL com os comandos abaixo:

Para CentOS:
Code:
service mysqld restart

Ubuntu:
Code:
restart mysql

Se usa outa distribuição, pesquise como fazer nela.
Pronto, é só isso!   Big Grin

Change Sentora Directory

$
0
0
Hi,

Right now the web directory for sentora is set to


Code:
/var/sentora/hostdata/zadmin/public_html/domainname_tld

and i would like to change to following


Code:
/sentora/webfiles/public_html/domainname_tld

and changes should be reflected to newly creating domain too

e.g secondomain.tld

so the files should be saved too


Code:
/sentora/webfiles/public_html/secondomain_tld


and kindly some share me the steps to perform this one.

how to enter sentora panel after change port

$
0
0
hi,

i was follow this guide :


i change port of panel from admin config from sentora panel. i change from port 80 to 2082.
now when 80 were succes change to web index.

but when i enter port 2082 for panel it say "Unable to connect"

what should i do or how i can enter my sentora panel?


I have the answer for my question. i not only just to have change port only on sentora panel. but i have forward for new port panel at my router.
thx

Options Register Globals, Listing Directory and such things

$
0
0
Hello community. I search to the options where i can change directory listing,
register globals and such things.
The webstandard. Confixx like, i think you know what i mean.

I know they are anywhere, but where? 
Or i'm wrong?

THx4hlp

Connection to storage server failed.

$
0
0
Hi I was tried to install TLS Mail encryption on my server and after this i tried to login to webmail but i got this error 
cannt connect to storage server 

Log  

[06-Jun-2017 15:13:34 -0400]: IMAP Error: Login failed for info@linuxteknoloji.com from 156.197.7.212. Could not connect to localhost:143: Connection refused in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube_imap.php on line 184 (POST /etc/apps/webmail/?_task=login?_task=login&_action=login)

MySQL Database user prefix

$
0
0
Hello guys,

Enybody know, from where i can create a prefix for mysql database user creation, user prefix like on mysql database names?

Example: "accountname_"dbusername

Thanks.

SMTP..POP..IMAP (Vulernablilty) Certificate Error

$
0
0
Hello dear Sentora support <3

Firstly I'd like to say thank you for this awesome platform that i will be using and supporting for my website!

I have successfully installed latest version of Sentora on my VPS (Centos7) and everything works great! I also setup my Letsencrypt certificates for CP and the domain. 

Now last thing todo is to fix this vulerntability that i found.

When someone tries to access the SMTP server or POP that i sat in Cloudflare pointing to my VPS ip (I use cloudflare as DNS manager), It exposes my VPS Info (user/IP)

check it out here for example: https://smtp.darkz0ne.net/ 

it shows certificate error,, but when you press continue and get the forbidden page. and try to view the certificate it actually shows my VPS IP! and username.

I don't want it to return anything when they visit these records! SMTP,POP .. etc

see for example google and other websites.. when you try to do the same thing:
https://smtp.google.com 
https://smtp.gmail.com/

it gives u error (took so long to respond..etc..) nothing shows up! thats exactly how i want it to be.

I'm not sure where exactly is this problem coming from, but i don't want to install SSL certificates for each SMTP..Imap..pop..etc.. it just doesnt make sense todo imo.

I'm sure there's a way to fix it but i really don't know.. it could be something in (main.cf) file in the (/etc/postfix).. or master.cf

I really don't know how.. I searched everywhere..
EDIT: I temporarly redirected the (smtp.darkz0ne.net) not the HTTPS url to my main website just a temp fix.. using the /etc/sentora/configs/apache/httpd.conf  file

I put these redirections but only the http one works:
Code:
#Default entry for any undefined domain or direct IP access
<VirtualHost *:80>
       Redirect / http://darkz0ne.net/
</VirtualHost>
#Default entry for any undefined domain or direct IP access
<VirtualHost *:443>
       Redirect / http://darkz0ne.net/
</VirtualHost>

I wonder how to fix this issue im no expert at these stuff but i know somethings. so im not compelely noob lol. 

Again thank you so much for the great support. Nd ill be posting some tutorials soon on my website when im done!

<3

- M0HX

Problem with filemanager module

$
0
0
Hi all,

My first post Smile

After installing filemanager by David L, I get this message when trying to launch it:

The requested URL /etc/apps/filemanager/ was not found on this server.

Anyone know why?

Installation went well without any problems.

Thanks!

Problem Subdomains , Add , Create , DNS

$
0
0
I have 2 problems in Sentora for add subdomains

1) I go to add subdomain and ok all perfect working, and after this i go to DNS Manager and in CNAME add the name of subdomain , if the domain called mysentora.com and the subdomain i want called test, i add test in cname and select TTL 3600 and finally target @

Many hours ago don´t load subdomain, in try also using in CNAME , TTL 86400 and target put my domain, mysentora.com , and don´t works, also i use the ip of server and nothing i try this many times changing tarhet , etc , in CNAME , and the result never works subdomains

2 ) Also i need for one subdomain appoint to other server with other ip, i try add for subdomain A record with ip of other server and don´t works and its fine, because i tests change vhost in windows for ip server and subdomain in othert server works


These 2 kinds of problems i have with sentora and i don´t know how i can fix, regards

Root folder is full but no files there

$
0
0
hi, i'm using sentora panel for a month. today i faced a problem which i cant able to connect with database so i check my storage which is full. so i deleted some files i uploaded to root folder and the problem solved.

my phpsysinfo image 

.png   Captureasd.PNG (Size: 53.25 KB / Downloads: 2)
http://imgur.com/zrVJquB
root image 

.png   Capturedssd.PNG (Size: 15.92 KB / Downloads: 1)
http://imgur.com/59UMCLB

 i'm using sentora on ubuntu server with 2tb storage and 16gb ram, i allocated root storage for about 90gb. now when i check the root storage use it shows 95%full, when i check the files from ftp there is only few mb of files there. 
what is the problem how can i free up the root space. 
thank you

Https redirects to control panel and http works fine

Viewing all 4646 articles
Browse latest View live