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
  • Spam spam spam

    Solved Configure nodebb
    6
    2 Votes
    6 Posts
    3k Views
    phenomlab
    @Panda said in Spam spam spam: ok, yes Ive seen the queue, it shows IP, but doesnt have a field for comments from registrant. It’s not designed for that. It merely serves as a gateway between posts appearing on your form or not. @Panda said in Spam spam spam: It would be better if nodebb had this plugin included in ACP list, as not only then do you know its approved and should work, but many people cant or dont want to use CLI on the server That’s a question for the NodeBB devs but in all honesty you can’t not use the CLI when installing nodebb so to be this isn’t a big deal.
  • Protecting API Access on Apache/Cloudways

    Solved Security api cloudways
    3
    1 Votes
    3 Posts
    1k Views
    Hari
    @phenomlab issue was with high traffic spikes and the website used to get crashed. API is managed by others, its built in such a way they built it in such un protected way. we would be moving to nodejs own APIs soon to address all these issues. thought of solving it with help of you and a friend of mine is helping me build a new site with APIs. thanks
  • Test of youtube embeds

    Solved Configure nodebb
    14
    11 Votes
    14 Posts
    5k Views
    Sampo2910
    @phenomlab Perfect!!! Many thanks.
  • MogoDB v6 to v7 upgrade

    Solved Configure nodebb
    5
    1 Votes
    5 Posts
    2k Views
    phenomlab
    @Panda if you used the Ubuntu PPA, I think this only goes as far as 6.x if I recall correctly.
  • 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
  • Email Server Settings

    Solved Configure mx entry
    25
    10 Votes
    25 Posts
    11k Views
    phenomlab
    @Onix said in Email Server Settings: If anyone has long-term experience with self-hosted SMTP + DNS set-ups that remain stable, would be great to hear which configurations worked best. I can help with this
  • 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/
  • installing flarum with plesk

    Solved Configure flarum
    78
    26 Votes
    78 Posts
    39k Views
    Hari
    @phenomlab thanks a lot, have a nice day