Re: PHP 4.1.1 w/ Apache 2.0.28 ... not being loaded, but

From: Date: Wed, 02 Jan 2002 23:30:52 +0000
Subject: Re: PHP 4.1.1 w/ Apache 2.0.28 ... not being loaded, but
Groups: php.install 
Request: Send a blank email to php-install+get-5423@lists.php.net to get a copy of this message
> > as a quick follow up, I installed lsof, and it appears that php4 is being loaded, > but if I hit a simple 'phpinfo.php' page, it asks me to download it ... so, for > some reason, its not registering application/x-httpd-php as a valid type? > > On Wed, 2 Jan 2002, Marc G. Fournier wrote: > >> >> Hi >> >> After spending the past little while fighting with getting it to install >> under Apache2, I can't for the life of me get it to actually load. >> >> I'm installing it using FreeBSD Ports ... Apache2's port, the only change >> I've made, is to add -lc_r to get rid of an error dealing with pthread's that >> PHP4 throws up ... once I get Apache2 fixed for that, it starts, but, as shown >> below, its not being loaded: >> >> [Wed Jan 02 19:46:36 2002] [notice] Apache/2.0.28 (Unix) mod_ssl/3.0a0 >> OpenSSL/0.9.6 DAV/2 configured -- resuming normal operations >> >> Under the mod_php4 port, I changed --with-apxs to --with-apxs2 and go rid >> of the --with-system-regex flag ... compile appears clean ... >> >> In my httpd.conf file, I have everything defined/enabled taht I'm aware of: >> >> LoadModule php4_module libexec/apache/libphp4.so >> AddType application/x-httpd-php .php .php3 You *almost* did it correctly. Try adding the following to your httpd.conf file: # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.php default.html default.htm </IfModule> # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # For example, the PHP 3.x module (not part of the Apache distribution - see # http://www.php.net) will typically use: # AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps # # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps If all of the above are present in your httpd.conf file, you should have NO trouble loading .php* files in your browser/ from your server. Njoy, Chris out... >> >> And DSO support is enabled: >> >> Compiled in modules: >> core.c >> prefork.c >> http_core.c >> mod_so.c >> >> So I'm figuring that I'm missing something totally obvious here? :( >> >> Thanks ... >> >> >> >> >> -- >> PHP Install Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net >> For additional commands, e-mail: php-install-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >> > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Chris out... _________ __________ __________ _____________ / _____/\ / ____ \ / ______/\ /____ ____/\ / /\____\/ / /\_ / /\ / / \____\/ \___/ /\___\/ / /_/__ / /_/_/ / / / /__/_ / / / / _____/\ / ____ / / \_____ \ / / / / /\____\/ / /\_ / / / \____\ /\ / / / / / / / / / / / / _________/ / / / / / /___/ / /___/ / /___/ / /___________/ / /___/ / \___\/ \___\/ \___\/ \___________\/ \___\/.dnswatch.com .. ............................................ This email was sent using DNSWATCH WebMail. "Get YOUR account today!" http://www.dnswatch.com/dnswm112/

« previous php.install (#5423) next »