php-install Digest 9 Apr 2001 07:38:38 -0000 Issue 253 Topics (messages 2710 through 2715): mysql --> php 2710 by: Adam 2711 by: Rasmus Lerdorf 2712 by: B. van Ouwerkerk Re: Please Help!!! 2713 by: Joe Laffey have a trouble 2714 by: Jaymz de la Vega 2715 by: B. van Ouwerkerk 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] ----------------------------------------------------------------------
Hello, I have a fresh instalation of mysql from the ditribution of RH7. What do I have to put into the user and host tables so that I can use MySQL through PHP (I doesn't have to be super-secure, just so that not everybody could get to my databases) Btw. Now I get this error when trying to use mysql in a php script: Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in lib.inc.php3 on line 97 Error I'm sure that mysql server is running. Greets, Adam
> I have a fresh instalation of mysql from the ditribution of RH7. > What do I have to put into the user and host tables so that > I can use MySQL through PHP (I doesn't have to be super-secure, > just so that not everybody could get to my databases) > > Btw. > Now I get this error when trying to use mysql in a php script: > Warning: MySQL Connection Failed: Can't connect to local MySQL server > through socket '/var/lib/mysql/mysql.sock' (111) in lib.inc.php3 on line 97 > Error > I'm sure that mysql server is running. Type: mysqladmin variables and check where the socket is. Then put that socket location in your mysql_connect() call. See the docs for the exact syntax. Also see the MySQL docs for how to grant access to specific users. You will want to do a GRANT for your web server user id, or whatever user you wish to connect to MySQL as from your web interface. -Rasmus
>Btw. >Now I get this error when trying to use mysql in a php script: >Warning: MySQL Connection Failed: Can't connect to local MySQL server >through socket '/var/lib/mysql/mysql.sock' (111) in lib.inc.php3 on line 97 > Error >I'm sure that mysql server is running. If you would have taken a few minutes.... it's in the archive.. Can someone PLEASE add this to the FAQ.... A yeah, the solution. edit your PHP.ini to match the location of mysql.sock normally it would live in /tmp Bye, B.
On Sat, 7 Apr 2001, Armando Colpa wrote: > Hi. I'm trying to follow the instructions to get php > installed with apache/mysql/gd/bcmath and ssl support. > These instructions are in the Perl Developer's > CookBook, p. 466. When I get to the initial apache > build section I use the following commands. > > 1. Go to the apache directory (1.3.19 version) > 2. run SSL_BASE=../openssl-0.9.5 \ > --prefix=/usr/local/apache \ > --enable-module=most \ > --enable-shared=max \ > --enable-module=ssl \ > --enable-shared=ssl > 3. make > 4. make certificate > > I'm asked a bunch of questions, which I always answer > to the default. It looks as if everything works, > accept for one thing; when I go to /usr/local, I see > no apache directory!! What's more, when I do a > search, I see no evidence that ANYTHING was done! Any > ideas about this one? Thanks for any help that you > can give. Did you do a "make install" ? Nothing is placed outside the build dir until you do the install. Joe Laffey LAFFEY Computer Imaging St. Louis, MO ---------------------- Need to do multi-file string replacement in Un*x, but don't want to mess with sed? Try rpl. It's a free text replacement utility with source. http://www.laffeycomputer.com/rpl.html -- Check it out! ------------------------------------------------------------------------
IE5 responce: "save on disk" or "open", not running.(apache+php4) HELP, PLZ!!!
>IE5 responce: "save on disk" or "open", not running.(apache+php4) >HELP, PLZ!!! Has been answered a million times on this list.... Edit your httpd.conf and take a look at the Addtype application stuff. You know the lines with x-httpd-php in it.. Need more info? check the archive. Bye, B.