php-install Digest 31 Jul 2001 11:52:01 -0000 Issue 388

Topics (messages 3756 through 3762):

Re: Red Hat 6.2 and PHP-4.0.5
        3756 by: Phil Driscoll
        3760 by: ericf.quiet.whispers.org

problem image create () ......
        3757 by: subechan

problem PHP + MYSQL
        3758 by: subechan
        3759 by: Gaylen Fraley

PHP problem function image create () object
        3761 by: subechan

Problems compiling with IMAP-SSL on Solaris 8
        3762 by: zegracia.vento.com.br

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]


----------------------------------------------------------------------


Sorry if this is teaching granny to suck eggs, but since you haven't 
mentioned it...
Have you edited your httpd.conf file - adding an appropriate 'addtype' 
line(s) for your php file extension(s), and then stopped and restarted apache?

-- 
Phil Driscoll




Actually, yes I did check.  It was already in httpd.conf, I guess the php
install put it there as my httpd.conf file was backed up and a new one
with new lines pertaining to php was left in its place (I ran a diff). I
just tried again, for the umpteenth time, by completely uninstalling the
apache RPMs, reinstalling them, compeltely removing anything php related,
and started completely over.  When the php install was finished I ran a
httpd -t to check for syntax.  The syntax was off with it trying to load
libphp4.so from /etc/httpd/lib/apache.  Since there was no such symlink
leading to /usr/lib/apache where libphp4.so is located, I changed it to
look in the modules directory, which is symlinked to /usr/lib/apache.
Another httpd -t verified that the syntax was OK, so I restarted apache.
It still refuses to load any php related material.  I then tried using my
httpd.conf file from my Red Hat 7.0 box which I finally was able to get
php running (how I don't know since I spent days trying everything and it
"just worked suddenly") and that didn't help matters any.  In short I
believe something, what I don't know, is goofing up when i run ./configure
--with-apxs=/usr/sbin/apxs.  I checked the configure logs and everything
appears normal to me, and I've searched the mailing archives without
finding anything useful.  If anybody has any ideas I'll try anything at
this point. :)

Thanks
Eric

On Tue, 31 Jul 2001, Phil Driscoll wrote:

> Sorry if this is teaching granny to suck eggs, but since you haven't 
> mentioned it...
> Have you edited your httpd.conf file - adding an appropriate 'addtype' 
> line(s) for your php file extension(s), and then stopped and restarted apache?
> 
> -- 
> Phil Driscoll
> 
> -- 
> 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]
> 





Hi ...

THAT'S FOR SOMEBODY THAT HAS MY PROBLEM...

Why if i'm using imagecreate () function always error in " Fatal error: Call
to undefined function: imagecreate()"

I'm using PHP4 & apache for windows 98

thank's

bechan





I am having a problem installing php + mysql 

I'm installing & configure  PHP    --with mysql 

If  i'm running ps -ax in display :
[root@svr_kab lib]# ps -ax
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:04 init [3]
    2 ?        SW     0:00 [kflushd]
    3 ?        SW     0:04 [kupdate]
    4 ?        SW     0:00 [kpiod]
    5 ?        SW     0:00 [kswapd]
    6 ?        SW<    0:00 [mdrecoveryd]
  310 ?        S      0:00 syslogd -m 0
  320 ?        S      0:00 klogd
  335 ?        SW     0:00 [portmap]
  350 ?        S      0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-sc
  378 ?        S      0:00 [identd]
  382 ?        S      0:00 [identd]
  383 ?        S      0:00 [identd]
  384 ?        S      0:00 [identd]
  385 ?        S      0:00 [identd]
  397 ?        S      0:00 xinetd -reuse -pidfile /var/run/xinetd.pid
  412 ?        S      0:00 /usr/sbin/sshd
  428 ?        S      0:00 lpd Waiting
  465 ?        S      0:00 gpm -t ps/2
  618 ?        S      0:00 sh/usr/bin/safe_mysqld --user=mysql --log=/var/log/m
  649 ?        S      0:00 crond
  660 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  673 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  674 ?        S      0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  696 ?        S      0:00 xfs -droppriv -daemon
  722 tty1     SW     0:00 [mingetty]
  723 tty2     SW     0:00 [mingetty]
  724 tty3     SW     0:00 [mingetty]
  725 tty4     SW     0:00 [mingetty]
  726 tty5     S      0:00 /sbin/mingetty tty5
  727 tty6     S      0:00 /sbin/mingetty tty6
28795 ?        S      0:00 in.telnetd: pc_teknis
28796 pts/0    S      0:00 login -- subechan
28797 pts/0    S      0:00 -bash
28815 pts/0    S      0:00 su
28816 pts/0    S      0:00 bash
29441 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29443 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29444 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29445 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29446 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29447 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29448 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29449 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29450 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D HAVE_AC
29460 pts/0    S      0:01 /usr/bin/mc -P
29462 pts/1    S      0:00 bash -rcfile .bashrc
29487 pts/2    R      0:00 ps -ax

[root@svr_kab lib]# mysqladmin -h localhost -u root -p version
Enter password:
mysqladmin  Ver 8.8 Distrib 3.23.22-beta, for redhat-linux-gnu on i386
TCX Datakonsult AB, by Monty

Server version          3.23.22-beta-log
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 7 hours 29 min 18 sec

