Skip to content

migrating from cloudways to plesk

Solved Configure
25 2 10.2k 1
  • wrote on last edited by
    #1

    hi, i am migrating from cloudways to plesk. all of my installations are WordPress

    there is some security feature in WordPress which is making WordPress not work in the Plesk, how can we fix this?

    this is what i see in the plesk log, i have searched and could not figured out how to fix it.

    for now, i have done a fresh installation and copied wp-content folders but this is not possible for all installations so i want to know the perfect solution.

    AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0PHP message: PHP Fatal error: Unknown: Failed opening required '/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in Unknown on line 0'
    
  • wrote on last edited by Hari
    #24

    That is all, i have successfully migrated to Do-Plesk from cloudways.

    should i enable MIME?

    we can mark this discussion as solved, thanks again for all the patience and support.

    alt text

  • hi, i am migrating from cloudways to plesk. all of my installations are WordPress

    there is some security feature in WordPress which is making WordPress not work in the Plesk, how can we fix this?

    this is what i see in the plesk log, i have searched and could not figured out how to fix it.

    for now, i have done a fresh installation and copied wp-content folders but this is not possible for all installations so i want to know the perfect solution.

    AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0PHP message: PHP Fatal error: Unknown: Failed opening required '/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in Unknown on line 0'
    
    wrote on last edited by
    #2

    @Hari said in migrating from cloudways to plesk:

    Unknown: open_basedir restriction in effect

    That’s not a WordPress restriction, but PHP. Can you provide the logs from either NGINX or Apache ?

  • hi, i am migrating from cloudways to plesk. all of my installations are WordPress

    there is some security feature in WordPress which is making WordPress not work in the Plesk, how can we fix this?

    this is what i see in the plesk log, i have searched and could not figured out how to fix it.

    for now, i have done a fresh installation and copied wp-content folders but this is not possible for all installations so i want to know the perfect solution.

    AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in Unknown on line 0PHP message: PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0PHP message: PHP Fatal error: Unknown: Failed opening required '/home/00.cloudwaysapps.com/00/public_html/malcare-waf.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in Unknown on line 0'
    
    wrote on last edited by
    #3

    @Hari just got the files via Discord - thanks. Can you disable mod security in Plesk and let me know if that makes any difference ?

  • @Hari just got the files via Discord - thanks. Can you disable mod security in Plesk and let me know if that makes any difference ?

    wrote on last edited by Hari
    #4

    @phenomlab after disabling mod security i am getting

    502 Bad Gateway error nginx*

    wordpress admin panel is accessible

  • @phenomlab after disabling mod security i am getting

    502 Bad Gateway error nginx*

    wordpress admin panel is accessible

    wrote on last edited by
    #5

    @Hari update // website is working!

  • @Hari update // website is working!

    wrote on last edited by
    #6

    @Hari i will manually migrate it instead of using migration plugins.

    Plesk is Plesk 😎

  • @Hari i will manually migrate it instead of using migration plugins.

    Plesk is Plesk 😎

    wrote on last edited by
    #7

    @Hari yep. All good then ?

  • @Hari yep. All good then ?

    wrote on last edited by
    #8

    @phenomlab i think i managed to migrate the site, but when i visit a few random pages like domain.com/dasfdsfds it is supposed to show WordPress 404 instead Plesk is showing their own 500 page… not sure about this. for now, i am making changes to a few other manual scripts like updating db passwords and paths tomorrow i will keep you posted.

    thanks for the quick response 🙂

  • @phenomlab i think i managed to migrate the site, but when i visit a few random pages like domain.com/dasfdsfds it is supposed to show WordPress 404 instead Plesk is showing their own 500 page… not sure about this. for now, i am making changes to a few other manual scripts like updating db passwords and paths tomorrow i will keep you posted.

    thanks for the quick response 🙂

    wrote on last edited by
    #9

    @Hari you probably need to delete the custom 500, 404, and index HTML pages supplied by Plesk.

  • @Hari you probably need to delete the custom 500, 404, and index HTML pages supplied by Plesk.

    wrote on last edited by
    #10

    @phenomlab how can whitelist list such errors? these are apache access issues it think when i disable mod security it is working as expected

  • @phenomlab how can whitelist list such errors? these are apache access issues it think when i disable mod security it is working as expected

    wrote on last edited by
    #11

    @Hari Solved!

  • @phenomlab how can whitelist list such errors? these are apache access issues it think when i disable mod security it is working as expected

    wrote on last edited by phenomlab
    #12

    @Hari you’d have to record the ID of the specific rule that triggers the error in WordPress, then delete that specific rule.

    Mod Security is great, but will easily become the worst enemy you can imagine in a very short space of time.

  • @Hari Solved!

    wrote on last edited by
    #13

    @Hari actually earlier error was DB password issue, i forgot to update the new DB password in a custom theme file.

    and in plesk we should always use localhost:port number if we just use localhost sometimes it wont connect (i am assuming this)

  • @Hari you’d have to record the ID of the specific rule that triggers the error in WordPress, then delete that specific rule.

    Mod Security is great, but will easily become the worst enemy you can imagine in a very short space of time.

    wrote on last edited by Hari
    #14

    @phenomlab is completely disabling ModSecurity a good idea?

    and what happens if i allow MEME? i am getting below error

    c4dcb864-e8a0-461b-847b-a1fe693aa1fd-image.png

    https://support.plesk.com/hc/en-us/articles/115003017653-How-to-configure-MIME-types-for-a-domain-in-Plesk

  • @Hari actually earlier error was DB password issue, i forgot to update the new DB password in a custom theme file.

    and in plesk we should always use localhost:port number if we just use localhost sometimes it wont connect (i am assuming this)

    wrote on last edited by
    #15

    @Hari depends on the format of the config file, but in most cases, you only need localhost:port if you are using a custom port.

  • @phenomlab is completely disabling ModSecurity a good idea?

    and what happens if i allow MEME? i am getting below error

    c4dcb864-e8a0-461b-847b-a1fe693aa1fd-image.png

    https://support.plesk.com/hc/en-us/articles/115003017653-How-to-configure-MIME-types-for-a-domain-in-Plesk

    wrote on last edited by phenomlab
    #16

    @Hari said in migrating from cloudways to plesk:

    is completely disabling ModSecurity a good idea?

    No, I wouldn’t recommend it. A better solution would be to use a mod security template that is designed for WordPress rather than the generic one.

  • @Hari depends on the format of the config file, but in most cases, you only need localhost:port if you are using a custom port.

    wrote on last edited by Hari
    #17

    @phenomlab i am thinking to enable MEME what do you say? is it necessary? is it a CSS file library?

    https://sudonix.com/assets/uploads/files/1657655833943-c4dcb864-e8a0-461b-847b-a1fe693aa1fd-image.png

  • @phenomlab i am thinking to enable MEME what do you say? is it necessary? is it a CSS file library?

    https://sudonix.com/assets/uploads/files/1657655833943-c4dcb864-e8a0-461b-847b-a1fe693aa1fd-image.png

    wrote on last edited by
    #18

    @Hari MEME ? Do you mean MIME ?

  • @Hari MEME ? Do you mean MIME ?

    wrote on last edited by
    #19

    @phenomlab yes yes 😄

  • @phenomlab yes yes 😄

    wrote on last edited by
    #20

    @Hari you’ll also get that error if you are attempting to include a CSS file that is improperly formatted. What is it you’re trying to include ?


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Nodebb to Xenforo

    Solved Configure xenforo nodebb
    3
    0 Votes
    3 Posts
    1k Views
    phenomlab
    @cagatay as @downpw stated, there isn’t a native tool that will do this for you. You’d need to either develop your own or ask the nodebb team to assist which will be a paid exercise.
  • Nodebb and emails

    Solved Configure nodebb
    27
    5 Votes
    27 Posts
    10k Views
    phenomlab
    @Panda it will use SMTP. In all cases, I never use any plugin to send email. I’ll always send it raw.
  • Opening links in nodebb widget

    Solved Configure nodebb
    6
    4 Votes
    6 Posts
    3k Views
    phenomlab
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • Test of youtube embeds

    Solved Configure nodebb
    14
    11 Votes
    14 Posts
    5k Views
    Sampo2910
    @phenomlab Perfect!!! Many thanks.
  • Pulling YouTube videos using RSS

    Configure rss youtube rsshub
    5
    7
    6 Votes
    5 Posts
    2k Views
    JAC
    The perfect solution and walkthrough Mark, appreciated as always!
  • How to deploy WordPress.org Developer theme

    Solved Configure wordpress theme github
    4
    1 Votes
    4 Posts
    3k Views
    phenomlab
    @Hari the real issue here is that I don’t think it can be used as a theme for WordPress because of the dependencies it clearly has, including its own Web server. My view here is that this is designed to be a complete development environment outside of the WordPress core.
  • mongodb backup problem

    Moved Configure mongodb
    3
    1
    1 Votes
    3 Posts
    1k Views
    phenomlab
    You might want to also review this post https://sudonix.org/topic/389/mongodb-backup-script
  • Do i need more RAM? Plesk

    Solved Performance plesk digitalocean
    3
    1
    1 Votes
    3 Posts
    2k Views
    phenomlab
    @Hari welcome to Grafana, the most confusing stats package there is ! According to the guidelines, you certainly have enough RAM at 4gb https://www.plesk.com/blog/various/plesk-requirements-hardware-software/