LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   installing php 5.0.4 (https://www.linuxquestions.org/questions/mandriva-30/installing-php-5-0-4-a-309956/)

Infernal67 04-05-2005 09:15 AM

installing php 5.0.4
 
can someone tell me how to install php 5.0.4 on mandrake 10.1. i'm currently running 4.3.8. i already tried the php manual, but there isn't much info about it

thx

reddazz 04-06-2005 01:57 AM

If you instend to compile it from source, take a look at the documentation on the php website or here.

Infernal67 04-06-2005 08:35 AM

thanks, but do i need to remove the old versions???

*EDIT*

i'm having a problem installing mysql.i run this command:
Code:

./configure –prefix=/usr/local/mysql –localstatedir=/usr/local/mysql/data –disable-maintainer-mode –with-mysqld-user=mysql –enable-large-files-without-debug
and i get this in my console:
Code:

STOPPING server from pid file /root/mysql-4.0.24/data/localhost.pid
after that the console is blank, i don't have the [root@localhost mysql-4.0.24]#

what am i doing wrong??

reddazz 04-06-2005 11:39 AM

How come the pid has ended up in /root instead of /usr/local/mysql/data.

Infernal67 04-06-2005 12:50 PM

it's the same if i put it in /usr/local/mysql/ folder

do i need to remove my old mysql folder??

reddazz 04-06-2005 01:18 PM

check in /usr/local/mysql/date for a file that ends in *.err. Do "cat *.err" and post the output. You may have to disable your previous mysql installation (through the services option in the system menu or via MCC) or uninstall it.

Infernal67 04-06-2005 01:26 PM

i've got this output:

Code:

[root@localhost data]# cat *.err
050406 17:09:23  mysqld started
050406 17:09:23 Can't start server: Bind on TCP/IP port: Address already in use
050406 17:09:23 Do you already have another mysqld server running on port: 3306 ?
050406 17:09:23 Aborting

050406 17:09:23 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:09:23  mysqld ended

050406 17:15:30  mysqld started
050406 17:15:30 Can't start server: Bind on TCP/IP port: Address already in use
050406 17:15:30 Do you already have another mysqld server running on port: 3306 ?
050406 17:15:30 Aborting

050406 17:15:30 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:15:30  mysqld ended

050406 17:15:48  mysqld started
050406 17:15:48 Can't start server: Bind on TCP/IP port: Address already in use
050406 17:15:48 Do you already have another mysqld server running on port: 3306 ?
050406 17:15:48 Aborting

050406 17:15:48 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:15:48  mysqld ended

050406 17:17:01  mysqld started
/root/mysql-4.0.24/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/root/mysql-4.0.24/bin/mysqld: Can't create/write to file '/root/tmp/ibvidAte' (Errcode: 13)
050406 17:17:02  InnoDB: Error: unable to create temporary file; errno: 13
050406 17:17:02 Can't init databases
050406 17:17:02 Aborting

050406 17:17:02  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 17:17:02 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:17:02  mysqld ended

050406 17:22:39  mysqld started
/root/mysql-4.0.24/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/root/mysql-4.0.24/bin/mysqld: Can't create/write to file '/root/tmp/ibjetTIq' (Errcode: 13)
050406 17:22:39  InnoDB: Error: unable to create temporary file; errno: 13
050406 17:22:39 Can't init databases
050406 17:22:39 Aborting

050406 17:22:39  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 17:22:39 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:22:39  mysqld ended

050406 17:23:36  mysqld started
/root/mysql-4.0.24/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/root/mysql-4.0.24/bin/mysqld: Can't create/write to file '/root/tmp/ib4MolvD' (Errcode: 13)
050406 17:23:36  InnoDB: Error: unable to create temporary file; errno: 13
050406 17:23:36 Can't init databases
050406 17:23:36 Aborting

050406 17:23:36  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 17:23:36 /root/mysql-4.0.24/bin/mysqld: Shutdown Complete

050406 17:23:36  mysqld ended

050406 19:48:35  mysqld started
/usr/local/mysql/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/usr/local/mysql/bin/mysqld: Can't create/write to file '/root/tmp/ibi3I1OG' (Errcode: 13)
050406 19:48:35  InnoDB: Error: unable to create temporary file; errno: 13
050406 19:48:35 Can't init databases
050406 19:48:35 Aborting

050406 19:48:35  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 19:48:35 /usr/local/mysql/bin/mysqld: Shutdown Complete

050406 19:48:35  mysqld ended

050406 19:49:11  mysqld started
/usr/local/mysql/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/usr/local/mysql/bin/mysqld: Can't create/write to file '/root/tmp/ibTpA3wc' (Errcode: 13)
050406 19:49:12  InnoDB: Error: unable to create temporary file; errno: 13
050406 19:49:12 Can't init databases
050406 19:49:12 Aborting

050406 19:49:12  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 19:49:12 /usr/local/mysql/bin/mysqld: Shutdown Complete

050406 19:49:12  mysqld ended

050406 19:49:47  mysqld started
/usr/local/mysql1/bin/mysqld: Can't read dir of '/root/tmp/' (Errcode: 13)
/usr/local/mysql1/bin/mysqld: Can't create/write to file '/root/tmp/ibZDQWQg' (Errcode: 13)
050406 19:49:47  InnoDB: Error: unable to create temporary file; errno: 13
050406 19:49:47 Can't init databases
050406 19:49:47 Aborting

050406 19:49:47  InnoDB: Warning: shutting down a not properly started
                InnoDB: or created database!
050406 19:49:47 /usr/local/mysql1/bin/mysqld: Shutdown Complete

050406 19:49:47  mysqld ended

i have already disabled the mysql trough the service option. howdo i unistall it, i'll try that too

thx

reddazz 04-06-2005 04:53 PM

Ok, the best thing to do is to uninstall the mysql package you installed in /usr/local and do a reinstallation. You can download a binary package from the mysql website (maybe thats the one you already downloaded), extract it to /usr/local and then rename it to just mysql. Once thats done, do

1) cd /usr/local/mysql/scripts
2) ./mysql_install_db
3) chown -R root.mysql /usr/local/mysql/*
4) chown -R mysql.mysql /usr/local/mysql/data/*
5) Test it by doing /usr/local/mysql/bin/mysqld_safe –user=mysql &

To remove the Mandrake mysql package, just use rpmdrake from the Mandrake control centre.

Infernal67 04-06-2005 06:01 PM

won't work, when i do the ./mysql_install_db, i get this:
Code:

[root@localhost scripts]# ./mysql_install_db
./mysql_install_db: line 1: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing this script
[root@localhost scripts]#

what am i doing wrong
the file mysqld exist in bin

Infernal67 04-09-2005 12:41 PM

eumh, help

reddazz 04-09-2005 02:13 PM

I think you are using the source package and not the binary package. Download the binary package then follow my instructions.

Infernal67 04-09-2005 04:00 PM

well, i just downloaded the .rpm file and that worked

reddazz 04-10-2005 01:48 AM

Ok, cool. :)

Infernal67 04-10-2005 10:35 AM

guess what, now php won't install, i run this command:
#./configure ?prefix=/usr/local/php ?with-apxs2=/usr/local/apache2/bin/apxs ?with-mysql=/usr/local/mysql
from this site:
http://www.hostlibrary.com/installin...l_php_on_linux

and i get this error in my terminal
Code:

[root@localhost php-5.0.4]# ./configure -prefix=/usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs-with-mysql=/usr/local/mysql
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for mawk... mawk
checking for bison... no
checking for byacc... no
configure: warning: You will need bison if you want to regenerate the PHP parsers.
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 2422: lex: command not found
configure: error: cannot find output from lex; giving up
[root@localhost php-5.0.4]#

help :D

reddazz 04-10-2005 11:16 AM

Change the "?" in the ./configure options to "--".


All times are GMT -5. The time now is 01:20 AM.