#1  
Old 20th September 2008, 19:40
kyriakos kyriakos is offline
Member
 
Join Date: Feb 2006
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Default Poroblem after installing suphp

I m using fedora 8 and everything was fine until I install suphp.
I follow the instructions at http://www.howtoforge.com/install-su...2.20-and-above
I replace $go_info["server"]["apache2_php"] = 'both'; with $go_info["server"]["apache2_php"] = 'suphp'; in /home/admispconfig/ispconfig/lib/config.inc.php
I run httpd -t with no errors
I create a new website an I upload an index.php file
When I visit this site is asking me to download T32x9YEV file


part of my Vhosts_ispconfig.conf
Quote:
######################################
# Vhost: www.********.gr:80
######################################
#
#
<VirtualHost 192.168.1.100:80>
ServerName www.*******.gr:80
ServerAdmin webmaster@**********.gr
DocumentRoot /home/www/web1/web
ServerAlias *******.gr
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
ErrorLog /home/www/web1/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>
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web1/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 ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
</VirtualHost>

Last edited by kyriakos; 20th September 2008 at 19:47.
Reply With Quote
Sponsored Links
  #2  
Old 20th September 2008, 23:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,567
Thanks: 791
Thanked 4,979 Times in 3,900 Posts
Default

You must edit the site settings in ispconfig. e.g change the quota and click on save.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st September 2008, 01:24
kyriakos kyriakos is offline
Member
 
Join Date: Feb 2006
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I already did that for all sites. Vhosts_ispconfig.conf is rewritten but sites cant display php

Thantks
Reply With Quote
  #4  
Old 21st September 2008, 10:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,567
Thanks: 791
Thanked 4,979 Times in 3,900 Posts
Default

Then most likely mod_suphp is not loaded into your apache or the php cgi binary is not installed.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 21st September 2008, 11:48
kyriakos kyriakos is offline
Member
 
Join Date: Feb 2006
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Default

php-cli is installed and mod_suphp is loaded.
I reinstall php-cli and httpd-devel.
I also install mod_suphp 6.3 from rpm.
The same problem...
Reply With Quote
  #6  
Old 21st September 2008, 12:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,567
Thanks: 791
Thanked 4,979 Times in 3,900 Posts
Default

An the vhost in the file Vhost_ispconfig.conf contains the suphp directives now and not the ones you posted above?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 21st September 2008, 13:04
kyriakos kyriakos is offline
Member
 
Join Date: Feb 2006
Posts: 34
Thanks: 3
Thanked 0 Times in 0 Posts
Default

The vhost is the same:
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.100:80
<VirtualHost 192.168.1.100:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost **.**.***.***:80
<VirtualHost **.**.***.***:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
NameVirtualHost **.***.***.***:80
<VirtualHost **.***.***.***:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
  </IfModule>
</VirtualHost>
#
#
######################################
# Vhost: www.*******.gr:80
######################################
#
#
<VirtualHost 192.168.1.100:80>
ServerName www.*******.gr:80
ServerAdmin webmaster@*******.gr
DocumentRoot /home/www/web1/web
ServerAlias *******.gr
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
ErrorLog /home/www/web1/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>
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web1/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 ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
#
#
#
I also try to change handlers in /etc/suphp.con
Code:
[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=warn

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0022

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100

[handlers]
;Handler for php-scripts
;php5-script=php:/usr/bin/php-cgi
x-httpd-php=php:/home/admispconfig/ispconfig/tools/suphp/usr/bin/php-wrapper

;Handler for CGI-scripts
x-suphp-cgi=execute:!self
I also try with these last three lines in /etc/httpd/conf.d/mod_suphp.conf
Code:
LoadModule suphp_module modules/mod_suphp.so
suPHP_AddHandler php5-script
suPHP_Engine on
suPHP_ConfigPath /etc
Thanks
Reply With Quote
  #8  
Old 24th November 2008, 23:04
Gimly Gimly is offline
HowtoForge Supporter
 
Join Date: Mar 2007
Location: France
Posts: 144
Thanks: 26
Thanked 4 Times in 4 Posts
Default

Hi All,

I've the same problem with my websites not with all php website. I deactivate and reactivate php on site setting, but the problem persist.

php5-cgi are installed, suphp is ok in /home/admispconfig/ispconfig/lib/config.inc.php and Vhosts_ispconfig.conf.

httpd -t have correct syntax.

mod_php5 is disabled, I just want to use suphp.

If you have an idea ?

Thank you

config : Debian Etch updated with apache 2.2 and php5, ISPConfig 2.2.27, suphp 0.6.3
__________________
4 virtual machines with Debian Lenny updated on proxmox (openvz) with ISPConfig 3.0.1.6

ns1 : http(s), ftp(s), DNS Master, ISPConfig
sql : MySQL database users
mail : All mail system
ns2 : DNS Slave

ISPConfig.be Admin's
Reply With Quote
  #9  
Old 25th November 2008, 11:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,567
Thanks: 791
Thanked 4,979 Times in 3,900 Posts
 
Default

Please make sure that you installed suphp exactly as described here:

http://www.howtoforge.com/install-su...2.20-and-above
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian suPHP security patch pjdevries Installation/Configuration 8 21st May 2008 08:36
Goal: user separation (but apache can't read what suPHP wrote) berny Installation/Configuration 1 26th April 2008 18:22
suPHP Problem with user webs Lobanak Installation/Configuration 2 1st October 2007 23:29
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 22:04
error while installing..... securitywonks Installation/Configuration 1 23rd December 2005 12:07


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


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