Hi,

That was my mistake, It got it working properly eventually after having
php-cgi being built using the following settings, hope this experience would
be helpful.

Building PHP 5.2.11 CGI binary: /usr/local/php5/bin/php-cgi
    --enable-fastcgi
    --enable-force-cgi-redirect
    --with-apxs2 <- don't use this, otherwise the php-cgi would not have
built

Building suphp 0.7.1
#!/bin/bash
CFLAGS="-march=core2 -g -O3 -pipe -funroll-loops -fomit-frame-pointer" \
CXXFLAGS="-march=core2 -g -O3 -pipe" \
./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --with-apxs=/usr/local/apache2/sbin/apxs \
    --with-apr=/usr/local/apache2/bin/apr-1-config \
    --with-apache-user=apache \
    --with-min-uid=100 \
    --with-min-gid=100 \
    --with-setid-mode=paranoid \
    --with-logfile=/var/log/httpd/suphp_log

/etc/suphp.conf
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/home/httpd
env_path=/bin:/usr/bin
umask=0077
min_uid=100
min_gid=100

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

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false

;Send minor error messages to browser
errors_to_browser=false

[handlers]
x-httpd-php="php:/usr/local/php5/bin/php-cgi"
x-suphp-cgi="execute:!self"


Regards
Wah


On Thu, Nov 12, 2009 at 3:55 PM, Wah Jong <[email protected]> wrote:

> Dear all,
>
> After having looked into the strace code further, I have noticed one of
> thing, that is missing filename eventually. I'm looking forward to getting
> your help.
>
> script location to be executed
> /home/httpd/devel/tuncow/phpinfo.php
>
> 20498 lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> 20498 lstat("/home/httpd", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
> 20498 lstat("/home/httpd/devel", {st_mode=S_IFDIR|0711, st_size=4096, ...})
> = 0
> 20498 lstat("/home/httpd/devel/
> tuncow", {st_mode=S_IFDIR|0711, st_size=12288, ...}) = 0
> 20498 lstat("/home/httpd/devel/tuncow/-", 0x7fff92241310) = -1 ENOENT (No
> such file or directory)
>
> ################ Problem right here ############
> Why is there a dash symbol above instead of filename phpinfo.php ?
>
> 20498 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff92244270) = -1 EINVAL
> (Invalid argument)
> 20498 fstat(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> 20498 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x7ffc8a245000
> 20498 read(0, ""..., 8192)              = 0
> 20498 close(0)                          = 0
> 20498 munmap(0x7ffc8a245000, 4096)      = 0
> 20498 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) =
> 0
> 20498 munmap(0x7ffc83c9f000, 2228136)   = 0
> 20498 brk(0x134a000)                    = 0x134a000
> 20498 exit_group(0)                     = ?
>
>
>
> Thanks
> Wah Jong
>
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to