Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Info Coronavirus/Vaccinare vs Fake News

Schema RR Gloria 1-2-3 cu rezolut...

Windows 10 sau alta aplicatie fol...

Motocoasa pe acumulatori erbauer
 Aplicare la concurs pe un post AN...

Infecție care tot reapare

telefon copil - 1200 -1300 lei

Whatsapp web pe pc
 Sfat achizitionare un laptop din ...

Ce este si la ce foloseste?

Buton pornire Esprimo E5645 d2984

Recomandare HDD
 Nesebar

Problema ecran ASUS ROG Strix G15...

MONITOR 27' Viewsonic 27"...

Preschimbare permis auto
 

FreeBSD 6.2 - Apache22 si PHP 5.1.6

- - - - -
  • Please log in to reply
10 replies to this topic

#1
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006
Bun . Uitati problema . Am un BSD 6.2 fresh install , am instalat cum trebuia tot , din ports/manual , am mai depistat cateva buguri , am trimis report la aia sa-l refaca , e ok .

Am instalat Apache22 am bagat dupa aia PHP5 si PHP5-Extensions . Totul a mers ca si la carte , dar cand sa repornesc apache cade jos fara sa mai revina . Ma uit prin loguri , caut de nebun , si nu apare nika , incerc sa pornesc cu deburg sa vad ce si cum nika . Ma gandesc ca e de la php5 extensions si incep sa le tai pe rand jos , pana ala urma repornesc apache cu php5 . Ok , doar ca imi trebuie phpMyAdmin care are nevoie de extensia de mysql si care nu mere ok . Ma duc pe net sa caut ce si cum , nu gasesc nika si iacata-ma acilea .

Acuma ce apare in logs .

Apache-Error-Log

Quote

[Wed Feb 14 01:20:31 2007][notice] Apache/2.2.3 (FreeBSD) mod_ssl/2.2.3 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.1.6 with Suhosin-Patch configured -- resuming normal operations
[Wed Feb 14 01:21:49 2007] [notice] child pid 25293 exit signal Segmentation fault (11)
[Wed Feb 14 01:21:54 2007] [notice] child pid 25294 exit signal Segmentation fault (11)

aia cu segmentation fault apare cand incerc sa accesez pagina de la phpadmin . Si asta dupa ce am rezolvat problema cu mysql.so .


/var/log/messages

Quote

Feb 12 06:30:30 mossad kernel: pid 18877 (httpd), uid 80: exited on signal 11
Feb 12 06:34:20 mossad kernel: pid 18878 (httpd), uid 80: exited on signal 11
Feb 13 18:48:59 mossad kernel: pid 18882 (httpd), uid 80: exited on signal 11
Feb 13 18:49:08 mossad kernel: pid 18899 (httpd), uid 80: exited on signal 11
Feb 13 20:26:44 mossad kernel: pid 18880 (httpd), uid 80: exited on signal 11
Feb 14 00:51:33 mossad kernel: pid 93305 (httpd), uid 0: exited on signal 11 (core dumped)
Feb 14 01:11:24 mossad kernel: pid 25247 (httpd), uid 0: exited on signal 11 (core dumped)
Feb 14 01:18:18 mossad kernel: pid 25277 (httpd), uid 80: exited on signal 11
Feb 14 01:21:48 mossad kernel: pid 25293 (httpd), uid 80: exited on signal 11
Feb 14 01:21:53 mossad kernel: pid 25294 (httpd), uid 80: exited on signal 11
si dmesg imi returneaza asta :

Quote

