Solved

RHEL4 > Installing PHP & mySQL

Posted on 2006-06-25
8
913 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

623 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