Apache 2 + Php 4 + Php 5 + Suphp 0.6.1

hi
do you have config your /etc/httpd/conf/httpd.conf ??

be sure you have this line in your httpd.conf

LoadModule suphp_module /usr/lib/apache/mod_suphp.so

and this one :

AddModule mod_suphp.c

and this :

<IfModule mod_php4.c>
suPHP_Engine on
AddHandler x-httpd-php .php
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
 
do you have config your /etc/httpd/conf/httpd.conf ??
>> YEP :)

be sure you have this line in your httpd.conf

LoadModule suphp_module /usr/lib/apache/mod_suphp.so
AddModule mod_suphp.c
>> YEP, those are there there

<IfModule mod_php4.c>
suPHP_Engine on <<< THIS GIVES ERRORS (misspelt one again)
AddHandler x-httpd-php .php
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>[/QUOTE]


Thanks for the suggestions but I am confused now :(
 
Ah success!!

Error 1:
Downloaded version 0.6.2 then copied and pasted all the commands for version 0.6.1 !!

Error 2:
Placed the right line in the right place!!

Grr 2 hours of wondering why!!!

Cheers for the help Duke
 
i'm currently compiling php5, but receiving this error after typing 'make'

/bin/sh /usr/local/src/php-5.1.4/libtool --silent --preserve-dup-deps --mode=com pile gcc -Iext/curl/ -I/usr/local/src/php-5.1.4/ext/curl/ -DPHP_ATOM_INC -I/usr /local/src/php-5.1.4/include -I/usr/local/src/php-5.1.4/main -I/usr/local/src/ph p-5.1.4 -I/usr/include/libxml2 -I/usr/local/include -I/usr/local/src/php-5.1.4/e xt/date/lib -I/usr/local/src/php-5.1.4/ext/mbstring/oniguruma -I/usr/local/src/p hp-5.1.4/ext/mbstring/libmbfl -I/usr/local/src/php-5.1.4/ext/mbstring/libmbfl/mb fl -I/usr/include/mysql -I/usr/local/src/php-5.1.4/TSRM -I/usr/local/src/php-5.1 .4/Zend -I/usr/include -g -O2 -c /usr/local/src/php-5.1.4/ext/curl/interface .c -o ext/curl/interface.lo
/usr/local/src/php-5.1.4/ext/curl/interface.c: In function 'zm_startup_curl':
/usr/local/src/php-5.1.4/ext/curl/interface.c:269: error: 'CURLOPT_FTPASCII' und eclared (first use in this function)
/usr/local/src/php-5.1.4/ext/curl/interface.c:269: error: (Each undeclared ident ifier is reported only once
/usr/local/src/php-5.1.4/ext/curl/interface.c:269: error: for each function it a ppears in.)
/usr/local/src/php-5.1.4/ext/curl/interface.c:309: error: 'CURLOPT_PASSWDFUNCTIO N' undeclared (first use in this function)
make: *** [ext/curl/interface.lo] Error 1


--

anybody know a solution for this? i tried searching the forum, but was unable to find a solution.

Thanks in advance.

Edwin
 
edwinschippers, it's a known bug of PHP 5.1.4, I suggest you to use PHP 5.2.1 or 5.1.7. You can also downgrade your cURL if you need to run 5.1.4. Good luck.
 
hi guys. ive followed the instructions here to a T. but whenever i have both php modules loaded in my httpd.conf....apache crashes on startup, and all i see in the logs is:

[Mon Apr 16 15:20:30 2007] [notice] Apache/1.3.37 (Unix) PHP/4.4.6 mod_ssl/2.8.28 OpenSSL/0.9.8d mod_perl/1.29 FrontPage/5.0.2.2510$
[Mon Apr 16 15:20:30 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 16 15:20:30 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Apr 16 15:20:50 2007] [notice] caught SIGTERM, shutting down
*** glibc detected *** double free or corruption (!prev): 0x09000530 ***
*** glibc detected *** double free or corruption (!prev): 0x08509530 ***
*** glibc detected *** double free or corruption (!prev): 0x082e2530 ***

I've tried this on three different servers...any ideas?
 
I wish Directadmin people could take in count these efforts in their new configurations...
 
N° 2 : If you get an Error 500 you should try to edit your file /usr/local/suphp/etc/suphp.conf and change :

it's not safe, but at least you will now if the problems comes from the UID/GID.

ok, i had a 500 error, changed suphp.conf and it worked.
You say that its not safe... but what should i do then to let it work without the uid/gid changed?

Or do i leave it?

What is uid/gid actually?

By the way: great work, looks very nice! :cool:
 
ok, now .php works with php4 and PHP5 with php5.
But isn't there a way to let php also do with php5, and that we choose a standard of all account php5, exept if we change something for that account if he want to use php4?

greetings,
tom
 
strange, i already have changed 3 times the max_upload_size to 25mb, and it always chnages back to 2mb automatically.

What php.ini file should i change for this?

PS: i installed zend optimizer above suphp. And the php.ini that he creates doesn't have any max_upload_size in it?!! Where should i change this?
 
Is suPHP supposed to give me a decrease in performance?

Using 'ab', with suPHP I did a 1000 requests on test.php5 and test.php4, and it took about ~96seconds.

When I commented out the suPHP line and used the normal PHP5 I had installed before suPHP the 'ab' test only took about 12 seconds.


This seems like a very big decrease in speed. Anyone else running into this?

[Running CentOS4 64-bit]
 
PHP scripts are supposed to take 6x as long with SuPHP?

I also notice that the CPU is maxed out on SuPHP but only about 50% usage when I run the test with just PHP5

suPHP is known to be more slowly, I cannot say with my experience how much more percent.

Don't forget that suPHP is a handler, and thus it is impossible to be as fast as PHP CLI.
 
Well the thing I mainly noticed is that when I had SuPHP enabled, when I tried to access clientexec from my hosting it took about 20 seconds to load each page then I switched back to php5 and it loaded right away. I think something must be wrong, or maybe because I'm running on a small VPS I need more CPU power to offer the suPHP?
 
Hello,
I have a problem with umask. Now all files are created with chmod 600. I want to have 644 for files.

I change in suphp.conf umask from 0077 to 0022 and the result is the same.

Do you have any ideas how to fix it?

Regards.
 
Hello,
Ok, it working when I try doing something using php.

But when I upload file and using move_upload file the files are 600 permisions. Do you have any idea how to fix it?

Thanks.

Regards,
xeryph
 
Hello,

in your script , change all MOVE_UPLOADED_FILE
by @copy

use the command @copy
not MOVE_UPLOADED_FILE

and its going to work !!!!
 
Back
Top