pid 65722 (conftest), uid 0: exited on signal 12 (core dumped)
pid 75511 (httpd), uid 80: exited on signal 11
pid 75514 (httpd), uid 80: exited on signal 11
pid 75513 (httpd), uid 80: exited on signal 11
pid 75515 (httpd), uid 80: exited on signal 11
pid 75512 (httpd), uid 80: exited on signal 11
pid 75517 (httpd), uid 80: exited on signal 11
pid 75518 (httpd), uid 80: exited on signal 11
pid 75519 (httpd), uid 80: exited on signal 11
pid 75520 (httpd), uid 80: exited on signal 11
pid 75521 (httpd), uid 80: exited on signal 11
pid 75773 (httpd), uid 80: exited on signal 11
pid 75790 (httpd), uid 80: exited on signal 11
pid 75793 (httpd), uid 80: exited on signal 11
pid 75804 (httpd), uid 80: exited on signal 11
pid 75772 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93226 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93245 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93250 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93258 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93266 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93273 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93277 (httpd), uid 0: exited on signal 11 (core dumped)
pid 93294 (httpd), uid 0: exited on signal 11 (core dumped)
pid 10647 (httpd), uid 80: exited on signal 11
pid 10646 (httpd), uid 80: exited on signal 11
pid 93326 (httpd), uid 80: exited on signal 11
pid 18705 (httpd), uid 80: exited on signal 11
pid 18716 (httpd), uid 80: exited on signal 11
pid 18715 (httpd), uid 80: exited on signal 11
pid 18717 (httpd), uid 80: exited on signal 11
pid 18719 (httpd), uid 80: exited on signal 11
pid 18722 (httpd), uid 80: exited on signal 11
pid 18723 (httpd), uid 80: exited on signal 11
pid 18726 (httpd), uid 80: exited on signal 11
pid 18718 (httpd), uid 80: exited on signal 11
pid 18768 (httpd), uid 80: exited on signal 11
pid 18780 (httpd), uid 80: exited on signal 11
pid 18793 (httpd), uid 80: exited on signal 11
pid 18805 (httpd), uid 80: exited on signal 11
pid 18816 (httpd), uid 80: exited on signal 11
pid 18828 (httpd), uid 80: exited on signal 11
pid 18839 (httpd), uid 80: exited on signal 11
pid 18855 (httpd), uid 80: exited on signal 11
pid 18866 (httpd), uid 80: exited on signal 11
pid 18877 (httpd), uid 80: exited on signal 11
pid 18878 (httpd), uid 80: exited on signal 11
pid 18882 (httpd), uid 80: exited on signal 11
pid 18899 (httpd), uid 80: exited on signal 11
pid 18880 (httpd), uid 80: exited on signal 11
pid 93305 (httpd), uid 0: exited on signal 11 (core dumped)
pid 25247 (httpd), uid 0: exited on signal 11 (core dumped)
pid 25277 (httpd), uid 80: exited on signal 11
pid 25293 (httpd), uid 80: exited on signal 11
pid 25294 (httpd), uid 80: exited on signal 11

Same shit cam peste tot .

