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

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to fix this on my dedicate server

Geir

Basic Pleskian
Hello all,

I will install a script on my site but it not working before i have this on my server:

Apache Mod_Rewrite Enabled (How enable this?)

GD Image library (How fix this?)

cURL Enabled (How enabled this?)

I run plesk with Centos 6.6 on my dedicate server!

 
Hi Geir,

1. To enable "mod_rewrite" at your webserver apache, you could use the command for CentOS:

a2enmod rewrite

Afterwards, please restart your webserver with the command:

service httpd restart

Be aware that you need a rewrite rule, which you might place in a .htaccess - file in your documentroot like for example:
HTML:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>
2. To use the Image library GD, you need to install it ( and some extensions ):
yum install gd gd-devel php-gd

Afterwards, please make sure to restart your webserver with the command:

service httpd restart

3. To enable cURL, it has to be installed as well. First, please have a look to the files with cURL inside the package name:
yum search curl
Afterwards, install the needed packages with yum ( for example ):
yum install php-curl
Please make sure, that your depending php.ini 's don't prevent the usage with a definition like:
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,show_source

If this is the case, please edit this line in your depending php.ini 's and remove "curl_exec,curl_multi_exec," . I recommend only editing the domain - specific php.ini, in order to deny the cURL usage by default, with the suggested procedure, because the usage of cURL in PHP - scripts can lead to security leaks.


To locate your depending php.ini's you could use the command:

find / -name 'php.ini' 2> /dev/null


If you had to install cURL or depending packages or edited php.ini's, please make sure to restart your webserver again with:

service httpd restart
 
Last edited by a moderator:
Back
Top