I run a test.php  script like here 
<?
    $sambung=mysql_connect("localhost","root","sekawan");
    if ($sambung){
      echo ("koneksi oke");}
    else {
      echo ("koneksi erorr");}
?>

If i run always erorr like here:

Warning: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111) in /var/www/html/tabel.php3 on line 2

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/tabel.php3
on line 2
koneksi eror


Please advise my problem.


thanks

subechan






Try this:

Find the file libmysqlclient.so.10 .  (Mine is in
/usr/local/mysql/lib/mysql)
Then --> cd /usr/lib
Then --> ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.10

Modify /usr/local/mysql/lib/mysql/libmysqlclient.so.10 to be your directory
path.

That should take care of it.

--
Gaylen

"Subechan" <[EMAIL PROTECTED]> wrote in message
006d01c11965$20595040$0701a8c0@net">news:006d01c11965$20595040$0701a8c0@net...
I am having a problem installing php + mysql

I'm installing & configure  PHP    --with mysql

If  i'm running ps -ax in display :
[root@svr_kab lib]# ps -ax
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:04 init [3]
    2 ?        SW     0:00 [kflushd]
    3 ?        SW     0:04 [kupdate]
    4 ?        SW     0:00 [kpiod]
    5 ?        SW     0:00 [kswapd]
    6 ?        SW<    0:00 [mdrecoveryd]
  310 ?        S      0:00 syslogd -m 0
  320 ?        S      0:00 klogd
  335 ?        SW     0:00 [portmap]
  350 ?        S      0:00 /usr/sbin/apmd -p 10 -w 5 -W -P
/etc/sysconfig/apm-sc
  378 ?        S      0:00 [identd]
  382 ?        S      0:00 [identd]
  383 ?        S      0:00 [identd]
  384 ?        S      0:00 [identd]
  385 ?        S      0:00 [identd]
  397 ?        S      0:00 xinetd -reuse -pidfile /var/run/xinetd.pid
  412 ?        S      0:00 /usr/sbin/sshd
  428 ?        S      0:00 lpd Waiting
  465 ?        S      0:00 gpm -t ps/2
  618 ?        S      0:00
sh/usr/bin/safe_mysqld --user=mysql --log=/var/log/m
  649 ?        S      0:00 crond
  660 ?        S      0:00
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  673 ?        S      0:00
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  674 ?        S      0:00
/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib
  696 ?        S      0:00 xfs -droppriv -daemon
  722 tty1     SW     0:00 [mingetty]
  723 tty2     SW     0:00 [mingetty]
  724 tty3     SW     0:00 [mingetty]
  725 tty4     SW     0:00 [mingetty]
  726 tty5     S      0:00 /sbin/mingetty tty5
  727 tty6     S      0:00 /sbin/mingetty tty6
28795 ?        S      0:00 in.telnetd: pc_teknis
28796 pts/0    S      0:00 login -- subechan
28797 pts/0    S      0:00 -bash
28815 pts/0    S      0:00 su
28816 pts/0    S      0:00 bash
29441 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29443 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29444 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29445 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29446 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29447 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29448 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29449 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29450 ?        S      0:00 /usr/sbin/httpd -D HAVE_PHP4 -D HAVE_PROXY -D
HAVE_AC
29460 pts/0    S      0:01 /usr/bin/mc -P
29462 pts/1    S      0:00 bash -rcfile .bashrc
29487 pts/2    R      0:00 ps -ax

[root@svr_kab lib]# mysqladmin -h localhost -u root -p version
Enter password:
mysqladmin  Ver 8.8 Distrib 3.23.22-beta, for redhat-linux-gnu on i386
TCX Datakonsult AB, by Monty

Server version          3.23.22-beta-log
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/lib/mysql/mysql.sock
Uptime:                 7 hours 29 min 18 sec

I run a test.php  script like here
<?
    $sambung=mysql_connect("localhost","root","sekawan");
    if ($sambung){
      echo ("koneksi oke");}
    else {
      echo ("koneksi erorr");}
?>

If i run always erorr like here:

Warning: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (111) in /var/www/html/tabel.php3 on line 2

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in /var/www/html/tabel.php3
on line 2
koneksi eror


Please advise my problem.


thanks

subechan









Hi ...

THAT'S FOR SOMEBODY THAT HAS MY PROBLEM...

Why if i am run program using imagecreate () function in php always error in " Fatal 
error: Call
to undefined function: imagecreate()"

thank's

bechan





Hi,

I am trying to compile PHP 4.0.6 with IMAP-SSL on a sparc machine running
Solaris 8. I am using thie uw-imap, and I am positive that it is working
fine as IMAP-SSL. (I tryed on Netscape with SSL, and with openssl commands).

Unfortunately, when I try to compile PHP with the --with-imap-ssl option,
this is what I get:

# ./configure --with-apache=/opt/src/apache --with-mysql=/opt/local/mysql
--with-imap=/opt/src/imap --with-imap-ssl=/opt/src/imap/c-client 
--enable-memory-limit=yes
--enable-debug=no --enable-track-vars

(...)
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for Kerberos support in IMAP... no
checking for SSL support in IMAP... yes
configure: error: This c-client library does not support SSL. Recompile
or remove --with-imap-ssl from configure line.

Does anybody know what can I do to make it work?

Thanks,

Jose





Reply via email to