• 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

Enabling PHP Fastcgi option produces 403 Forbidden error

i don't believe it's the goodest solution but if we can have an easy way to install suphp, we could maybe try...
 
You just install mod_suphp with yum install mod_suphp.
After this, /etc/httpd/conf.d/mod_suphp.conf (important this line LoadModule suphp_module modules/mod_suphp.so, rest can be uncommented);
Then edit /etc/suphp.conf
umask=0022

[handlers]
;Handler for php-scripts
php5-script=php:/usr/bin/php-cgi

The major things come with: httpd.include of each domain need to add, before < /VirtualHost >, the line Include /var/www/vhosts/domain.com/conf/vhost.conf
Then create vhost.conf. (We suggest to use for this Power Toys, this will suggest exacctly what you need to do and modify the file for you and enable on new domains by default)

<IfModule mod_suphp.c>
<Directory "/var/www/vhosts/domain.com/httpdocs/">
php_admin_flag engine on
suPHP_Engine On
suPHP_ConfigPath "/var/www/vhosts/domain.com/httpdocs/"
AddHandler php5-script .php
AddHandler x-httpd-php .php5
suPHP_AddHandler php5-script .php
<Files php.ini>
order allow,deny
deny from all
</Files>
php_value open_basedir "/tmp/"
php_value upload_tmp_dir "/var/www/vhosts/domain.com/httpdocs/tmp/"
</Directory>
</IfModule>

As you see, you can have your own php.ini file in httpdocs directory.
 
I don't know where to address this, but I'm seeing it in this thread..... Guess it is for the moderator if they are watching.... what is the deal with 1) all the forums being moderated all fo a sudden, and, 2) why is the html in our signatures no longer functioning?
 
Now websrvmng writes into apache config Options +ExecCGI option instead Options ExecCGI

Hi, i written some time ago a small sugestion. If it was sa easy to add + do that could you be so kind and produce one without port 80 in vhosts, please?
 
Excuse my ignorance but I have same problem but no clue what to do with websrvmng when I have got it.

Any guidance for a thicko!!

Cheers
 
please run this to reconfigure:

/usr/local/psa/admin/sbin/websrvmng -av
 
What I did was navigate to "/usr/local/psa/admin/sbin" and look for the "websrvmng" file and rename it to "websrvmng.old" then upload the new file to take it's place then go to the domain configuration screen open it, then save it. The new httpd.include file get written and your in heaven. (I've been looking for this answer for so long....now I can die happy!!!... ;)
 
Back
Top