plesk

Plesk 12 on CentOS 6 not working PDO ODBC/DbLib drivers

寵の児 提交于 2019-12-13 07:19:53
问题 I have a VPS with PLESK 12 running on CentOS 6 and I have problem with remote connection to Microsoft SQL Server database with PDO ODBC and PDO DbLib from PHP. I am sure, that connection string is working fine, because my website is working on another Unix VPS with PDO DbLib. I get this error when I am trying to connect with PDO ODBC: PDOException: SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified And this when I am

plesk api shell access

為{幸葍}努か 提交于 2019-12-13 06:07:42
问题 i try create script to add new domain in plesk whit api, im write this script : <packet version='1.4.2'> <domain> <add> <gen_setup> <name>domain.com</name> <client_id>1</client_id> <ip_address>127.0.0.1</ip_address> <status>0</status> </gen_setup> <hosting> <vrt_hst> <ftp_login>username</ftp_login> <ftp_password>password</ftp_password> <php>true</php> <ssi>true</ssi> <cgi>true</cgi> <php_safe_mode>false</php_safe_mode> <ip_address>127.0.0.1</ip_address> </vrt_hst> </hosting> </add> </domain>

Cannot Connect to Plesk v12 SQL Server Remotely from SQL Server Management Studio

孤街浪徒 提交于 2019-12-13 04:38:34
问题 I am difficult to understand why the mssql.anggalisdiyanto.net domain is can be accessed and i can login successfully from ASP.NET Enterprise Manager via browser, but not from SQL Server Management Studio. It is error like in below figure : Help me, thanks in advance. 回答1: What is MSSQL instance name you are using? If you don't specify instance name and connect like "server.com" than default instance name is used "MSSQLSERVER", but instance name of your MSSQL server may be "MSSQLSERVER2012"

Plesk XML API Error 2204: Login name is empty

微笑、不失礼 提交于 2019-12-13 04:32:44
问题 I can't find anything on Google about this, I am using the Plesk XML API with PHP but when I use this code: //Add to Plesk require("../../plesk-php-api.php"); $client = new PleskApiClient('broomfieldhosting.co.uk'); $client->setCredentials('admin', 'adminpassword'); //Webspace $pleskDomainRequest = <<<EOF <packet> <webspace> <add> <gen_setup> <name>flamingfireball64.com</name> <htype>vrt_hst</htype> <ip_address>104.238.170.144</ip_address> </gen_setup> <hosting> <vrt_hst> <ip_address>104.238

Plesk/nginx uploading issue

大城市里の小女人 提交于 2019-12-13 03:35:47
问题 I have scoured the web and turned up no results so far. So my last effort is to ask here, hopefully this may shed some light on this. I cannot get the max upload size above 2mb. My guess is the issue is with plesk, it seems to have no options to set up the nginx configs even though it generates them automatically. Making it pointless for me to edit them manually in SSH. PHP has these settings for every virtual host: memory_limit 64M; post_max_size 32M; upload_max_filesize 16M; nginx in the

how to solve Keyword not supported: 'data source'

此生再无相见时 提交于 2019-12-13 02:52:16
问题 I uploaded my website( that is programmed with asp.net mvc and entity framework 5 ) yesterday and wrote this connection string in the web.config file of the host root ( control panel is plesk onyx) I tried changing it to SqlCLient ,Removing some tags, and so many other things but no change it return error: keyword not supported: 'data source' when I remove data source it return keyword not supported 'initial catalog' and so on thanks for your attention <add name="ShopDBEntities"

open_basedir restriction in effect in Plesk for Windows

只愿长相守 提交于 2019-12-13 02:16:27
问题 I'm developing a CMS in PHP as a learning exercise but have hit a brickwall called "open_basedir restriction" - I am trying to upload a small JPG file. I've tried to give as much info as concisely as possible but let me know if I forgot anything! I can see it hit the c:/windows/temp/ folder every time so its only falling over when trying to perform the move_uploaded_file operation. After much research I know what this is and in theory how to fix it having read a number of pages online such as

Autoinstallation Wordpress by Plesk API in subdomain

烂漫一生 提交于 2019-12-13 02:11:15
问题 My client wants me to create a "simple" script (in PHP). He wants to fill the form with domain names, subdomain names, and blog titles. The script should create subdomains for each domain and automatically install WordPress there. Creating subdomains is easy using the Plesk API, but the problem occurs when I want to install WordPress. Although there is an autoinstaller, I can't find it in the API. When creating a subdomain, I fill in the FTP login and password for it, and I can then connect

Linux command line : edit hacked index files

蓝咒 提交于 2019-12-12 21:24:14
问题 I'm unfortunately once more dealing with a hacked site on a Linux Plesk server. While the issue is fixed with FTP access changed (it got down to the famous Filezilla FTP codes hack on a PC) I'd appreciate to know how to edit files as it may take over an hour to restore the site to the most recent backup we have, and I'd be glad to have it back online faster. The hack is rather simple: a javascript code was inserted in many index* (only index.php it seems) files in the site. I'm looking for a

GitLab site is showing the plesk default page. What am i doing wrong?

六月ゝ 毕业季﹏ 提交于 2019-12-12 18:07:55
问题 so here is my setup: I have Ubuntu 14.04 and installed Gitlab omnibus. Then i basically just followed this guide: Setup for non-bundled Webserver (apache in my case) I successfully enabled the apache site with this config files: gitlab.rb (just those lines which are not commented): external_url "http://git.codefighters.org" nginx['enable'] = false web_server['external_users'] = ['www-data'] gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = "127.0.0.1:8181" git