Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Closed Thread
 
Thread Tools Display Modes
  #11  
Old 13th April 2007, 11:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,055 Posts
Default

Please try to set:

check_vhost_docroot=false
errors_to_browser=true
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Sponsored Links
  #12  
Old 13th April 2007, 11:33
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Till, i did.

The first time i tried to visit the site i saw this on the screen:

Internal Server Error
UID of script "/var/www/web120/web/index.php" is smaller than min_uid

suPHP 0.6.2
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #13  
Old 13th April 2007, 11:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,055 Posts
Default

Ok, please try to set:

; Minimum UID
min_uid=0

; Minimum GID
min_gid=0

; Minimum GID
min_gid=0

But be aware that these changes as well as disabling the docroot will reduce the security. Or make sure that all php files are owned by users with userid's > 100.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
  #14  
Old 13th April 2007, 11:46
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Ok Till, i realise that...

Now i have on screen:

Internal Server Error
Mismatch between target UID (10260) and UID (0) of file "/var/www/typo3_src-4.0.4/index.php"

suPHP 0.6.2

Thanks for your help again. This his very hard, pfff.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #15  
Old 13th April 2007, 12:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,055 Posts
Default

I think this part can not be solved without copying the typo3 src directory to every website. SuPHP is a mechanism for running PHP scripts in a secure manner. This means that it checks every file if it is owned by the correct user, in our case the administrator of the website.

As you have a central place for the typo3 sources, this would mean that the same file, e.g. /var/www/typo3_src-4.0.4/index.php is owned by different users, which is not possible.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
  #16  
Old 13th April 2007, 12:51
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default Thanks for all!

Till,

I, prepared my migration from php5mod to php5-cgi+suPHP very well, but I did not for see that this configuration was not possible. But, to be honest: This morning I came to the same conclusion.

The reason I switched to suPHP is for security reasons and to give more comfort to the clients.
Especially the clients who are using the populair Joomla as their CMS.

Now I am planning the following:

- Put the /etc/suphp.conf in its original state for security reasons.
- Put the TYPO3 core within /var/www/webX/ of each TYPO3 site, the TYPO3 site itself will be in: /var/www/webX/web/ with a symlink to the /webX folder above.

I expect that this will work.

Of course this is a little bit more work, in case I have to update the TYPO3 core, but this choice is a compromise and for me the best option at the moment.

I want to thank you for your wonderful support.
The inconvinious was maybe not so nice for some of my clients, but we are an experience richer!

I have given you my howto “How To Set Up suPHP On A Debian Etch Based ISPConfig Server” in return!
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 13th April 2007 at 20:54.
The Following User Says Thank You to Hans For This Useful Post:
falko (13th April 2007)
  #17  
Old 13th April 2007, 23:44
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Arrow Still urgent:

Apache can be configured to use either PHP5 or suPHP on a per virtual host basis.

For the TYPO3 websites on my server, i do not want suPHP.
Reason for this, is that TYPO3 will not function properly with suPHP enabled.

To get the TYPO3 sites up and running again, i need to know how i can configure Apache, so that the TYPO3 sites are using PHP and not suPHP.
Can anyone tell me how to do this?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 14th April 2007 at 12:13.
  #18  
Old 14th April 2007, 13:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,714 Times in 2,556 Posts
Default

I haven't tried this, but you could try to enable both the normal PHP module and the suPHP module in Apache, and in a suPHP vhost you'd use something like this:

Code:
  suPHP_Engine on
  suPHP_UserGroup testuser test
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php
And in a "normal" vhost, you'd use the normal PHP configuration. But it's possible that this doesn't work.

Otherwise, instead of using the normal PHP module, you could use the CGI version.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
  #19  
Old 14th April 2007, 14:37
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Falko,

Within /etc/apache2/vhosts/Vhosts_ispconfig.conf i have:

<VirtualHost 1.2.3.4:80>
ServerName www.domain.nl:80
ServerAdmin webmaster@domain.nl
DocumentRoot /var/www/web120/web
ServerAlias www.domain.org domain.nl domain.org
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Defa$
ScriptAlias /cgi-bin/ /var/www/web120/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web120/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
suPHP_Engine on
suPHP_UserGroup admin web120
AddHandler x-httpd-php .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web120/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 ^/~([^/]+)(/(.*))? /var/www/web120/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web120/user/$1/web/$3
</VirtualHost>
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 14th April 2007 at 17:51.
  #20  
Old 14th April 2007, 14:44
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

Maybe i am on the wrong track but i was thinking about enable php4 or 5 as a module as well (indeed).
And then put this in the vhost as published above (within /etc/apache2/vhosts/Vhosts_ispconfig.conf:


suPHP_Engine off
RemoveHandler .php
php_admin_flag engine on
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Closed Thread

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
suPHP file permission catalyst General 14 7th March 2010 01:16
suPHP -couldn't create child process error tipsy HOWTO-Related Questions 10 26th November 2007 00:56
Typo3 v4 with ISPConfig Hans General 1 26th September 2006 12:40
Question about installing TYPO3 Hans Installation/Configuration 7 25th September 2006 14:33
Typo3 and ISPConfig linuxuser1 General 9 17th February 2006 10:30


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


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