![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 267 Pomógł: 36 Dołączył: 8.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam problem ze wspolpraca php z mysql. Oto kawalek php.ini Kod (...) extension=php_mysql.dll (...) Serwer to Gentoo Linux. Restartowalem serwer / apache i nic nie dalo (IMG:style_emoticons/default/tongue.gif) Pierwszy raz mam stycznosc z Linuxem, wiec zrozumcie (IMG:style_emoticons/default/smile.gif) PHP 5 dziala normalnie tylko ze nie ma fukncji do polaczenie z mysql itp. Mysql rowniez dziala. Moduly maja znajdowac sie tu extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613 tylko ze takiej lokalizacji nie ma (IMG:style_emoticons/default/smile.gif) Jest tylko /usr/lib64/php5/lib/php/ Prosze Was - pomozcie ! Z gory dziekuje (IMG:style_emoticons/default/smile.gif) Pozdrawiam @edit Logi: Kod PHP Startup: Unable to load dynamic library '/usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613/php_mysql.dll' - /usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0 Czyli chodzi o sciezke, tylko jaka jest prawidlowa (Gentoo linux) ? Ten post edytował *OuTSideR* 9.02.2010, 22:29:32 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 15 467 Pomógł: 1451 Dołączył: 25.04.2005 Skąd: Szczebrzeszyn/Rzeszów ![]() |
W Linuksie nie ma DLL. ;]
Poza tym, ustaw odpowiednie opcje przy ./configure i będzie ok. Ale to w dokumentacji. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 267 Pomógł: 36 Dołączył: 8.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
co to ./configure ? (IMG:style_emoticons/default/smile.gif) Przepraszam ale nie mam pojecia co to - pakiety instaluje # emerge nic pozniej wiecej nie robie... Jak sie za to ./configure zabrac ?
P.S. Tez mi sie wydawalo ze powinno byc *.so - ale instalowalem gotowy pakiet ktory byl z systemem Gentoo wiec myslalem ze wiedza co daja (IMG:style_emoticons/default/tongue.gif) Ten post edytował *OuTSideR* 9.02.2010, 22:43:05 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 57 Pomógł: 9 Dołączył: 12.11.2005 Skąd: ze wnowu?! Ostrzeżenie: (0%) ![]() ![]() |
Wiedza, tylko Ty nie wiesz co bierzesz (IMG:style_emoticons/default/biggrin.gif)
W Gentoo mozesz za pomoca USE sterowac tym, co zostanie zainstalowane razem z pakietem. Zobacz do /etc/make.conf. Powinno tam byc USE="costam foo bar blach etc". Dopisz sobie mysql, mysqli, pdo i takie tam. Niestety nie mam teraz zadnego Gentoo pod reka to nie powiem Ci co dokladnie. # emerge -av php pokaze Ci USE jakie mozesz ustawic dla PHP, to wylapiesz tam sobie co Ci potrzeba. |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 267 Pomógł: 36 Dołączył: 8.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
Ustawilem USE, i zainstalowalem php jeszcze raz, jakies bledy wyskoczyly na sam koniec - co z tym zrobic ?
{standard input}: Assembler messages: {standard input}:0: Warning: end of file not at end of a line; newline inserted {standard input}:511: Error: bad register name `%ea' x86_64-pc-linux-gnu-gcc: Internal error: Killed (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make: *** [ext/zlib/zlib_filter.lo] Error 1 make: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-gcc: Internal error: Killed (program cc1) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make: *** [ext/date/lib/parse_date.lo] Error 1 * * ERROR: dev-lang/php-5.2.12 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4669: Called src_compile_normal * environment, line 4788: Called php5_2-sapi_src_compile * environment, line 3694: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/environment'. * >>> Failed to emerge dev-lang/php-5.2.12, Log file: >>> '/var/tmp/portage/dev-lang/php-5.2.12/temp/build.log' * Messages for package dev-lang/php-5.2.12: * * You should enable one or more of the following USE flags: * cli cgi apache2 * * You can do this by enabling these flags in /etc/portage/package.use: * =dev-lang/php-5.2.12 cli cgi apache2 * * The cli USE flag was automatically enabled now. * * * USE flag 'gd' needs these additional flag(s) set: * zlib * * ' zlib' was automatically enabled and the required extensions will be * built. In any case it is recommended to enable those flags for * future reference, by adding the following to /etc/portage/package.use: * =dev-lang/php-5.2.12 zlib * * * ERROR: dev-lang/php-5.2.12 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4669: Called src_compile_normal * environment, line 4788: Called php5_2-sapi_src_compile * environment, line 3694: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.12/temp/environment'. * * GNU info directory index is up-to-date. @EDIT Jeszcze brakuje pliku libphp5.so: * apache2 has detected a syntax error in your configuration files: apache2: Syntax error on line 143 of /etc/apache2/httpd.conf: Cannot load /usr/lib64/apache2/modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory * ERROR: apache2 failed to start @@EDIT2 Znalazlem przyczyne: /var/tmp/portage/dev-lang/php-5.2.12/work/php-5.2.12/libtool: fork: Cannot allocate memory Wiec instalacja wkrotce przebiegnie pomyslnie. ALE - czy w folderze extension_dir = /usr/lib64/php5/lib/php/extensions/no-debug-non-zts-20060613 beda znajdowac sie rozszerzenia ktore zainstaluje ? (pliki *.so mysql.so itp.). Jesli nie to co wtedy ? Ten post edytował *OuTSideR* 12.02.2010, 16:24:20 |
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 57 Pomógł: 9 Dołączył: 12.11.2005 Skąd: ze wnowu?! Ostrzeżenie: (0%) ![]() ![]() |
Jesli nie, to wtedy sie bedziesz martwic.
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 267 Pomógł: 36 Dołączył: 8.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
po zwiekszeniu limitu pamieci i zainstalowaniu PHP jeszcze raz wszystko dziala (IMG:style_emoticons/default/smile.gif)
Mam jedno pytanie nie zwiazane z tematem : czy nalezy miec wlaczone w php.ini display_error ? |
|
|
![]()
Post
#8
|
|
Grupa: Moderatorzy Postów: 15 467 Pomógł: 1451 Dołączył: 25.04.2005 Skąd: Szczebrzeszyn/Rzeszów ![]() |
To zależy, co chcesz pokazywać użytkownikom. (IMG:style_emoticons/default/winksmiley.jpg)
Generalnie opcja powinna być wyłączona na serwerze produkcyjnym, chyba że masz własny system przechwytywania błędów. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 00:01 |