Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL on Red Hat Linux 7.2 server

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I actually have two questions.
1. Have any of you had trouble signing in to tek-tips, because I have been unable to get in for some reason. What should I do. I sent this in as an unregistered user.

2. I am trying to get some school credits. The project is to create a service request form on the web and have php get the information and input it into a MySQL database. I am ashamed to inform you all that I have very little Unix/Linux experince as I have been thrown into Microsoft for most of my life (not something to be proud of). In any case I need to get the MySQL application running on the server so that I can create the database and tables. The problem is that a) I am unsure as to how to run MySQL and the database manager (GUI?), b) the way I tried gave me an error saying that it can't connect to the server which I don't understand, since I am running it from the server. Can someone help me figure this out, thank you
 
Download and install webmin. It has an easy to use interface for mysql
 
Hi,

Firstly, to use php implies using the apache web server so you would install that first unless you already have it (rpm -q apache). Then you need to add php and mysql :

Practically speaking, you need to grab the following rpms :

ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/apache-1.3.20-16.i386.rpm
ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/mysql-3.23.41-1.i386.rpm
ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/mysql-server-3.23.41-1.i386.rpm
ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/mysqlclient9-3.23.22-6.i386.rpm

and also

ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/php-4.0.6-7.i386.rpm
ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/php-mysql-4.0.6-7.i386.rpm

Download that lot into a temporary directory the install as root with :

# rpm -Uvh *.rpm

I believe the redhat startup script does not automatically set mysql as active so you have to do as root :

# /sbin/chkconfig --level 345 mysql on

You can start apache & mysql manually without rebooting :

# /etc/rc.d/init.d/httpd restart
# /etc/rc.d/init.d/mysql restart

Then follow the instructions at .

For php, you have to edit your /etc/httpd/conf/httpd.conf file (apache config file) and add :

LoadModule php4_module modules/libphp4.so

AddModule mod_php4.c

AddType application/x-httpd-php .php .php4


Then create a file called phpinfo.php in directory /var/ :

<!- PHPinfo.php -->
<html>
<?php
phpinfo();
?>
</body>
</html>


And test it with and
Well ... that should get you started anyway.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top