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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th January 2009, 15:25
usul usul is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default Problems installing suPHP 0.7.0 on centos 5.2 ISPconfig

Hello World

I apologize for my Google English!

I'm trying to install suPHP for the management of permits for Joomla and magenta.

I installed on Server:
Centos 5.2 updated with php 5.2.8, Apache 2.0 API Handler
ISPConfig 2.2.29

I tried to run your post:

http://www.howtoforge.com/install-su...2.20-and-above

http://www.howtoforge.org/suphp_fedo...with_ispconfig


with both when I run the command:
Quote:
./configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=paranoid --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
After a series of controls the operation concludes with the following error

Quote:
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
build directory, or an apr-config file.
to control the path of APR I launched:
Quote:
> locate apr-
/usr/lib/libapr-1.so.0
/usr/lib/libapr-1.so.0.2.7
/usr/share/doc/apr-1.2.7
/usr/share/doc/apr-util-1.2.7
/usr/share/doc/apr-1.2.7/CHANGES
/usr/share/doc/apr-1.2.7/LICENSE
/usr/share/doc/apr-1.2.7/NOTICE
/usr/share/doc/apr-util-1.2.7/CHANGES
/usr/share/doc/apr-util-1.2.7/LICENSE
/usr/share/doc/apr-util-1.2.7/NOTICE
after checking on http://man.root.cz/1/apr-1-config/ I think I have understood that there is no parameter, but what?


Additional questions, I will have to install APC cache, get the best magenta and beyond, given me advice on this? perhaps some links.

They told me that it would be better suexec + fast-cgi php-cgi instead of suPHP, but with APC suexec works?


Thank you in advance.


Problem-dependent configuration suphp.conf, see last post.

Last edited by usul; 9th January 2009 at 12:36.
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2009, 18:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Which ISPConfig version?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th January 2009, 11:05
usul usul is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default internal error 500

ISPCONFIG version 2.2.29 and the problem described above is passed ..
I had installed APR.!

However, I proceeded with the installation of suphp-0.7.0 without errors.

When you restart Aapache showed a bug in Vhosts_ispconfig.conf, precisely where it was stated 'php_admin_flag'.
Off functions ISPconfig PHP, and Apache is divided reactivated the PHP Apache has restarted several times without error.

Now received internal error 500, even the simple file info.php.

I checked the logs and I did not find any errors you enclosed a few lines

error.log

Quote:
[Tue Jan 06 20:55:24 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jan 06 20:55:25 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue Jan 06 20:55:43 2009] [notice] caught SIGTERM, shutting down
[Tue Jan 06 20:55:43 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jan 06 20:55:43 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Jan 06 20:55:43 2009] [notice] Digest: done
[Tue Jan 06 20:55:43 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jan 06 20:55:43 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue Jan 06 20:58:29 2009] [notice] caught SIGTERM, shutting down
[Tue Jan 06 21:00:15 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jan 06 21:00:16 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Jan 06 21:00:16 2009] [notice] Digest: done
[Tue Jan 06 21:00:16 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jan 06 21:00:16 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue Jan 06 21:00:36 2009] [notice] caught SIGTERM, shutting down
[Tue Jan 06 21:00:36 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jan 06 21:00:36 2009] [notice] Digest: generating secret for digest authentication ...
[Tue Jan 06 21:00:36 2009] [notice] Digest: done
[Tue Jan 06 21:00:36 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Jan 06 21:00:36 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
suphp.log is empty!


I understand that suExe is active, so should I turn it off, but how?

If I wanted to return to its previous state of the installation suPHP, how do I delete what I have done?


Which if I'm doing the right thing:
I need a system that controls access to joomla and magenta, and both have to install an APC cache and I have not much experience of linux.
What to choose suPHP or suexec together with what else?

There is a guide that provides the optimal configuration for ISPconfig?

Thank you very much

Diary of the actions carried out
Quote:
nano /etc/httpd/conf.d/php.conf
I commented the line
#LoadModule php5_module modules/libphp5.so
yum install php-cli httpd-devel

cd /tmp
wget http://www.suphp.org/download/suphp-0.7.0.tar.gz
tar xvfz suphp-0.7.0.tar.gz
cd suphp-0.7.0/
./configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=paranoid
--with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log
--enable-SUPHP_USE_USERGROUP=yes

make
make install

I entered into /etc/httpd/conf.d/php.conf the line
LoadModule suphp_module modules/mod_suphp.so

changed the configuration files ISPConfig
nano /home/admispconfig/ispconfig/lib/config.inc.php
$go_info["server"]["apache2_php"] = 'suphp';

Last edited by usul; 7th January 2009 at 11:13.
Reply With Quote
  #4  
Old 7th January 2009, 11:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

You lokked in the wrong logfile. Please post the error from the error log of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 7th January 2009, 11:24
usul usul is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default


file error Web site .. I had that check!

Quote:

[Tue Jan 06 19:33:10 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 19:33:10 2009] [error] [client 79.15.213.90] Premature end of script headers: info.php

[Tue Jan 06 19:34:16 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 19:34:16 2009] [error] [client 79.15.213.90] Premature end of script headers: magento-check.php

[Tue Jan 06 19:55:19 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 19:55:19 2009] [error] [client 79.15.213.90] Premature end of script headers: info.php

[Tue Jan 06 20:18:24 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 20:18:24 2009] [error] [client 79.15.213.90] Premature end of script headers: hisa.php

[Tue Jan 06 20:28:32 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 20:28:32 2009] [error] [client 79.15.213.90] Premature end of script headers: info.php

[Tue Jan 06 21:01:41 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Tue Jan 06 21:01:41 2009] [error] [client 79.15.213.90] Premature end of script headers: info.php

[Wed Jan 07 10:18:11 2009] [error] [client 79.15.213.90] SecurityException in Application.cpp:511: Unknown Interpreter: php

[Wed Jan 07 10:18:11 2009] [error] [client 79.15.213.90] Premature end of script headers: info.php

[Wed Jan 07 10:18:14 2009] [error] [client 79.15.213.90] File does not exist: /var/www/web14/web/favicon.ico

I found that I have the same error
http://www.howtoforge.com/forums/showthread.php?t=29801

Last edited by usul; 7th January 2009 at 11:41.
Reply With Quote
  #6  
Old 8th January 2009, 14:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's the output of
Code:
updatedb
locate Application.cpp
?
__________________
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:
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
Help! Lighttpdd not installing on CentOS 5.2 Colum Server Operation 4 5th January 2010 05:07
Perl problem when installing awstats on CentOS 5.2 dealspiggy Installation/Configuration 11 25th February 2009 19:39
Install ISPConfig on CentOS Server, in brief gfts Tips/Tricks/Mods 11 4th April 2006 09:29
ProFTPd on CentOS, many small problems ProTrooper Installation/Configuration 3 7th October 2005 17:26
Problems installing ISPConfig Debian Sarge hschel Server Operation 4 22nd August 2005 20:46


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


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