LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-07-2004, 09:18 AM   #1
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Rep: Reputation: 30
Am I missing something? PHP, MySQL, Apache


OK,

Fedora core 1
Apache 1.3
PHP 4.3.7
MySql (I don't know what version what ever came with Fedora)


Apache is working
MySql is working
PHP is installed but do i have to start it?

when i try to add a MySQL connection is Dreamweaver MX i get an error message stating
1. "There is no testing server running on the machine"
2. "the testing server specified for this site does not map to http://***/apache/_mmserverscripts/MMHTTPDB.php url. Verifie that the URl prefix maps to the root of the site"

Any ideas, What am i missing?
 
Old 06-07-2004, 09:41 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. You can see whether or not PHP is installed by typing in and executing the following script:
Code:
<?php
  phpinfo ();
 ?>
You should see lots of information about your Apache and your PHP versions displayed in your browser.

2. Next, I'd verified that I could connect to mySQL from the command line (i.e. you can talk to your database and query tables with the "mysql" command interpreter).

3. Finally, I'd suggest writing a brief "hello world" to verify that your PHP can talk to mySQL. I have a sample here:

http://home.jps.net/~paulsm/proj/hello_sql/hello_pg.php

Hope that helps .. PSM
 
Old 06-07-2004, 01:50 PM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Dreamweaver? You wan't to connect from a different Windows box? Then you have to open your mysql port.
 
Old 06-07-2004, 02:07 PM   #4
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
How do i do that. I would assume in one of the configuration files. Do you know which one? I was able to connect through ODBC

Last edited by agallant; 06-07-2004 at 02:10 PM.
 
Old 06-07-2004, 02:15 PM   #5
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
You connected through ODBC? Then it is some problem in Dreamweaver perhaps.
 
Old 06-07-2004, 02:22 PM   #6
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
It keeps asling me to setup my test site, i do but it does not. I got annoyed enough to rebuild the server.
 
Old 06-08-2004, 07:32 AM   #7
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by paulsm4
Hi -

1. You can see whether or not PHP is installed by typing in and executing the following script:
Code:
<?php
  phpinfo ();
 ?>
I tried your test and i got just a blank web page, no error message, just a blank page. Is that good or bad? I also rebuilt the server and on the good side IE6 is not trying to download php files any more, it will display them now.
 
Old 06-08-2004, 07:35 AM   #8
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
in IE6 you have to delete cache files so it will stop asking you to set up your test page. Caching in IE6 is very anoying. Sometimes, even if you press SHIFT + F5 it won't refresh the site, it just uses the one from cache.
 
Old 06-08-2004, 08:37 AM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
That's bad. It means PHP is not configured on your server.

Your best bet is to "google" for a tutorial on installing PHP.

The problem can be any of:

1. PHP isn't installed
2. The PHP DSO isn't installed where Apache can find it.
3. The Apache httpd.conf file isn't configured for PHP.

As far as httpd.conf, you need the following entries:
EXAMPLE:
Code:
LoadModule vhost_alias_module libexec...
 LoadModule...
 LoadModule php4_module libexec/libphp4.so

 ClearModuleList
 AddModule mod_vhost_alias.c
 AddModule...
 AddModule mod_php4.c
...
 AddType application/x-httpd-php .php .php3 .phtml
 AddType application/x-httpd-php-source .phps
...
'Hope that helps .. PSM
 
Old 06-08-2004, 09:03 AM   #10
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
Ok this is diving me crazy. I am trying to reinstall php4. ./configure --with-mysql=/????????

Where are the libbrerys? i have a mysql folder in:
/usr/share
/usr/lib
/var/lib


Which one do i use. I am running Fedora and installed mysql off of the fedora cd.
 
Old 06-08-2004, 09:05 AM   #11
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
why didn't you install apache from the fedora cd also? You stil can install from a RPM from fedora cd
 
Old 06-08-2004, 09:08 AM   #12
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
I don't know. i just downloaded apache and installed it. I don't like where fedora puts files if you install from the cd.
 
Old 06-08-2004, 10:49 AM   #13
agallant
Member
 
Registered: Oct 2003
Location: D.C USA
Distribution: Redhat 9. Thinking about Slackware
Posts: 166

Original Poster
Rep: Reputation: 30
Thank you guys so much for all of your help. It magicailly started working when I installed Apache2. I had to of cource do a make clean on the php and reinstall it to work with apache2 but it works i got my configuration page when i ran the <? phpinfo() ?> script.

-AG
 
Old 06-08-2004, 10:57 AM   #14
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Nice
 
  


Reply



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 linuxtm2005 Red Hat 1 12-29-2003 12:07 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Apache+Mysql+php tarballedtux Linux - Software 1 06-02-2003 07:50 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM
Apache / PHP - OK, what setting am I missing? bkeating Linux - Software 1 12-10-2002 03:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:16 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
Open Source Consulting | Domain Registration