php-install Digest 21 Mar 2001 15:26:53 -0000 Issue 228 Topics (messages 2532 through 2538): A NETWORK MARKETER? 2532 by: timmyralley8627.juno.com Re: Mysql socket connect problems 2533 by: Aaron Joseph Pagel 2534 by: B. van Ouwerkerk Make error 2535 by: TAN XML/XSLT 2536 by: Stefan Jösch 2538 by: Stefan Jösch apache startup problem with libmhash.so.2 2537 by: Dean Hall Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
ATTENTION: ANY SERIOUS NETWORK MARKETER TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!! DO NOT LET THIS SLIP AWAY!! CLICK BELOW AND FIND OUT AS I DID, WHY THESE GUYS ARE THE LEADERS IN THE INDUSTRY!! http://www.geocities.com/businessupdates2000 ***************************************************************** THIS EMAIL COMPLIES WITH ALL REGULATIONS. TO BE REMOVED WITHIN 24 Hours, SIMPLYEMAIL [EMAIL PROTECTED] FOR IMMEDIATE REMOVAL FROM ANY FUTURE EMAILS FROM OUR COMPANY. *****************************************************************
make sure that the permission for the mysql.sock file and the mysql directory that it is located in are both set to 755. if the mysql.sock file is located in a different directory that what the error msg gives you, then create a simlink to the file. On Tue, 20 Mar 2001, Paul Newby wrote: > > I also have the problem described by Jason, or a somewhat similar > one. The MySQL command line monitor works fine, but when > php mysql functions are called from a script I get > > Can't connect to local MySQL server > through socket '/var/lib/mysql/mysql.sock' > > which is kind of odd because in the process of getting > PHP4 installed, I removed and reinstalled MySQL, and changed > the layout in the process: the mysql directory > was moved from /var/lib to /usr/local/mysql/var > and PHP4 was configured with '--with-mysql=/usr/local/mysql' > ... so I don't know why php appears to be referring > to /var/lib/mysql at all. > > Any ideas? > > Thanks, > Paul N. > > > > Hi > > > > I would be really grateful if someone can help me out. > > I have installed Apache 1.3.17 with php4pl1 and Mysql 3.23.33. I can connect > > to Mysql through the console but when I try to connect to it on my web > > broswer then I get this error message: > > > > Warning: MySQL Connection Failed: Can't connect to local MySQL server > > through socket '/var/lib/mysql/mysql.sock' (111) in > > /home/JasonC/Dev/registration.php on line 19 > > > > I am using the mysql.sock file in the /tmp/ directory but I have also placed > > the mysql,sock file in the '/var/lib/mysql/ directory but to no avail! > > > > Please help > > > > Thankyou > > > > Jason > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
> > I think you should be fine > > after changing the php.ini file. > >Yes, I wouldn't be surprised if the problem is an existing >configfile, but I don't know which one. The location >of mysql.sock isn't specified or implied in php.ini, so >far as I can see. Check again. "grep mysql php.ini" shows "mysql.default_socket" Comment says: default socket name for local MySQL connects. If empty, uses the built-in. So edit your php.ini >Configuring mysql with >--with-unix-socket-path=/usr/local/mysql/var/mysql.sock >doesn't seem to make any difference either. I would expect mysql.sock to live in /tmp Run configure again would help but you need to -remove the COMPLETE source directory and create a new one from the .gz file -remove the old config config.cache (not sure with PHP, but needed with some apps) I think I would remove the complete source, just to be sure. I'm glad my distro (Slackware) doesn't install all kinds of software I don't want. Bye, B.
I have a question here, when I make Apache in Solaris 2.5 environment I got the error that I state below. Could anyone let me know how can overcome such a problem ? For your information, I compile my php with oracle database. Thanks in advance. Undefined first referenced symbol in file olog modules/php4/libphp4.a(oracle.lo) ld: fatal: Symbol referencing errors. No output written to httpd *** Error code 1 make: Fatal error: Command failed for target `target_static' Current working directory /Update/apache_1.3.19/src *** Error code 1 make: Fatal error: Command failed for target `build-std' Current working directory /Update/apache_1.3.19 *** Error code 1 make: Fatal error: Command failed for target `build'
Hi, I've run ./configure --with-mysql --with-apxs --with-xml --with-sablot and then after typing "make" I get the following error: /usr/bin/ld: cannot find -lxmltok collect2: ld returned 1 exit status make[1]: *** [libphp4.la] error 1 make[1]: leaving directory »/usr/local/src/lamp/php-4.0.4pl1« make: *** [all-recursive] error 1 even after running ldconfig with the shared libs libxml.la libxmlparse.so.0.1.0 libxml.so.1 libxml.so.2 libxmltok.so.0 libxmlparse.so.0 libxml.so libxml.so.1.8.9 libxml.so.2.2.2 libxmltok.so.0.1.0 in /usr/lib/ and re-running the configure-command. Can anyone help me? I have a Linux Mandrake 7.0 machine. Regards, Stefan Jösch.
Stefan Jösch wrote: > I've run > > ./configure --with-mysql --with-apxs --with-xml --with-sablot > > and then after typing "make" I get the following error: > > /usr/bin/ld: cannot find -lxmltok > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] error 1 > make[1]: leaving directory »/usr/local/src/lamp/php-4.0.4pl1« > make: *** [all-recursive] error 1 > > even after running ldconfig with the shared libs > > libxml.la libxmlparse.so.0.1.0 libxml.so.1 > libxml.so.2 > libxmltok.so.0 > libxmlparse.so.0 libxml.so libxml.so.1.8.9 > libxml.so.2.2.2 libxmltok.so.0.1.0 > > in /usr/lib/ and re-running the configure-command. > > Can anyone help me? I have a Linux Mandrake 7.0 machine. I've fixed the bug. Now it works....
I have installed mhash and libmcrypt (and mcrypt, for that matter), configured php with both of the extensions, and compiled PHP (as a DSO), and apache gives the following error when I attempt to start it: Cannot load /usr/local/apache/libexec/libphp4.so into server: libmhash.so.2: cannot open shared object file: No such file or directory Here are the details: Webserver: - apache-1.3.19 compiled with (- mm-1.1.3) - mod_ssl-2.8.1-1.3.19 (compiled as a static module) PHP (DSO): - php-4.0.4pl1 compiled with extensions: - libmcrypt-2.4.7 - mhash-0.8.9 I installed mcrypt-2.2.6 as well, but I soon realized that the PHP documentation said I should install libmcrypt, not mcrypt. Interestingly, php never complained that libmcrypt was not installed during configure. I'm not a *nix guru, and I don't understand completely how the dynamic linking process works, but this seems wrong. Any thoughts? I'm pretty desperate here. :-) Otherwise I'll have to start using the openssl shell command. Dean Hall. Apt7.com Web Services