Hi,
I've bought Power Toys and followed the tutorial at http://www.grafxsoftware.com/faq.php...ed-Server/1/4/ but I can't make it working.
At seams I'm not even able to make the site following the php.ini inside httpdocs.
Here is the resulting httpd.include :
and the vhost.conf:
Does anyone have an idea of what I could have done wrong?
Thanks for help
Andrea
I've bought Power Toys and followed the tutorial at http://www.grafxsoftware.com/faq.php...ed-Server/1/4/ but I can't make it working.
At seams I'm not even able to make the site following the php.ini inside httpdocs.
Here is the resulting httpd.include :
<VirtualHost 192.168.1.2:80>
ServerName domainname:80
SuexecUserGroup userftp psacln
DocumentRoot /var/www/vhosts/domainname/httpdocs
CustomLog /var/www/vhosts/domainname/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/domainname/statistics/logs/error_log
<IfModule mod_userdir.c>
UserDir /var/www/vhosts/domainname/web_users
</IfModule>
ScriptAlias /cgi-bin/ /var/www/vhosts/domainname/cgi-bin/
Alias /plesk-stat /var/www/vhosts/domainname/statistics/
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/domainname/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/domainname/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/domainname/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/domainname/statistics/anon_ftpstat
Alias /awstats-icon /var/www/html/awstats/icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/domainname/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domainname/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/domainname/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options -Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/domainname/web_users>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
</Directory>
Alias "/error_docs" "/var/www/vhosts/domainname/error_docs"
Include /var/www/vhosts/domainname/conf/vhost.conf
</VirtualHost>
and the vhost.conf:
<IfModule mod_suphp.c>
<Directory "/var/www/vhosts/domainname/httpdocs/">
php_admin_flag engine on
suPHP_Engine On
suPHP_ConfigPath "/var/www/vhosts/domainname/httpdocs/"
AddHandler x-httpd-php .php
AddHandler php5-script .php
AddHandler x-httpd-php .php .php5 .php4 .php3 .phtml
suPHP_AddHandler x-httpd-php
suPHP_AddHandler php5-script .php
suPHP_PHPPath
php_value open_basedir "/tmp/"
php_value upload_tmp_dir "/var/www/vhosts/domainname/tmp/"
<Files php.ini>
order allow,deny
deny from all
php_value open_basedir "/tmp/"
php_value upload_tmp_dir "/var/www/vhosts/domainname/httpdocs/tmp/"
</Files>
</Directory>
</IfModule>
Does anyone have an idea of what I could have done wrong?
Thanks for help
Andrea