Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
07-11-2006, 08:05 PM
|
#16
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Sorry didn't check for that. Your php.ini file looks fine. Have you tried adding that mysql.so file to the include path and then restarting apache?
|
|
|
|
07-12-2006, 01:25 AM
|
#17
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i just tried copying that so file into the include directory that the ini points to
i still get
[client 24.163.113.48] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/phpinfo.php on line 8
i also restarted apache
|
|
|
|
07-12-2006, 08:44 AM
|
#18
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
try changing extension to = php_mysql.so
Edit = Sorry just remebered that is for windows.
|
|
|
|
07-12-2006, 08:54 AM
|
#19
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
OK, Lets get back to basics. First was php with your system or did you install yourself? Second if you did complie the program yourself how did you do it? What version are you using?
|
|
|
|
07-12-2006, 11:56 PM
|
#20
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i used yum to install both mysql and php, apache came pre installed when i ordered the VPS
php vesion 5
mysql version4 (would like it ot be 5 but yum doesnt have mysql 5)
im thinking abuot deleting apache php and mysql and installing it all by hand from a manual
is there a good place that would explain the how to for a complete beginner like myself? (i mean like almost line by line commands of every step)
|
|
|
|
07-13-2006, 08:42 AM
|
#21
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
To install Apache and PHP download apache2.0.53 and php5
Install for Apache
Code:
tar -zxvf httpd2.versionNumber
./configure --prefix=/usr/local \ --enable-mods-shared=most \ --enable-modules=all
make
make install
Install for php
Code:
./configure --with-mysql \ --with-apxs=/usr/local/apache2/bin/apxs
make
make install
edit the apache's conf file and make the following edits. Make sure that under LoadModule you have the following LoadModule php5_module libexec/libphp5.so. Also If you are being prompted to download you php scripts make sure the following is in apache. Under ClearModule list the following should be there AddModule mod_php5.c
Also add the following
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
edit the DirectoryIndex
DirectoryIndex index.php index.htm index.html default.php
check /usr/bin for apache2ctl if not there then issue the following command
Code:
ln -s /usr/local/apache2/bin/apache2ctl /usr/bin/apache2ctl
Tonight I will put the install instructions for mysql.
I really think you should compile them for your self. That way you will have a tighter control on where things are and how they are.
|
|
|
|
07-13-2006, 08:39 PM
|
#22
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
hey thanks i got apache and php installed now, just waiting for your next post :}
|
|
|
|
07-14-2006, 09:26 AM
|
#23
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
First did your installation go off with out any problems? Also can you post the information from the phpinfo().
|
|
|
|
07-14-2006, 09:46 AM
|
#24
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Just go here and download from the nearest mirror.
tar -zxvf mysql-version.tar.gz
Then just do the following.
Code:
./configure --prefix=/usr/local
make
make install
then su to root
Code:
mysql_install_db --user=mysql
Last edited by jstephens84; 07-14-2006 at 09:48 AM.
|
|
|
|
07-14-2006, 05:35 PM
|
#25
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i would prefer to use mysql 5 becasue on my development machine i use mysql 5
http://dev.mysql.com/downloads/mysql/5.0.html
but i dont know which download i need
|
|
|
|
07-14-2006, 06:12 PM
|
#26
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
http://dev.mysql.com/get/Downloads/M...r.gz/from/pick
Choose that one. Then use the same install instructions from other post. If it is a binary install then let me know.
|
|
|
|
07-14-2006, 07:25 PM
|
#27
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
i feel dumb becasue i did the apache and php without much of any problem
everytime i use the configure command it says not found but i did ls and i see configure right there
btw this is all in /home/mysql should i of done this in /usr/local?
|
|
|
|
07-14-2006, 09:04 PM
|
#28
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
Doesn't matter. are you doing ./configure
|
|
|
|
07-14-2006, 09:30 PM
|
#29
|
|
Member
Registered: May 2006
Distribution: CentOS 4.4
Posts: 185
Original Poster
Rep:
|
yes, the file is extracted
i type
cd /home/mysql
./configure
|
|
|
|
07-14-2006, 09:58 PM
|
#30
|
|
Senior Member
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,043
Rep:
|
does it say anything about being a binary installation.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|