Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
how do i configure my mySQL working from accessing PHP
i configure all the packages from installations select them individual and i have change the password for the mySQL but eventually i still cant access my database i even put it in startup so that it will start the program upon boot up...
so is there anybody can help me how to configure it..
my friend told me to configure it individual like install the packages from tar.gz
like install the mySQL first then apache and php...
but is there any other way so that i might not going to uninstall all the packages i installed from installation of linux..
First download Apache 1.3.27.tar.gz. Then do a ./confiugre --prefix=/web/apache --enable-shared=max; make; make install
Then download PHP. Confiugre it with ./configure --with-apxs=/web/apache/bin/apxs --enable-ftp; make; make install. Add in httpd.conf this lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
Install MySQL with ./configure --prefix=/web/mysql --with-innodb; make; make install (my take a while). Copy from your MySQL Source Directory/support-Files the my-small.cnf in /etc/my.cnf
Then type:
chown -R root /web/myswl
chown -R mysql /web/mysql/var
chrp -R deamon /web/mysql
Start MySQL with /web/mysql/bin/safe_mysqld --user=mysql &
Test it with /web/mysql/bin/mysqladmin -p ping
You can pick other install directories for Apache etc. This is one example you can do it.
Hope this help!
Greetings
Last edited by Donald1000; 01-20-2003 at 11:28 AM.
but i already installed my apache, php and mysql from package upon installing the linux rh8 so what im just asking is if there a way i can configure my apache and php to access my mySQL database... can i still recompile the installed apache/php? coz i installed it as RPM from the installation..
what u saying is that i have to uninstall the package from my previous installtion and re install the new downloaded files.
Well you are going to have to write a php script to access info from your database, right? What are you trying to do? If you already have some web apps or scripts for talking to MySql just use them, it should work fine.
If you need to make accounts and create DB's and tables then consult the MySql docs at www.mysql.com or else there are thousands of tutorials out there. Just serch for php + mysql...
I want to say, that when you've installed the stuff like discribed above, and create a DB in MySQL, like bulliver sais, there will be no Problem to access your Database.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.