Question: |
Took basic script Pythonзагрузил in the root of the domain weblaboratory.info in the folder cgi-binдал failiem right 755здесь works http://weblaboratory.info/cgi-bin/test.pyа this is stupid, the script code displays on the screen http://weblaboratory.info/test.pyпомнится you told me that you have on the server, to use Python outside of cgi-bin!! Am I wrong or just something to fix it! |
Answer: |
Hello. it`s the same script? |
Question: |
Yes. test.py |
Answer: |
the request is sent to the developers panel |
Answer: |
prednaznachili directory is not released |
Question: |
That is? How to understand this? What to do now? |
Answer: |
upload cgi scripts into the cgi-bin directory |
Question: |
But if I want a project to implement Python? In this domain? Me that other hosting to look for? |
Answer: |
this panel is an opportunity unknown. the developers have not yet responded. how to change the scriptalias is not working. |
Question: |
But if human language? Should wait until they respond? Or maybe I need to recreate the domain? Or something else? |
Answer: |
domain to not touch. for the test we created domain http://cgi.weblaboratory.info/ with him and work. we do not yet have the answer to your question, expect. the problem is solved |
Answer: |
the problem is solved together with the developers of the panel. please wait |
Question: |
Well, what do you hear? |
Answer: |
the expected response from the developer. |
Answer: |
if that doesn`t work, you can try to change the panel. we can offer you perestroka servers with an isp panel. |
Question: |
Well if it helps, then reinstall. |
Answer: |
please Wait, the request is sent to the administrator. |
Answer: |
you have the right data on сервере7 save them , because preperestroika server, utero |
Question: |
Saved |
Answer: |
ok. now perestanovok |
Question: |
I`ve finished. And access data, don`t forget! |
Answer: |
data access panel https://136.243.158.10:1500 the root password is not changed. we will create a user panel with warm LoginName password, can log in through it. the panel has finished ustanovku. we will notify when Ustinovka to be completed |
Answer: |
ready server rabotaite from the user areostar you can log in to panel as admin sparam your user |
Question: |
Sorry, But now when I created the domain it turned out that there is not only Python, but also PHP is not supported!!! When you create the domain via the panel, there it was listed - PHP not suported!!Or I again something not done!? |
Answer: |
you simply have not enabled php when creating the domain. please be careful. select the php support |
Question: |
there is only support from cgi-bin was kagetsu but I will check it out. and what about support for Python? it where to include? |
Answer: |
enabled by default. in the control panel you can even control the python modules? there`s even a separate menu if you log in as admin version you have Python 2.7.3 |
Question: |
proverila PHP appeared! Python and where?? |
Answer: |
on your server this version Python 2.7.3 |
Question: |
Again, Python 2.7.3 I three asked!As ka, Python scripts are just text displays in the browser! |
Answer: |
this is the version which ustanavlivaetsya by default. where you can see the problem? |
Question: |
www.weblaboratory.info/test.py |
Question: |
Python 3 and I return. |
Answer: |
the request sent to the administrator. |
Question: |
What are they saying!? |
Answer: |
while there is no way to upgrade python on this system |
Question: |
My Python does not work |
Answer: |
the problem is checked |
Answer: |
unfortunately, cgi scripts will only work in cgi-bin, regardless of the panel |
Question: |
Understood. Will have to look for another hosting |
Answer: |
this is independent from the host. what`s the difference what hosting if there is no support program |
Question: |
But there are also hostels which are the Python websites and applications. |
Question: |
Hosters |
Answer: |
You can do it, too. but cgi scripts must rabatti in the cgi-bin directory |
Question: |
I need full support. |
Answer: |
you have one website or several? you can try to implement on the server without the panel. if you have a website then the panel will not be required. you will have only the webserver with the environment |
Question: |
Well, I stayed in this host only one domain so this will try to do as propose!!Only Python 3.5(the two I already have)only a couple Momentive if you need a sub domain(not critical, there is no way)And even specify how to install additional modules(razobratsya can in different sources in different writing)and I`ll do soobshite the path to the compiler - which in the beginning of the script to specify it!Waiting for the results! |
Answer: |
please wait. |
Answer: |
this trebuetsa.preparata server, all data will udaleny. all the settings of the subdomains and domains you can do by editing the web server configuration |
Question: |
Well. Waiting for messages. |
Answer: |
we can pereustanovit server? |
Question: |
Of course. All materials that should have been copied. Soobshite as. Will be ready |
Answer: |
once again, please describe what is required. fully all the requirements |
Question: |
Well, as you said to create a place for the domain that is now written to the host. To create the environment for Python version 3.5 without the user panel. So you can freely programmable in python. |
Answer: |
the request sent to the administrator. |
Answer: |
Python 3.2.3? |
Question: |
And more recent? Just got here to understand, this is very important. |
Answer: |
unfortunately in difficulty . Nina one distribution no interchanges gnusnyh You the component. |
Question: |
Let`s until this version. And update pliz how in this version to add new modules? |
Answer: |
no, this version of the identity has not approached the problem with a bunch of mysql now try on centos debian and ubuntu did not come |
Question: |
Well as the results? |
Answer: |
the administrator dealing with Your issue |
Answer: |
We ustanovili all the server 138.201.183.112 root kgy78g75tr # php-v PHP 5.5.9-1ubuntu4.20 (cli) (built: Oct 3 2016 13:00:37) # mysql --version mysql Ver 14.14 Distrib 5.5.52 # python --version Python 3.4.3 |
Question: |
But the way in which Python? I in the beginning of the script indicate? |
Answer: |
the path standartny /usr/bin/python but more tedious to configure apache |
Question: |
What we need to configure? |
Answer: |
the folder for the site, virtualhost |
Question: |
To do it to me or you can? |
Answer: |
try it yourself because you will have to do it for new domains. if something will spoil pereustanovit server. algoritmer known, You can even lead if interested the problem was in the distribution. managed to pick up ubuntu 14 for normalisateurs. on another distribution was the problem with running the database. there is no such problem. |
Question: |
Describe how please!! I did but long time ago |
Answer: |
in the configuration file of the web server that are in the folder /etc/apache2/sites-enabled/ the point of design for virtual hosts like
<Directory /var/www/test> Options +ExecCGI DirectoryIndex index.py</Directory>AddHandler cgi-script .py
http://goodigy.ru/virtualnye_hosty_lamp_ubuntu
|
Question: |
Code to indicate the same or what I should be?Changes how many time demand a can or already prepared? |
Answer: |
you create a folder on the server, then in apache configuration file followed by the virtual host with your domain name properties must be Options +ExecCGI and AddHandler cgi-script .py |
Question: |
Forgot to ask the details for ftp access? |
Answer: |
there is not an ftp server. but you can ispolzovat sftp connection. file zilla supports it use the username root and port 22 |
Question: |
A glass host from a purchased version or the per-user settings to be done? |
Question: |
From under Ruta |
Answer: |
\"And a glass host\" ? |
Question: |
Lokal host. Phone.write. and then autocompletion Fucking |
Answer: |
not quite understand You, describe the amps. more detail. |
Question: |
Question: Can I create a local host as the root user or better sozdaniemnovogo user with sudo by Provo |
Answer: |
Safer to work on behalf of the user. But in addition to. You are on the server anyway no one |
Question: |
Performed manual but the link http://weblaboratory.info/test.py it gives an error. Could you check what`s wrong! where there is to add .html .php ?? |
Answer: |
your script is designed to output to the browser? |
Question: |
I just vyvoje page Hello World#!/usr/bin/pythonprint(\"Content-type: text/html\")print()print(\"Hello World!!!
\")I Can something in the settings mess!? |
Answer: |
you have this code where it still works? |
Question: |
Yeah. On the other wants to run. Maybe the way to interactive not correct? |
Question: |
Host |
Answer: |
the right path /usr/bin/python the request sent to the administrator. |
Answer: |
utochnyat and which folder you set up domain weblaboratory.info ? |
Question: |
Well, the file weblaboratory.conf made the text Options +ExecCGI DirectoryIndex index.pyAddHandler cgi-script .pyhttp://www.weblaboratory.infoВы can and see for yourself. Maybe there a mistake? |
Question: |
Options +ExecCGI DirectoryIndex index.pyAddHandler cgi-script .py |
Answer: |
while I do not quite understand from which folder opens. |
Question: |
Perhaps it is easier to demolish and re-glass the host to configure? |
Answer: |
what is localhost? |
Question: |
Well privezat domain to the folder |
Answer: |
you need to enter data into the configuration web server and restart it. |
Question: |
Can you do it? Please |
Answer: |
the Question referred to the administrator, wait for amp. |
Answer: |
please check the DNS settings of the domain. you have specified the wrong ip address . instead 138.201.183.112 specified 138.201.183.113 please help! |
Question: |
And where to do it? in the admin panel there I just nsy can change! and I now remember this sort of domain I transferred vremena another host!Maybe I`m new domains you register, and put?? |
Answer: |
the Toom where the host provided DNS to change ip |
Question: |
BUT on this host I have to fix this! now will order 2 new domain then they will put |
Answer: |
you need to forward the domain to the ip 138.201.183.112 |
Question: |
well. correct |
Answer: |
ok |
Question: |
Hello. What`s the news? |
Answer: |
Hello. unfortunately has not yet happened. we are working on the problem. |