Intrebarea mea . Ati mai patit asa ceva? . Daca da care a fost pasul pe care l-ati facut ca sa corectati problema . Si va rog nu imi cereti sa reinstalez , ca is la a 8`a sau 9`a oara . E clar ca e din extensii . Stie careva vre-o metoda care sa ma faca sa le ocolesc inafara de a upgrada php`ul ?

Danke !  :peacefingers:

#2
infernal

infernal

    Member

  • Grup: Members
  • Posts: 774
  • Înscris: 11.01.2006
Da am patit-o eu mai demult.
Ce extensii ai instalate ?
Si ce phpmyadmin ai ?
Ce MySQL ?
Poate nu ai rezolvat cum trebuie problema cu MySQL-ul ???
Ai cumva extensia recode instalata ? (check phpinfo() ).
Incearca sa faci un mic script in php ceva in genul :

<?php
$link  = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$status = explode('  ', mysql_stat($link));
print_r($status);
?>

bineinteles cu user /pass pentru MySQL si vezi daca tot mai crapa.
Si fa si un backtrace (php-ul recompileaza-l cu debug daca nu il ai, inainte de backtrace of course):

# gdb httpd 2>&1 | tee gdb-httpd
(gdb) handle SIG33 pass nostop noprint
(gdb) set pagination 0
(gdb) run
(gdb) backtrace
(gdb) info registers
(gdb) thread apply all backtrace
(gdb) quit

Si pune undeva backtrace-ul sa-l vedem ca sunt curios de ce crapa.

Am uitat sa spun : cand faci backtrace-ul trebuie sa apelezi scriptul de php care il face sa crape, din browser deschizi pagina de la phpmyadmin sau fisier-ul in care ai salvat codul de php care se afla mai sus .


Success !

Edited by infernal, 15 February 2007 - 14:01.


#3
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006

View Postinfernal, on Feb 15 2007, 13:49, said:

Da am patit-o eu mai demult.
Ce extensii ai instalate ?
Si ce phpmyadmin ai ?
Ce MySQL ?
Poate nu ai rezolvat cum trebuie problema cu MySQL-ul ???
Ai cumva extensia recode instalata ? (check phpinfo() ).
Incearca sa faci un mic script in php ceva in genul :

<?php
$link  = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$status = explode('  ', mysql_stat($link));
print_r($status);
?>

bineinteles cu user /pass pentru MySQL si vezi daca tot mai crapa.
Si fa si un backtrace (php-ul recompileaza-l cu debug daca nu il ai, inainte de backtrace of course):

# gdb httpd 2>&1 | tee gdb-httpd
(gdb) handle SIG33 pass nostop noprint
(gdb) set pagination 0
(gdb) run
(gdb) backtrace
(gdb) info registers
(gdb) thread apply all backtrace
(gdb) quit

Si pune undeva backtrace-ul sa-l vedem ca sunt curios de ce crapa.

Am uitat sa spun : cand faci backtrace-ul trebuie sa apelezi scriptul de php care il face sa crape, din browser deschizi pagina de la phpmyadmin sau fisier-ul in care ai salvat codul de php care se afla mai sus .
Success !

Am gasit pana la urma de unde vine bugul . E din xml.so ...

Quote

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922-debug/xsl.so' - /usr/local/lib/php/20050922-debug/xsl.so: Undefined symbol "dom_node_class_entry" in Unknown on line 0
Segmentation fault: 11 (core dumped)
Intre timp m-am uitat in /etc/login.conf , deoarece am crezut ca coredumpsize o avea vre-o valoare si blockeaza executia pe user ... dar "  :coredumpsize=unlimited:\" asa ca nu e de acilea .

Bun , fstat returneaza asa .

Quote

fstat -p `cat /var/run/httpd.pid`
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
www      httpd      37143 root /             2 drwxr-xr-x     512  r
www      httpd      37143   wd /        2732032 drwxr-xr-x     512  r
www      httpd      37143 text /        407832 -rwxr-xr-x  419013  r
www      httpd      37143    0 -         -         bad    -
www      httpd      37143    1 -         -         bad    -
www      httpd      37143    2 /        3393633 -rw-r--r--   46795  w
www      httpd      37143    3* internet6 stream tcp c2478570
www      httpd      37143    4* internet stream tcp c24781d0
www      httpd      37143    5* pipe c1a047f8 <-> c1a048b0      0 rw
www      httpd      37143    6* pipe c1a048b0 <-> c1a047f8      0 rw
www      httpd      37143    7 /        3393633 -rw-r--r--   46795  w
www      httpd      37143    8 /        3393849 -rw-r--r--   32965  w
www      httpd      37143    9 /        949664 -rw-------       0 rw
www      httpd      37143   10 /        949665 -rw-------       0 rw
www      httpd      37143   11 /        3393850 -rw-------       0  w
www      httpd      37143   12 /        3393850 -rw-------       0  w
www      httpd      37143   13 /        949664 -rw-------       0  w
www      httpd      37143   14 /        949665 -rw-------       0  w

Deci nu e o chestie de permisiune .

Ok ktrace returneaza o erroare in url_generating.lib.php din phpMyAdmin . Ok . Acuma am dat un "portupgrade -Rfi phpMyAdmin " . O sa revin cu amanunte ....

#4
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006
Un mic update , chiar dupa portupgrade phpMyAdmin nu vrea sa zboare nici in ruptul capului . In schimb l-am convins pe phpldapadmin , care merge super ok . Ok am uitat sa poztez extensiile care sunt instalate .

Quote

extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=dba.so
extension=dbase.so
extension=dom.so
extension=exif.so
extension=fileinfo.so
extension=filepro.so
extension=fribidi.so
extension=ftp.so
extension=gd.so
extension=gettext.so
extension=gmp.so
extension=iconv.so
extension=imap.so
extension=ldap.so
extension=mbstring.so
extension=mcrypt.so
extension=mhash.so
extension=ming.so
extension=mssql.so
extension=mysql.so
extension=mysqli.so
extension=ncurses.so
extension=odbc.so
extension=openssl.so
extension=panda.so
extension=pcntl.so
extension=pcre.so
extension=pdf.so
extension=pdo.so
extension=pgsql.so
extension=posix.so
extension=pspell.so
extension=readline.so
extension=recode.so
extension=session.so
extension=shmop.so
extension=simplexml.so
extension=soap.so
extension=sockets.so
extension=sqlite.so
extension=sybase_ct.so
extension=sysvmsg.so
extension=sysvsem.so
extension=sysvshm.so
extension=tokenizer.so
extension=wddx.so
extension=xml.so
extension=xmlreader.so
extension=xmlrpc.so
extension=xmlwriter.so
extension=xsl.so
extension=yaz.so
extension=zip.so
extension=zlib.so
Acuma , pe care le folosesc io :

Quote

extension=mysql.so
extension=pcre.so
extension=session.so
extension=bz2.so
extension=gd.so
extension=openssl.so
extension=pdf.so
extension=zlib.so
extension=mcrypt.so
extension=mbstring.so
extension=xml.so
extension=gettext.so
extension=ldap.so

Undeva in cele de mai sus , este un bug care nici nu ma lasa sa pornesc apache . Pana acuma nu m-am dumirit , dar sper sa ii dau de cap .

Anyway daca aveti alte idei , astept sa le vad .  :peacefingers:

#5
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006
Ok , am instalat o versiune mai veche a phpMyAdmin care merge si anume "phpMyAdmin 2.5.5-pl1" . Ok , stiu , sucks , dar asta este . Deocamdata nu se stie de ce, sau care php extension e bad .  :cursing:

#6
infernal

infernal

    Member

  • Grup: Members
  • Posts: 774
  • Înscris: 11.01.2006

Quote

extension=recode.so
Pai te-am intrebat din primul meu post daca ai cumva extensia recode instalata.
Te-am intrebat pentru ca la http://php.net/mysql ai un mare warning :


"Crashes and startup problems of PHP may be encountered when loading this extension in conjunction with the recode extension. See the recode extension for more information."

Se refera la mysql extension.

scoate recode si vezi daca iti merge si bineinteles pune si phpmyadmin la loc :D

Edited by infernal, 16 February 2007 - 08:13.


#7
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006

View Postinfernal, on Feb 16 2007, 08:12, said:

Pai te-am intrebat din primul meu post daca ai cumva extensia recode instalata.
Te-am intrebat pentru ca la http://php.net/mysql ai un mare warning :
"Crashes and startup problems of PHP may be encountered when loading this extension in conjunction with the recode extension. See the recode extension for more information."

Se refera la mysql extension.

scoate recode si vezi daca iti merge si bineinteles pune si phpmyadmin la loc :D


Am scos si tot asa face . De fapt le-am scos pe toate pe rand in n`spe mii de combinatii . Acuma se pare ca e ok . Acuma ma frek cu LDAP . Din pacate se pare ca 6.2 are cateva bugs . Ma rog , nu e nici unul care sa nu poate fi rezolvat , sau ce-l putin de mine ,  :D , dar sincer ma asteptam sa fie ceva mai bun decat celelalte versiuni . Ma rog , inafara de faptul ca efectiv zboara pe calculator (de fapt asta find atu`ul BSD`urilor) , nu am OBS ceva foarte semnificativ fatza de 6.0 sau .1 .

