Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

vesta-nginx source code? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
20 posts
  • Previous
  • 1
  • 2
skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Sat Aug 08, 2020 1:17 am

grayfolk wrote: ↑
Fri Aug 07, 2020 3:10 am
First, if nginx already running - you cant run it again. For create another nginx instance you should create another nginx build.
So where is the source code for that other build, or at least the make file for that other build?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Sat Aug 08, 2020 12:57 pm

skydiver wrote: ↑
Sat Aug 08, 2020 1:17 am
grayfolk wrote: ↑
Fri Aug 07, 2020 3:10 am
First, if nginx already running - you cant run it again. For create another nginx instance you should create another nginx build.
So where is the source code for that other build, or at least the make file for that other build?
Again once: no another source code.
Makefile I think inside of VestaCP package.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Sat Aug 08, 2020 6:28 pm

You can learn: http://r.vestacp.com/cmmnt/7/x86_64/ves ... x86_64.rpm
Top

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Sun Aug 09, 2020 1:09 am

Looks like just a binary to me again...
Inside the file there is just vesta-nginx as a binary at: vesta-nginx-0.9.8-26.x86_64.cpio/./usr/local/vesta/nginx/sbin/
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Sun Aug 09, 2020 1:19 am

skydiver wrote: ↑
Sun Aug 09, 2020 1:09 am
Looks like just a binary to me again...
Inside the file there is just vesta-nginx as a binary at: vesta-nginx-0.9.8-26.x86_64.cpio/./usr/local/vesta/nginx/sbin/
https://blog.packagecloud.io/eng/2015/1 ... -packages/
Top

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Sun Aug 09, 2020 11:26 pm

Perhaps you can tell me what I am missing.

I did extract that the contents of the package. I couldn't find any makefile or and C or CPP files.
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: vesta-nginx source code?
  • Quote

Post by grayfolk » Mon Aug 10, 2020 12:26 am

skydiver wrote: ↑
Sun Aug 09, 2020 11:26 pm
Perhaps you can tell me what I am missing.

I did extract that the contents of the package. I couldn't find any makefile or and C or CPP files.
We need to comments from Vesta maintainers, i think )
Top

skydiver
Posts: 8
Joined: Wed Aug 05, 2020 10:14 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: vesta-nginx source code?
  • Quote

Post by skydiver » Mon Aug 10, 2020 8:56 pm

Yes, specially considering that both HestiaCP and MyVesta have build scripts showing how _they_ build their versions of hestia-nginx/vesta-nginx by downloading Ngninx source and then building from them:
https://github.com/hestiacp/hestiacp/bl ... compile.sh
https://github.com/myvesta/vesta/blob/m ... compile.sh

In Vesta, I just see a nginx-vesta.specs for RPMs which looks to assume that the Nginx source code has already been downloaded. I'm not finding an equivalent Debian packages.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: vesta-nginx source code?
  • Quote

Post by dpeca » Thu Aug 13, 2020 6:04 pm

skydiver wrote: ↑
Fri Aug 07, 2020 1:41 am
If vesta-nginx is compiled to load the configuration from /usr/local/vesta/nginx/conf/nginx.conf, how is it also loading the configuration from /etc/nginx/nginx.conf?
Or are there two separate copies of nginx running?
Those nginx are separated.
skydiver wrote: ↑
Fri Aug 07, 2020 1:41 am
And if there are two separate copies, why not just use one copy and run it twice: once for vesta, and the second time for hosting?
Because sometimes there is a need to restart main nginx while you are just in use of panel :)
If it would be one nginx, well, your http request would die in the middle of request.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: vesta-nginx source code?
  • Quote

Post by dpeca » Thu Aug 13, 2020 6:11 pm

skydiver wrote: ↑
Mon Aug 10, 2020 8:56 pm
Yes, specially considering that both HestiaCP and MyVesta have build scripts showing how _they_ build their versions of hestia-nginx/vesta-nginx by downloading Ngninx source and then building from them:
https://github.com/hestiacp/hestiacp/bl ... compile.sh
https://github.com/myvesta/vesta/blob/m ... compile.sh

In Vesta, I just see a nginx-vesta.specs for RPMs which looks to assume that the Nginx source code has already been downloaded. I'm not finding an equivalent Debian packages.
You are right.
Threre is no source-code of official vesta-nginx.
Serghey didn't publish it.
You can only find compiling code that we made form the scratch for our forks - and there is - https://github.com/myvesta/vesta/blob/m ... #L396-L485
It's 100% compatible with official vesta-nginx (i know it because I replaced official vesta-nginx and vesta-php with packages that I built that way for my fork).
Top


Post Reply
  • Print view

20 posts
  • Previous
  • 1
  • 2

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password