• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Move magento install folder

dalydesign

Basic Pleskian
I installed Magento via plesk control panel into a folder called /beta whilst we were building a new magento site from scratch

Once completed, we moved the magento files from /beta to the root folder of the domain (/home/vhosts/mydomain.com/httpdocs) .

Now when we use plesk to change the preferred domain from mydomain.com to www.mydomain.com we receive a load of errors:

Code:
Warning: Unable to configure "". The following problems were found: Non-zero exit status returned by script. Output stream: 'PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /usr/local/psa/var/apspackages/1c3a3014-04b2-4cfe-94fa-b3847d615901/cache/scripts/env-parser.php on line 230 PHP Warning: fopen(/var/www/vhosts/earplugged.co.uk/httpdocs/beta//app/etc/local.xml): failed to open stream: No such file or directory in /usr/local/psa/var/apspackages/1c3a3014-04b2-4cfe-94fa-b3847d615901/cache/scripts/file-util.php on line 15 '. Error stream: 'PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /usr/local/psa/var/apspackages/1c3a3014-04b2-4cfe-94fa-b3847d615901/cache/scripts/env-parser.php on line 230 PHP Warning: fopen(/var/www/vhosts/earplugged.co.uk/httpdocs/beta//app/etc/local.xml): failed to open stream: No such file or directory in /usr/local/psa/var/apspackages/1c3a3014-04b2-4cfe-94fa-b3847d615901/cache/scripts/file-util.php on line 15 '.

I assume it's looking for the files in /beta.

I can move them back, but how do we move them into the root without it messing up the hosting control panel.
 
Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: cannot open shared object file: No such file or directory
PHP module got corrupt after the PHP re-installation\upgrade (in our case - APC).
Try to re-install APC PHP module:

# pecl uninstall apc
# pecl install apc
 
Thanks, I ended up finding a solution that involved editing the Plesk database.

As an admin user, at a terminal (note this is for Plesk 12 Linux only):


Check the table to see the application paths (take a look in urlPrefix fields)

Code:
# plesk db show apsResourcesParameters


Then create a SQL dump of your plesk database

Code:
# plesk db dump > PSA.sql


This creates a SQL dump, essentially a backup of your psa database into the root user folder.


OPTIONAL ...I then created a second dump file as a backup because I needed to edit PSA.sql via
Code:
# plesk db dump > PSA_Orig.sql

Edit the 'PSA.sql' file looking for instances of "/beta" and "beta" in the 'apsResourcesParameters' table.


Remove the relevant parts, for instance:

(145,71,'urlPrefix','beta') becomes (145,71,'urlPrefix','')

(14,16,'/httpdocs/beta',0,14) becomes (14,16,'/httpdocs',0,14)

Once your SQL file is edited, save it and import it back into the psa database with the following command:

Code:
# plesk db < PSA.sql


That should now have the folder changed. To check that plesk has recognised the changes, visit the application settings and you will see that the beta has gone.




Finally, check the tables again to see the 'beta' has been removed...

Code:
# plesk db show apsResourcesParameters
 
Back
Top