HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   add web site (http://www.howtoforge.com/forums/showthread.php?t=21655)

serr57 24th March 2008 13:46

add web site
 
Hello

It is the first time I use ISPCONFIG, my notion in Linux are a bit limited.

After installation "perfect setup OpenSuse", all seems working well.

But now I have created a new site with mailbox included, and I would to use it with NPDS

But I don't know how to integrate it.

I have rename index.html in index.old, extract NPDS files in the same folder, imported the DB from my old server (FreeEos), and when I want to connect on the site, it only permit to download index.php (NPDS index).
The rights on web folder (for testing) are CHMOD 777 -R

Some body can help me

serr57

till 24th March 2008 16:07

Please enable the PHP checkbox in the site settings.

serr57 24th March 2008 16:33

I understand
 
1 Attachment(s)
But I think it is already done

falko 25th March 2008 15:35

What's the output of
Code:

ls -la /etc/apache2/vhosts
?

serr57 27th March 2008 08:13

Hello

I sorry but don't have access to my server before saturday
I will answer to you at this time

Eric

serr57 27th March 2008 17:37

Hi

Little changement in my planning
Here is the result of your command

drwxr-xr-x 2 root root 4096 Mar 24 13:03 .
drwxr-xr-x 12 root root 4096 Mar 24 13:03 ..
-rw-r--r-- 1 root root 3503 Mar 25 19:18 Vhosts_ispconfig.conf
-rw-r--r-- 1 root root 3686 Mar 25 19:18 Vhosts_ispconfig.conf~

falko 28th March 2008 13:59

Looks good. What's in Vhosts_ispconfig.conf? Any errors in Apache's error log?

serr57 29th March 2008 17:03

Hello

Here is the result

######################################
# Vhost: www.serr-fr.net:80
######################################
#
#
<VirtualHost 92.89.69.10:80>
ServerName www.serr-fr.net:80
ServerAdmin webmaster@serr-fr.net
DocumentRoot /srv/www/web6/web
ServerAlias serr-fr.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /srv/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /srv/www/web6/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/srv/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
</VirtualHost>

When I type www.serr-fr.net

I have only the option to download the php file

thx

Eric

serr57 30th March 2008 14:11

Hello

A strange think

I have create a web site template with Frontpage
and I can see the site (in html)

May a problem with php extension ?

Eric

falko 30th March 2008 15:45

Quote:

Originally Posted by serr57
Hello

Here is the result

######################################
# Vhost: www.serr-fr.net:80
######################################
#
#
<VirtualHost 92.89.69.10:80>
ServerName www.serr-fr.net:80
ServerAdmin webmaster@serr-fr.net
DocumentRoot /srv/www/web6/web
ServerAlias serr-fr.net
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /srv/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /srv/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /srv/www/web6/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/srv/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web6/user/$1/web/$3
</VirtualHost>

When I type www.serr-fr.net

I have only the option to download the php file

thx

Eric

Looks ok. Are there any errors in Apache's error log?


All times are GMT +2. The time now is 20:20.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.