LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-05-2005, 09:15 AM   #1
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Rep: Reputation: 15
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
 
Old 04-06-2005, 01:57 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you instend to compile it from source, take a look at the documentation on the php website or here.
 
Old 04-06-2005, 08:35 AM   #3
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
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??

Last edited by Infernal67; 04-06-2005 at 10:21 AM.
 
Old 04-06-2005, 11:39 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
How come the pid has ended up in /root instead of /usr/local/mysql/data.
 
Old 04-06-2005, 12:50 PM   #5
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
it's the same if i put it in /usr/local/mysql/ folder

do i need to remove my old mysql folder??
 
Old 04-06-2005, 01:18 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.

Last edited by reddazz; 04-06-2005 at 01:19 PM.
 
Old 04-06-2005, 01:26 PM   #7
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-06-2005, 04:53 PM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 04-06-2005, 06:01 PM   #9
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-09-2005, 12:41 PM   #10
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
eumh, help
 
Old 04-09-2005, 02:13 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I think you are using the source package and not the binary package. Download the binary package then follow my instructions.
 
Old 04-09-2005, 04:00 PM   #12
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
well, i just downloaded the .rpm file and that worked
 
Old 04-10-2005, 01:48 AM   #13
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ok, cool.
 
Old 04-10-2005, 10:35 AM   #14
Infernal67
Member
 
Registered: Mar 2005
Distribution: Mandrake
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-10-2005, 11:16 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Change the "?" in the ./configure options to "--".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing PHP tntcoder Linux - Newbie 4 12-17-2005 03:53 AM
Installing PHP Verbal Kint Linux - Software 2 09-24-2005 11:08 AM
Installing PHP vinicius Linux - Newbie 5 09-18-2003 12:36 PM
installing php loadimmed Linux - General 2 07-22-2003 10:36 AM
Installing PHP help, please. WorldBuilder Linux - Software 3 06-06-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration