PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Segfaults with modphp5 (apache) with threads, and fastcgi question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Segfaults with modphp5 (apache) with threads, and fastcgi question

Réponse
 
LinkBack Outils de la discussion
Vieux 10/09/2007, 08h51   #1
Felipe Alcacibar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Segfaults with modphp5 (apache) with threads, and fastcgi question

Hi,

I got serous problems with modphp5 in a apache, both are compiled
with treads, apache was worker-mpm and php was interpreter level
threads, i got lots of segmentation faults in threads. someone can s me?

At the end of the list, info about configure parameters for apache and php5

I see a alternative, the best is fcgi, but i use lots of php_flag and
php_admin_flag, how some way to use it on fcgi??

I got too much problems with this, maybe if i ran a server without
threads may works it, but it is no funny.

I hope a answer, thanks...

Felipe


OS: Gentoo Linux
Arch: x86_64

Apache info:
shrike counter # apache2 -V
Server version: Apache/2.2.4 (Unix)
Server built: Sep 7 2007 08:57:32
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"



php configure:
Also have a phpinfo on http://www.chileweb.cl/phpinfo.php

'./configure' '--prefix=/usr/lib64/php5' '--host=x86_64-pc-linux-gnu'
'--mandir=/u
sr/lib64/php5/man' '--infodir=/usr/lib64/php5/info' '--sysconfdir=/etc'
'--cache-file=./config.cache' '--
with-libdir=lib64' '--enable-maintainer-zts' '--enable-cli'
'--disable-cgi' '--with-config-file-path=/etc/php/cli-php5'
'--with-config-file-scan-dir=/etc/php/cli-php5/ext-active'
'--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar'
'--without-curl' '--without-curlwrappers' '--disable-dbase'
'--enable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter'
'--enable-ftp' '--with-gettext' '--with-gmp' '--disable-hash'
'--with-kerberos=/usr' '--enable-mbstring' '--with-mcrypt'
'--without-mhash' '--without-msql' '--with-mssql' '--with-ncurses'
'--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl'
'--disable-pdo' '--with-pgsql' '--without-pspell' '--without-recode'
'--disable-shmop' '--without-snmp' '--enable-soap' '--enable-sockets'
'--without-sybase' '--without-sybase-ct' '--disable-sysvmsg'
'--disable-sysvsem' '--disable-sysvshm' '--without-tidy'
'--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter'
'--with-xmlrpc' '--with-xsl' '--disable-zip' '--with-zlib'
'--disable-debug' '--enable-dba' '--without-cdb' '--without-db4'
'--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm'
'--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir'
'--with-gd' '--with-imap' '--with-imap-ssl' '--with-interbase=/usr'
'--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli'
'--with-unixODBC=/usr' '--without-adabas' '--without-birdstep'
'--without-dbmaker' '--without-empress' '--without-esoob'
'--without-ibm-db2' '--without-iodbc' '--without-sapdb'
'--without-solid' '--with-readline' '--without-libedit' '--without-mm'
'--with-sqlite=/usr' '--enable-sqlite-utf8'
  Réponse avec citation
Vieux 10/09/2007, 08h56   #2
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

Felipe Alcacibar wrote:
> Hi,
>
> I got serous problems with modphp5 in a apache, both are compiled with
> treads, apache was worker-mpm and php was interpreter level threads, i
> got lots of segmentation faults in threads. someone can s me?


Firstly the configure line you sent us is wrong. It's for the cli
version, not the cgi version.

'--enable-cli' '--disable-cgi'


Does it work with a different version of php?

Try to cut down the code you're looking at (create a test-case)

If really desperate, re-compile php with --enable-debug and create a
backtrace (http://bugs.php.net/bugs-generating-backtrace.php)


--
Postgresql & php tutorials
http://www.designmagick.com/
  Réponse avec citation
Vieux 10/09/2007, 19h18   #3
Felipe Alcacibar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

Chris escribió:
> Firstly the configure line you sent us is wrong. It's for the cli
> version, not the cgi version.
>
> '--enable-cli' '--disable-cgi'
>


i am using a apache modphp, and also enabled the cli interface, i am not
using cgi yet, i want to use fastcgi, but i made a cuestion before.

i am want a take a look for debug-backtrace.

Thanks.

Felipe
  Réponse avec citation
Vieux 10/09/2007, 19h26   #4
Nathan Nobbe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Segfaults with modphp5 (apache) with threads, and fastcgiquestion

you might also want to hop on the #gentoo-php channel on irc.freenode.net

-nathan

On 9/10/07, Felipe Alcacibar <falcacibar@gmail.com> wrote:
>
> Chris escribió:
> > Firstly the configure line you sent us is wrong. It's for the cli
> > version, not the cgi version.
> >
> > '--enable-cli' '--disable-cgi'
> >

>
> i am using a apache modphp, and also enabled the cli interface, i am not
> using cgi yet, i want to use fastcgi, but i made a cuestion before.
>
> i am want a take a look for debug-backtrace.
>
> Thanks.
>
> Felipe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,48171 seconds with 12 queries