• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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