The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Apache not recognizing php?
Author: ElanJeff 
Date:   24-08-00 03:08

I'm trying to add "phorum" to my web server. I've managed to get mysql installed and running right (I think!) and Apache 1.3.12 was running fine before, but without PHP3. I installed the package of PHP3 (not bothering to remove the old one) and it didn't recognize .php files correctly. Going into the appropriate phorum dir produced a list of all the files instead of running index.php, and clicking on a .php file showed it as text.
I went into the apache.conf file and found the "AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps" lines commented out, so I uncommented them. Now when I clicked on them, Netscape wants to download a file of type "application/x-httpd/php"...
After this, I removed both installs of Apache are re-installed just the PHP3 port. (This is the 3.0.15 one, not the 4.0b3 one.)
I can't seem to find anything anywhere with details on the Apache+PHP3 port. It's gotta work for some people, but I sure can't figure out what I'm doing wrong. Anyone got any ideas?

Thanks!


Reply To This Message
 
 RE: Apache not recognizing php?
Author: Dan Langille 
Date:   24-08-00 08:41

You didn't say what port you used. I use mod_php3. At the top of this page, click on topics, then apache, and look for DSO, near the bottom of the apache articles.

Reply To This Message
 
 RE: Apache not recognizing php?
Author: ElanJeff 
Date:   24-08-00 14:14

I misspoke - I used the package, not port. This is the Apache 1.3.12 + PHP 3.0.15 package, which supposedly has the mod built in? There is a an "AddModule mod_php3.c" in apache.conf, but no "LoadModule" that mentions php3. There is also no mod_*.so related to php in the libexec/apache directory.


Reply To This Message
 
 RE: Apache not recognizing php?
Author: Dan Langille 
Date:   24-08-00 21:52

Use the port.

Reply To This Message
 
 RE: Apache not recognizing php?
Author: ElanJeff 
Date:   25-08-00 06:12

I kind of figured I'd end of having to use the port. I also had to add "index.php" to the DocumentIndex (missed that step earlier) but the main problem wasn't fixed until I installed everything from the ports. A few conf tweaks later, my Phorum is up and running!


Reply To This Message
 
 RE: Apache not recognizing php?
Author: Dan Langille 
Date:   25-08-00 11:12

The ports are The Way To Go. Time and time again it is demonstrated, as in this example. that ports are better than packages.

That said, I do use packages for some things. But never where you need to configure things or where the ports interact with other ports. Basically, I use packages for bash, cvsup, and lynx when first installing FreeBSD on a box.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org