Finished setting up MySQL and APACHE
Ok, i have already got RedHat9 installed and connected to the internet (DHCP through windows 2000)how to setup linux (Same for many but i used RedHat 9) to get internet access from a windows 2000 (windows2k) via ICS ( DHCP )
Now i had to setup APACHE 2 and MySQL on the new linux machene, Worked like a charm on the first time :)
All you have to do to start apache is run the command httpd (you will find a RUN area in the red hat or start here menu...)
Ok i am donw with apache, For my sql i have to build a table of database users and there privilages, you can do that by issuing the command mysql_install_db in terminal window...
When done it will remind you of a few things
First: Change your MySQL ROOT password
/usr/bin/mysqladmin -u root password 'new-password'
Since rot initially has no password you don't enter a password, The only thing you should change above is 'new-password with 'Your-Password', And leave the ' ' in place....
Then it tells you how to start the MySQL Daemon (The MySQL engine)
You can start the MySQL daemon with:
cd /usr ; /usr/bin/safe_mysqld &
All i had to do to run the command '/usr/bin/safe_mysqld' & after building the database of privilages (by running the command mysql_install_db)
Chmod everything in the mysql directory to 777
Ok, we have both PHP and MySQL Running, But we want them to run at boot time
So all we need to do is add those 2 lines to the file /etc/rc.d/rc.local , This file is the last file that your linux will run for initialization....
I found this line in there
touch /var/lock/subsys/local
And i added 2 more lines like this
----
httpd
/usr/bin/safe_mysqld
----
Now to see if it is working, I reboot and Yes, both APACHE and MySQL are running, PHP is already setup, php.ini and httpd.conf need some fixing, but i can do that later ! Everything is working fine
Ok, all is fine, APACHE working, PHP on apache is working, Now i need to import my files from the server
Ok, i found the application, Its a browser that uses SAMBA i think, I just clicked the red hat and it says NETWORK SERVERS, You open the browser and it gives you one icon (WORKGROUP) Thats the name of my network, i open that and i see the machenes on the network !!
I double click my Windows machene, Prompts for username and password, I enter same as my windows login, and ok i have everything i need, copy paste to the /var/www/html directory, I feel so at home with linux now, doing everything i needed
I will post all the applications i found out about (that are also free and i had to pay for back in windows, For example i have found a nice FTP client called gFTP that works like WS_FTP (allot better in my oppinion) and its free....
WOOOOOOHOOOOOOO
I have evetything ready for a new LINUX FREE BASED LIFE

1 Comments:
COME OOOOOONNNNNNN
Can I Help You.. Yes If you want to get on the web. If you want to start learning about creating a web site of your own.. go to http://webhost11.com. to find out more about corporate webhosting ... We can help find a web host for you.
Post a Comment
<< Home