Posts Tagged ‘plesk’

22 05 2012

I cannot add a new domain because of existing DNS records

bigCat Posted in Linux, DataBase - 0 Comment

http://kb.parallels.com/en/1364\r\n\r\n\r\nAPPLIES TO:\r\nParallels Plesk Panel\r\nSymptoms\r\nAn attempt at new domain creation fails, and the following error is shown:\r\n\r\nDNS records for domain with such name already exist\r\n\r\nor\r\n\r\nThe subdomain with such name already exists\r\n\r\n\r\nCause\r\nA DNS record for the domain you are trying to add already exists in the Parallels Plesk Panel (PP) database, so a new domain with the same name cannot be added.\r\n\r\nResolution\r\nTry to find a record with a similar name in the DNS settings of the existing domains.\r\n\r\nIf it is difficult to find it manually, you may follow these steps:\r\n\r\n1. Open the "psa" database:\r\nLinux:\r\n# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa\r\n\r\nWindows:\r\nRefer to this article: 3472 [How To] How to access Parallels Plesk Panel database\r\n2. Run the following query to find the DNS record preventing new domain creation (replace YOUR-DOMAIN with the real name of the domain you are trying to create):\r\nLinux:\r\n> select z.name, r.host, r.type, r.val from dns_zone z, dns_recs r where z.id=r.dns_zone_id and r.host like '%YOUR-DOMAIN%';\r\n\r\nWindows:\r\nFor MSSQL and MySQL DB provider:\r\n> select z.name, r.host, r.type, r.val from dns_zone z, dns_recs r where z.id=r.dns_zone_id and r.host like '%YOUR-DOMAIN%';\r\n\r\nFor MS Access DB provider:\r\n> select z.name, r.host, r.type, r.val from dns_zone z, dns_recs r where z.id=r.dns_zone_id and r.host like '*YOUR-DOMAIN*';\r\n\r\nExample:\r\n\r\nYou try to create a domain called "support.mydomain.com," but the above error appears. The above shell command returns the following output:\r\nmysql> select z.name, r.host, r.type, r.val from dns_zone z, dns_recs r where z.id=r.dns_zone_id and r.host like '%support.mydomain.com%';\r\n\r\n+-------------+-----------------------+------+----------------+\r\n| name | host | type | val |\r\n+-------------+-----------------------+------+----------------+\r\n| mydomain.com| support.mydomain.com. | A | 192.168.45.200 |\r\n+-------------+-----------------------+------+----------------+\r\n\r\nYou need to open the corresponding domain (mydomain.com in our example) in the PP Web Interface and examine its DNS zone for the records that contain name of the domain you tried to add. If you want to create the "support.mydomain.com" domain as a separate domain in PP, then the existing record with a similar name has to be removed from the "mydomain.com" DNS zone.\r\n\r\n\r\nAnother possible case:\r\n\r\nA DNS record may exist in the dns_recs table, but have no PP domain associated with it. This may be because of a failed domain removal in the past. You can remove such records directly from the dns_recs table using the below query.\r\n\r\nNote: Make sure you back up the "psa" database modifying it.\r\nLinux:\r\n> DELETE FROM `dns_recs` WHERE DisplayHost LIKE '%domain.com%';\r\n\r\nWindows:\r\nFor MSSQL and MySQL DB provider:\r\n> DELETE FROM `dns_recs` WHERE DisplayHost LIKE '%domain.com%';\r\n\r\nFor MS Access DB provider:\r\n> DELETE FROM `dns_recs` WHERE DisplayHost LIKE '*domain.com*';\r\n

6 04 2011

Plesk Apache 2 Test Page showing on each website

bigCat Posted in Linux - 0 Comment

