Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RHEL4 > Installing PHP & mySQL

Posted on 2006-06-25
8
Medium Priority
?
921 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 1800 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 200 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 dynamically set the form action using jQuery.

704 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