Re: New Web Server



Clark, Ronald wrote:
A<blank>ddType = typo on my part. Sorry. In the conf file it is
"AddModule mod_php5.c". I have added the LoadModule as well and get a
similar error message. So I try to look for the files themselves like
this: #find / -name mod_php5.c

It finds nothing. Same results with looking for libphp5.so. Is there an
issue with the install or did I miss a step? Is there a recipe for
setting up a server, something like "FreeBSD-Apache-Mysql-PHP for
dummies"?

RC


-----Original Message-----
From: Javier Henderson [mailto:javier@xxxxxxxx]
Sent: Thursday, August 10, 2006 11:38 AM
To: Clark, Ronald
Cc: rsclark@xxxxxxxxxxxxxxxxx; freebsd-questions@xxxxxxxxxxx
Subject: Re: New Web Server

The text you cut-n-pasted has A<blank>ddType, is that how it appears on
the httpd.conf file?

Did you restart Apache after changing httpd.conf? (apparently you have,
since it picked up the index.php change).

You may need to add a LoadModule as well.

-jav

On Aug 10, 2006, at 12:26 PM, Clark, Ronald wrote:

Ok, I just tried that, and it wants to open index.php with a text
editor. It is acting like Apache does not know how to handle a *.php
file.

In my httpd conf, http://www.php.net says to add LoadMudule and
AddMudule statements. Are those still needed?

RC

-----Original Message-----
From: Javier Henderson [mailto:javier@xxxxxxxx]
Sent: Thursday, August 10, 2006 11:27 AM
To: rsclark@xxxxxxxxxxxxxxxxx
Cc: freebsd-questions@xxxxxxxxxxx; Clark, Ronald
Subject: Re: New Web Server


On Aug 10, 2006, at 12:20 PM, Ron Clark wrote:

Hello all,


I am building a new web server , and have gotten Mysql, Apache and
PHP (php5-extensions) loaded from the p orts. However, Apache is
not
picking up my index.php file. Is there a step somewhere that I
have
missed? I have added

A ddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps


to the httpd.conf f ile, still no luck.
Does it work if you append /index.php to the URL?

If so, add index.php to your DirectoryIndex stanza.

-jav

______________________________________________________________________
__________

This email is intended only for the use by the party to which it is
addressed and may contain information that is privileged,
confidential, or protected by law. If you are not the intended
recipient, you are hereby notified that any dissemination, copying or
distribution of this email or its contents is strictly prohibited. If
you have received this message in error, please notify the sender
immediately by replying to the message and deleting it from your
computer.
________________________________________________________________________________

This email is intended only for the use by the party to which it is addressed
and may contain information that is privileged, confidential, or protected by
law. If you are not the intended recipient, you are hereby notified that any
dissemination, copying or distribution of this email or its contents is strictly
prohibited. If you have received this message in error, please notify the sender
immediately by replying to the message and deleting it from your computer.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



In your original post you say you installed PHP (php5-extensions). Did
you actually install PHP5 or just the extensions?

PHP5 is at /usr/ports/lang/php5 and the extensions are at
/usr/ports/lang/php5-extensions. I'm not sure if compiling the later
will install the actual PHP5 port or not...

In my tutorial
(http://www.averageadmins.com/2006/04/10/famp-freebsd-apache-mysql-and-php)
I installed PHP5 then the extensions and it worked fine.

Jeff Cross
http://www.averageadmins.com/

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"