Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dolaczenie obslugi mysql - php
outsider
post
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
outsider
post
Post #2





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
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 15:15