• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

301 Moved Permanently

keny

New Pleskian
Hi,

Just upgrade my server form debian 6 to 7 on a fresh install and reinstall plesk 11.5

Now one of my website keep giving me 301 Moved Permanently redirect on a curl even if i had CURLOPT_FOLLOWLOCATION => true

So this problem comme from plesk or php 5.4 ?

PS. curl try to load a page from my own domain

ex http://www.mydomain.com/test.php i have a redirect to tell me that the page is now there :http://www.mydomain.com/test.php !!

work with external domain

i am completly lost here
 
Ok i found the problem

i set this in the php.ini
open_basedir = none

But is it the right place to change it ?
/var/www/vhosts/system/domain.tld/etc
 
No. The file will be overwritten next time custom PHP settings are generated. You should put the configuration into either server-wide settings, custom configuration in Panel, or conf/php.ini, and then (in 1st and 3rd cases) you would need to call something like # plesk sbin httpdmng --reconfigure-all to update actual settings.
 
No. The file will be overwritten next time custom PHP settings are generated. You should put the configuration into either server-wide settings, custom configuration in Panel, or conf/php.ini, and then (in 1st and 3rd cases) you would need to call something like # plesk sbin httpdmng --reconfigure-all to update actual settings.


Thanks i was ignoring that we can manage php.ini in plesk !
 
Back
Top