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 |
If you instend to compile it from source, take a look at the documentation on the php website or here.
|
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 Code:
STOPPING server from pid file /root/mysql-4.0.24/data/localhost.pid what am i doing wrong?? |
How come the pid has ended up in /root instead of /usr/local/mysql/data.
|
it's the same if i put it in /usr/local/mysql/ folder
do i need to remove my old mysql folder?? |
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.
|
i've got this output:
Code:
[root@localhost data]# cat *.err thx |
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. |
won't work, when i do the ./mysql_install_db, i get this:
Code:
[root@localhost scripts]# ./mysql_install_db the file mysqld exist in bin |
eumh, help
|
I think you are using the source package and not the binary package. Download the binary package then follow my instructions.
|
well, i just downloaded the .rpm file and that worked
|
Ok, cool. :)
|
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 |
Change the "?" in the ./configure options to "--".
|
All times are GMT -5. The time now is 01:20 AM. |