Si apropos de ldap .

Quote

[[email protected] /usr/local/etc/openldap]# slaptest -d -1
slaptest init: initiated tool.
reading config file /usr/local/etc/openldap/slapd.conf
line 11 (modulepath      /usr/local/libexec/openldap)
line 12 (moduleload     back_bdb.la)
loaded module back_bdb.la
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
module back_bdb.la: null module registered
line 13 (database       bdb)
bdb_db_init: Initializing BDB database
line 14 (suffix         "dc=example , dc=com")
>>> dnPrettyNormal: <dc=example , dc=com>
/usr/local/etc/openldap/slapd.conf: line 14: <suffix> invalid DN 21 (Invalid syntax)
slaptest: bad configuration file!
[[email protected] /usr/local/etc/openldap]#

linia 14 din slapd.conf este :

Quote

[[email protected] /usr/local/etc/openldap]# cat slapd.conf
#######################################################################
# BDB database definitions
#######################################################################

#include /usr/local/etc/openldap/schema/core.schema
#include /usr/local/etc/openldap/schema/cosine.schema
#include /usr/local/etc/openldap/schema/inetorgperson.schema
#include /usr/local/etc/openldap/schema/nis.schema


modulepath      /usr/local/libexec/openldap
moduleload      back_bdb.la
database        bdb
suffix          "dc=example , dc=com"
rootdn          "cn=Manager,dc=example,dc=com"  <-- linia 14
rootpw          secret
directory       /var/db/openldap-data
#index  objectClass     eq

loglevel -1
[[email protected] /usr/local/etc/openldap]#

Am schimbat-o in fel si chip etc , si tot asa zice . Acuma caut in bugtrace sa vedem de unde apare .  :peacefingers:

PS . Am uitat , acuma il recompilez cu SQL backend . Sa vedem poate o ia asa . :lol:

Edited by UnixMarius, 16 February 2007 - 08:42.


#8
infernal

infernal

    Member

  • Grup: Members
  • Posts: 774
  • Înscris: 11.01.2006
N-am testat 6.2 eu folosesc mai mult OpenBSD.
Ideea ( + implementare)  de base system + porturi mi se pare cea mai tare.

Si bineinteles fara media hype :)

Spor cu LDAP-ul.

#9
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006

View Postinfernal, on Feb 16 2007, 08:56, said:

N-am testat 6.2 eu folosesc mai mult OpenBSD.
Ideea ( + implementare)  de base system + porturi mi se pare cea mai tare.

Si bineinteles fara media hype :)

Spor cu LDAP-ul.


Done ! . E clar , aia de la OpenLDAP s-au laudat ca au facut Shell Backend sa mearga ok . Au facut pe draku .

Quote

[ ]SHELL             With Shell backend (disables threading)
[ ] SLP               With SLPv2 (RFC 2608) support    
[ ] SLAPI             With Netscape SLAPI plugin API  
[ ] SYNCPROV          With Syncrepl Provider overlay
[ ] ACI               With per-object ACIs (experimental)

Daca va jucati cu LDAP sub BSD`s uitati de alea la make config de la versiunea 2.3 . In rest se pare ca merge ok .

@infernal : Da is de acord , OpenBSD rocks . De fapt pentru varianta Server, BSD`s Rocks .  :peacefingers:

#10
oblio.

oblio.

    Junior Member

  • Grup: Members
  • Posts: 83
  • Înscris: 07.09.2005
În final merge sau nu Apache?

#11
UnixMarius

UnixMarius

    Active Member

  • Grup: Members
  • Posts: 1,435
  • Înscris: 02.03.2006

View Postoblio., on Feb 16 2007, 09:47, said:

În final merge sau nu Apache?


Dap , merge ok , si cu Php + extensii . Si merge si LDAP , de fapt box`ul merge supermegacool .  :peacefingers:

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate