• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Creating a db from command line

IulianT

New Pleskian
Hello

I get the following error when i try to create a db on a domain that is not the primary on the subscription:

[root@plesk mysql]# /usr/local/psa/bin/database --create goinpro -domain go-in.pro -print-id -server localhost -type mysql
Unable to create database: This object can be created only in a webspace.
 
[root@plesk safebin]# /usr/local/psa/bin/domain -i go-in.pro

General
=============================
Domain name: go-in.pro
Provider's contact name: Bogdan Tenea (gameszone)
Domain status: OK
Creation date: June 13, 2012
Expiration date: Unlimited
Domain administrator: Off
Disk space limit: Unlimited
Size: 1.07 MB
Total size of backup files in local repository:0 B
Traffic limit: Unlimited
Traffic: 0 B/Month

Hosting
=============================
Hosting type: Physical hosting
IP address: 85.204.61.125
FTP Login: halflife
FTP Password: ************
SSH access to the server shell under the subscription's system user:/bin/false
Hard disk quota: Unlimited (not supported)
Disk space used by httpdocs: 16.0 KB
Disk space used by Log files and statistical reports:996 KB
Disk space used by Configuration files: 0 B
Disk space used by Chrooted environment:0 B
Traffic: 0 B/Month
SSL support: On
Certificate:
FrontPage support: Off
FrontPage over SSL support: Off
Apache ASP support: Off
SSI support: Off
PHP support: On
CGI support: On
Perl support: On
Python support: On
FastCGI support (required for Ruby on Rails):On
Miva support: Off
ColdFusion support: Off
Custom error documents: Off
Web statistics: AWStats

Web Users
=============================
Total : 0
Apache ASP support: 0
SSI support: 0
PHP support: 0
CGI support: 0
Perl support: 0
Python support: 0
FastCGI support (required for Ruby on Rails):0
Total size: 4.00 KB

Mail Accounts
=============================
Mail service: On
Total : 1
Access to Panel: 1
Mailboxes: 1
Mail forwarders: 0
Mail groups: 0
Auto-replies: 0
Total size: 64.0 KB
Traffic: 0 B/Month

Mailing Lists
=============================
Mailing list service: Off
Total : 0
Total size: 0 B

Databases
=============================
Total : 0
Total size: 8.00 KB

Java Applications
=============================
Tomcat Java service: Off
Total : 0
Total size: 0 B

Web Applications
=============================
Total : 0


Logrotation info
==============================

Log rotation condition: 5120KB (by size)
Maximum number of log files: 0
Compress log files: true
Send processed log files to e-mail:


--WWW-Root--: /var/www/vhosts/halflife.ro/go-in.pro


Subscription Information
==============================
The domain is not subscribed to a service plan.


SUCCESS: Gathering information for 'go-in.pro' completed.
 
I think that problem in
--WWW-Root--: /var/www/vhosts/halflife.ro/go-in.pro

Is go-in.pro subdomain or what of halflife.ro?
Do you really have halflife.ro domain?
 
go-in.pro is a domain attach to the halflife.ro subscription, a domain that in turn. If i try to create the db on halflife.ro it works. It think it should also work on domains that main domains on a subscription.
 
Back
Top