LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-20-2005, 11:17 AM   #1
yangying
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 04-20-2005, 11:24 AM   #2
yangying
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Original Poster
Rep: Reputation: 0
this is the article i've been working with
but i can't even finish installing mysql

"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"
 
Old 04-20-2005, 01:45 PM   #3
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
Need to be a little more specific, what do you mean by "you can't complete the install"? Is there an error displayed?
 
Old 04-20-2005, 02:04 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
You should use apt-get anyway as it will resolve dependencies.
 
Old 04-21-2005, 01:07 AM   #5
yangying
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thanx for help
i will give the detail soon
 
Old 04-21-2005, 01:24 AM   #6
yangying
LQ Newbie
 
Registered: Apr 2005
Posts: 5

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Removing MySQL4.1 and Installing MySQL4.0.* critical Linux - Software 2 08-04-2005 10:26 PM
Ultimate Slack Server Guide::Installing Apache2, PHP4, MySQL4, Webmin1.2, phpMyAdmin Eric45008 Slackware - Installation 9 04-25-2005 11:59 PM
php5 apache2 mysql4 don't work, php does not seem to read php.ini atom Linux - Software 5 03-24-2005 11:05 AM
slack 9 installing php5 and apache2 caged Slackware 2 12-02-2004 06:38 PM
Installing Apache2 and PHP5 biglaz Linux - General 1 10-15-2004 10:42 PM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration