Current time: 11-23-2024, 09:37 PM Hello There, Guest! (LoginRegister)


Post Reply 
New website on master domain
Author Message
mendonca Offline


Posts: 3
Joined: Jul 2009
Reputation: 0
Post: #1
New website on master domain
Hi, i Have changed the default ispcp to port 8080. and is working fine.
And i have created a new folder for master website on port 80.
How can i enable php on that new_site folder ?
html works fine, php i can only get a 403 error.Sad


my folder stucture is :

var/www/ispcp/gui/
var/www/new_site/(files here)

my file sites-enable/00_master_conf looks like this.

<VirtualHost 91.198.47.210:80>

ServerAdmin master@something.net
DocumentRoot /var/www/giga
ServerName gigaalojamento.net

</VirtualHost>


<VirtualHost 91.198.47.210:8080>

ServerAdmin imaster@something.net
DocumentRoot /var/www/ispcp/gui
ServerName gigaalojamento.net:8080

Alias /errors /var/www/ispcp/gui/errordocs/

ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 404 /errors/404.html
ErrorDocument 500 /errors/500.html
ErrorDocument 503 /errors/503.html

Alias /pma /var/www/ispcp/gui/tools/pma/
Alias /webmail /var/www/ispcp/gui/tools/webmail/
Alias /ftp /var/www/ispcp/gui/tools/filemanager/

<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui>
php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>

</VirtualHost>
(This post was last modified: 07-06-2009 03:10 AM by mendonca.)
07-06-2009 02:55 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
New website on master domain - mendonca - 07-06-2009 02:55 AM
RE: New website on master domain - joximu - 07-06-2009, 04:23 PM
RE: New website on master domain - joximu - 07-07-2009, 06:48 PM
RE: New website on master domain - kilburn - 07-07-2009, 07:20 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)