apisnetworks / apiscp

ApisCP Issues Tracker
https://apiscp.com
15 stars 1 forks source link

Addon Domain Path Check for cPanel Imports Failure #21

Closed MACscr closed 5 years ago

MACscr commented 5 years ago

The import script seems to only look in /home/username/addon-domain.com, but for many years and still standard on existing cpanel servers, addon domains are located in the public_html directory, so addon domains for some reason are being created as blank directories as /var/www/addon-domain.primarydomain.com:

WARNING : move: `/home/automati/centerstageclassicrumble.net': No such file or directory
WARNING : move: `/home/automati/lodgestat.com': No such file or directory
INFO    : Scanning automationtec.com for Web Apps
INFO    : Searching on `site26' (automationtec.com)
INFO    : Searching docroot `/var/www/html' (automationtec.com) for webapps
INFO    : Detected `wordpress' under `/var/www/html'
INFO    : Searching docroot `/var/www/centerstageclassicrumble.automationtec.com' (centerstageclassicrumble.automationtec.com) for webapps
INFO    : Searching docroot `/var/www/lodgestat.automationtec.com' (lodgestat.automationtec.com) for webapps
(INFO)  : Searching on `site26' (automationtec.com)
(INFO)  : Searching docroot `/var/www/html' (automationtec.com) for webapps
(INFO)  : Detected `wordpress' under `/var/www/html'
(INFO)  : Searching docroot `/var/www/centerstageclassicrumble.automationtec.com' (centerstageclassicrumble.automationtec.com) for webapps
(INFO)  : Searching docroot `/var/www/lodgestat.automationtec.com' (lodgestat.automationtec.com) for webapps

Yet /var/www/lodgestat.automationtec.com is blank and files are actually still in /var/www/html/lodgestat.com, which doesnt get found and linked to the addon domain. Hope this make sense.

msaladna commented 5 years ago

Resolved in commit #59c62ec.