LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-24-2003, 01:51 PM   #1
triki
Member
 
Registered: Sep 2003
Posts: 32

Rep: Reputation: 15
Malgamating PHP, MySQL and Apache.


I just installed RH 9 i supposedly installed all 3.

How can i make sure that everything is working together as one ?

Thanks

triki
 
Old 11-24-2003, 02:07 PM   #2
Moebius01
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Complete newbie here, but I just did much of this yesterday, so here's what I did...

Test each individually first if you haven't already. :
Point a browser to http://localhost and see if the Apache page comes up.
Next try running mysql from a console. If you haven't configured it yet, mysql -u root should let you in. If that works mysql is up and running.
Finally, build a quick PHP page and place it in the html directory (on my mandrake build I think it's /var/www/html) and call it. If that works, you have Apache and PHP happy. Then just modify the PHP to query the MySQL db and put it to page.

Much of that assumes you're familiar with PHP and MySQL. If not, you can get some help on how to build a quick PHP script and a database to query with it.
 
Old 11-24-2003, 02:18 PM   #3
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
that will work IFF (thats 'if and only if', its a real word, google it) all the configs are properly done. Try doing what Moebius01 suggests, if it does not work you are screwed. The easy alternative is this: google 'xampp', its a pre-configured package of php, apache and mysql. It should remove much of your headache on dealing with configuration.
 
Old 11-24-2003, 02:25 PM   #4
Moebius01
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Good point. I'm going on the assumption the RH would do a good job of configuring. Mandrake actually had everything set up perfect for me on the first try.

My problem now is learning how the heck all the permissions and such work so I can create an FTP account to upload pages from my dev box to the Linux box for testing.
 
Old 11-24-2003, 02:36 PM   #5
Mikhail_16
Member
 
Registered: Oct 2003
Distribution: Gentoo rules them all
Posts: 279

Rep: Reputation: 31
Create a directory in webroot and give it full access:

'chmod a+rwx [dir]'
now if you go to http://[your machine]/dir you will be able to see it.
Potentially (i did not try it though) you should be able to copy files there, just by doing copy and paste. Its not the best or secure method, but it just might work, if you are not worried about security.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache _ php +mysql rmocius@auste.e Slackware 0 03-02-2004 10:49 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
Apache+Mysql+php c0c0deuz Linux - Software 0 08-14-2003 03:14 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM
PHP, MySQL and Apache miker Linux - Newbie 1 03-27-2002 02:29 PM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration