LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing apache2+php5+mysql4 problem (http://www.linuxquestions.org/questions/linux-software-2/installing-apache2-php5-mysql4-problem-315336/)

yangying 04-20-2005 11:17 AM

installing apache2+php5+mysql4 problem
 
#rpm -e --nodeps mysql
#rpm -e --nodeps php
#rpm -e --nodeps httpd
\\i've done that above,but i cannot finish the last work after many times' try

please help to give the whole commands to install and config mysql4+apache2+php5 if possible
thank you very much
:)

yangying 04-20-2005 11:24 AM

this is the article i've been working with
but i can't even finish installing mysql :p

"1. Mysql
# groupadd mysql
# useradd -g mysql mysql
# cd /usr/local
# tar 每zxvf /home/server/MySQL*.tar.gz
#cd MySQl* /bin
# ./mysqladmin -u root password &password*//set password
# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld

start mysql :
# /etc/rc.d/init.d/mysqld start

2. apache
#cd /usr/local
#tar 每zxvf /home/server/httpd-2.0.50.tar.gz
#./configure 每enable-so 每enable-rewrite
#make
#make install
start apache
#cd /usr/local/apache2/bin
#./apachectl start

4 PHP
# cd /usr/local
# tar -zxvf /home/server/php-5.0.0.tar.gz
# cd php*
#./configure每with-apxs2=/usr/local/apache2/bin/apxs 每with-mysql=/usr/local/mysql
# make
# make install

edit httpd.conf after installing for :

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3

restart apache"

BinaryBob 04-20-2005 01:45 PM

Need to be a little more specific, what do you mean by "you can't complete the install"? Is there an error displayed?

Crashed_Again 04-20-2005 02:04 PM

You should use apt-get anyway as it will resolve dependencies.

yangying 04-21-2005 01:07 AM

thanx for help
i will give the detail soon

yangying 04-21-2005 01:24 AM

Code:

root]# groupadd mysql
groupadd: group mysql exists
[root@localhost root]# useradd -g mysql mysql
useradd: user mysql exists
[root@localhost root]# cd /usr/local
[root@localhost local]# tar -zxvf /root/src/mysql.tar.gz
................................
................................
................................
[root@localhost local]# ls
apache2  httpd-2.1.3-beta  mysql-standard-4.1.11-pc-linux-gnu-i686  src
bin      include          php-5.0.3
etc      lib              sbin
games    libexec          share
[root@localhost local]# cd mysql-standard-4.1.11-pc-linux-gnu-i686
[root@localhost mysql-standard-4.1.11-pc-linux-gnu-i686]# cd bin
[root@localhost bin]# ./mysqladmin -u root password "exey369"
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@localhost bin]# cp support-files/mysql.server /etc/rc.d/init.d/mysqld
cp: cannot stat `support-files/mysql.server': No such file or directory
[root@localhost bin]# chkconfig -add mysqld
-add: unknown option
[root@localhost bin]# chkconfig --add mysqld
[root@localhost bin]# /etc/rc.d/init.d/mysqld start
/etc/rc.d/init.d/mysqld: line 1: my_print_defaults: command not found
/etc/rc.d/init.d/mysqld: line 182: cd: /usr/local/mysql: No such file or directory
 ERROR! Can't execute ./bin/mysqld_safe

Code:

[root@localhost


All times are GMT -5. The time now is 06:19 PM.