娘的手贱升级plesk。。。禁用了named导致错误\r\n所有页面指向apache默认页面 返回码403\r\n\r\nhttp://forum.parallels.com/showthread.php?t=106506\r\n\r\n\r\n\r\nERROR while trying to untar named run-root directory structure I'm on a VPS running Plesk v10.0.1, Linux 2.6.9-023stab052.4-smp.\r\n\r\nWhilst updating a component on Plesk it seemed to want to reconfigure a whole bunch of things. I get an error:\r\n\r\n===> Installing and configuring Named Server\r\n\r\nChecking for the system groups and users necessary for named (bind)...\r\nChecking for the group 'named'...\r\nGroup 'named' already exists\r\n\r\nChecking for the user 'named'...\r\nUser 'named' already exists\r\n\r\nStop running named daemon\r\nTrying to stop service named... done\r\nTrying to untar named run-root directory structure...\r\nERROR while trying to untar named run-root directory structure\r\nCheck the error reason(see log file: /tmp/pp10.9.0-bootstrapper.101127.18.56.log), fix and try again\r\n\r\n\r\n**** Product post-install failed.\r\n\r\n***** problem report *****\r\nERROR while trying to untar named run-root directory structure\r\nCheck the error reason(see log file: /tmp/pp10.9.0-bootstrapper.101127.18.56.log), fix and try again\r\n\r\nTo complete product installation one should run bootstrapper script:\r\n/usr/local/psa/bootstrapper/pp10.9.0-bootstrapper/bootstrapper.sh repair\r\n\r\n\r\n\r\nI check the log file and it just says the same message. I run the bootstrapper repair and it errors with the same message but it tells me that it's trying to find the file /usr/local/psa/tmp/run-root.tar but can't find it.\r\n\r\nBecause of this all my websites are down. I just get a page not found error on every domain.\r\n\r\nAny ideas? Thank you. \r\n\r\nRight I've fixed it!\r\n\r\nIf anyone else has this issue then here is how to fix it....\r\n\r\nBrowse to http://64.131.90.31/\r\n\r\nAnd locate your correct version of Plesk and the correct version for your OS.\r\n\r\nMine was: PSA_10.0.1 then dist-rpm-CentOS-5-x86_64\r\n\r\nGo into the base folder and download the package that starts "plesk-core".\r\n\r\nOnce downloaded copy to your server in the /tmp directory.\r\n\r\nThen run the following commands:\r\n\r\ncd /tmp\r\nrpm2cpio plesk-core*.rpm | cpio -idv --no-absolute-filenames\r\n\r\nThis will extract a whole bunch of stuff into the /tmp directory.\r\n\r\nNext browse to /tmp/usr/local/psa/tmp and you will find the run-root.tar\r\n\r\nCopy this into your /usr/local/psa/tmp folder and then run the bootstrapper repair, in my case it was the following:\r\n/usr/local/psa/tmp/bootstrapper/pp10.9.0-bootstrapper/bootstrapper.sh repair\r\n\r\nThis should complete with no errors!!! \r\n

27 02 2011

Enable passive mode for FTP in Plesk Panel

bigCat Posted in Linux - 1 Comment

http://blog.serverbuddies.com/enable-passive-mode-for-ftp-in-plesk-panel/\r\n\r\nEnable passive mode for FTP in Plesk Panel\r\n\r\nLog in as “root” to the server shell over SSH.\r\n\r\nEdit your ProFTPD configuration file.\r\n\r\n1. Issue the command vi /etc/proftpd.conf\r\n2. Add the following lines anywhere within the [Global] section:\r\nPassivePorts 49152 65534\r\n\r\n3. Save the file\r\n\r\nLog in to Parallels Plesk Panel as “admin”, go to Modules > Firewall, and click Edit Firewall Configuration.\r\n\r\nClick Add Custom Rule.\r\n\r\nSpecify the following:\r\n\r\n1. Rule name\r\n2. Direction: select Incoming.\r\n3. Action: select Allow.\r\n4. Ports: in the Add port input box, enter the value 49152-65534. Leave the TCP option selected, and click Add.\r\n5. Click OK.\r\n6. Click Activate, and then click Activate again.

Host: (miao) | Word: Press | Code: HTML5