Solved

RHEL4 > Installing PHP & mySQL

Posted on 2006-06-25
8
889 Views
Last Modified: 2013-12-13
Apache 2.2 is installed on my Pentium 4 machine and I'm trying to get php-5.1.4 and mysql-5.0.22 up and running as well but with little luck.   I'm trying to do this all from command line (YUM doesn't seem to want to work so skip that).  What are the steps I should perform to get this done?  (I'm familiar with installing Apache, mySQL and PHP on Windows XP but Linux has me a bit stumped.)  The server is at http://voip.t1shopper.com/

http://www.t1shopper.com
0
Comment
Question by:Geoff Millikan
  • 5
  • 2
8 Comments
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 450 total points
ID: 16982427
http://www.php.net/manual/en/install.unix.php contains all the info needed to install PHP on *ix platforms.
0
 

Author Comment

by:Geoff Millikan
ID: 16984849
I installed PHP however, I cannot find the php module to point the httpd.conf too...  I did all the installs, I just can't get them all working together...  That's why I need some help with step by step instructions...
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16985137
Where did you install PHP? That's where the module will be.

Ah! Just thinking out loud.

You've got Apache installed.

Did you do that by hand or did you use a program?

program Apache2_2

sort of thing?

Is this what YUM does?

I suspect that you need to download the source and compile it either as a CGI module or into Apache.

With windows, you get pre-compiled binaries which is why it is so much easier.

0
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 

Author Comment

by:Geoff Millikan
ID: 16989655
I downloaded the source for Apache, PHP then did the configure, make, make install, etc.  So I did everything from scratch.

For Apache I did "configure -prefix=/usr/local/apache2" and it installed in the normal place (/usr/local/apache2/conf/httpd.conf)
For PHP I did "configure -prefix=/usr/local/php -with-apxs2=/usr/local/apache2/bin/apxs -with-mysql=/usr/local/mysql" and it's not where I told it to install - it's not in /usr/local/php  
For mySQL I did "configure -prefix=/usr/local/mysql" and it's not where I told it to install - it's not in /usr/local/mysql

I'm happy to start from scratch again, if someone could just give me a few steps to follow... like this, (1) download the source (2) untar (3) run configure -monkey=bannana  -with=nuts  (4) make (5) make install (6) verify the files are in /usr/etc/dog/cat/spank_me/now/ (7) add the following line to the httpd.conf file "LoadModule php4_module        libexec/mod_php4-4.4.2.so" (8) Party like it's 1999

You get the picture.  Any takers?
0
 

Author Comment

by:Geoff Millikan
ID: 16989951
Hold the phones.  RQuadling, I followed the steps outlined in http://www.php.net/manual/en/install.unix.php and it seems to be working now (http://voip.t1shopper.com/).  Two more questions:

1. How do I make Apache start automatically on reboot?
2. When I try to start mySQL "# mysql" it generates "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"  How do I get mySQL working?

Thanks!
0
 
LVL 51

Assisted Solution

by:ahoffmann
ahoffmann earned 50 total points
ID: 16990095
1. see /etc/init.d/apache and chkconfig
2. configure your /etc/my.cnf and /etc/init.d/mysql
0
 

Author Comment

by:Geoff Millikan
ID: 16990111
Nevermind, I think I've got it.  I've forgotton how hard it is to start creating mySQL users and permissions...  Thanks all.

0
 

Author Comment

by:Geoff Millikan
ID: 16990115
Thanks ahoffman!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question