Linux - SoftwareThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed RH8 and like another post I saw, by default the PHP install does NOT include MySQL support. I try to use phpmyadmin and it tells me I don't have the mysql extensions installed. As this is the most rediculous thing I have seen yet on dealing with linux, I cannot get it to work on reinstall.
Steps I have taken:
Uninstalled the default PHP rpm from RH
downloaded the tar file from php.net
Followed the instructions on php.net of how to install, using --mysql support.
10. ./configure --with-mysql
11. make
12. make install
If you decide to change your configure options after installation
you only need to repeat the last three steps. You only need to
restart apache for the new module to take effect. A recompile of
Apache is not needed.
13. cp php.ini-dist /usr/local/lib/php.ini
You can edit your .ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.
14. Edit your httpd.conf or srm.conf file and check that these lines are
present and not commented out:
AddType application/x-httpd-php .php
LoadModule php4_module libexec/libphp4.so
After I get done, I add the lines to the httpd file that the PHP install instructions tell you to add....but I don't have the file they say I should have (libphp4.so). I have no idea what to do and frankly I'm getting sick of it. I have searched the system drive for that file and it doesn't even find it. I know it's my "inexperience" but this shouldn't be so f@#$ing hard to install. Sorry for the frustration, but shit like this should be a breeze to install and work with. I thought it had been around long enough so I wouldn't have to jump through hoops....I guess not.
I got it working finally. I found a src rpm on my redhat CD's and used that, it finally works. Why in the world would Redhat not use Mysql by default in the php install????
good question...I suppose for the same reasons they don't allow cgi files in the default cgi-bin directory to be executed without a recompile of suexec and apache.
*is beginning to think a BSD OS wouldn't be so bad, after all*
Personally I'd recommend not using the rpms and building php / mysql / apache from source. But that's just how I do it, everyone has their own preferences.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.