• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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