Answer the question
In order to leave comments, you need to log in
Where in Ubuntu should code be placed that is accessible from outside?
The point is this.
There is a VPS - Ubuntu. It is needed for executing PHP code (we are working on integration for Bitrix24).
I myself work mainly in windows, with unix systems - for you.
Please tell me - where in my case would it be correct to "put" the code?
It must be accessible from the outside in order to pull the script with a hook.
Or, if there is a simple manual available on this issue, I would be grateful for a backlink, I myself could not find the necessary information.
Answer the question
In order to leave comments, you need to log in
I need a space where I will put my php scripts.This space is called a web server. :) It's usually either Apache or Nginx. The web server receives requests, causes php to be executed, and returns the result to the client.
But in what folder - I do not knowDepends on the web server setting. Something like /var/www/...
1. for Bitrix 24 there is a separate ready-made machine in it there are a lot of little things that you, being a specialist in Linux, will not stupidly figure out or spend a million time.
https://www.1c-bitrix.ru/download/vmbitrix.php
here and options for virtualization and a bash script option,
all you need to install is bare CentOS 7 (x86_64).
and run the script, everything will be set up.
put the code /home/bitrix/www
Believe me, this is the most correct way.
On average, it will take me about two days to set up bare ubuntu to fully comply with Bitrix24, but I have been working with servers for Bitrix for 11 years.
Draw your own conclusion.
If it were just Bitrix, then perhaps it would make sense. but all push-pull shpinx etc...
whether you should mess with it or take it completely ready.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question