Question after php5

This is a discussion on Question after php5 within the PHP General forums, part of the PHP Programming Forums category; Hi everyone, I decided I would spend the extra time and install separate copies of apache and php5. All went ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-23-2007
Jake McHenry
 
Posts: n/a
Default Question after php5

Hi everyone,

I decided I would spend the extra time and install separate copies of apache
and php5. All went successfully, I thought. Apache starts and runs on 8080,
I get pages. But not php pages. I added a php.conf file which is included in
httpd.conf, I just copied the layout of the rest of the include statements
and below is my php.conf file in the conf/extra directory.... What did I
miss? I'm just trying to echo out hello world, and I get a blank page. In
the logs, I'm getting a 304..?



#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php5_module modules/libphp5.so

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php



Thanks,
Jake

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007
7:44 AM

Reply With Quote
  #2 (permalink)  
Old 03-23-2007
Jake McHenry
 
Posts: n/a
Default RE: [PHP] Question after php5

In my index.php file, I have this:


<?php
echo "PHP hello world";
?>

HTML Hello World


I get the HTML Hello World output, but not the php? So the
conf/extra/php.conf file is somewhat being included, but I'm not getting any
output.... And now there is a 200 entry in the log file. So with just php,
I get a 304, with html I get a 200, with both I get a 200 but no php
output..... What did I miss???

Thanks,
Jake



>
> Hi everyone,
>
> I decided I would spend the extra time and install separate
> copies of apache
> and php5. All went successfully, I thought. Apache starts and
> runs on 8080,
> I get pages. But not php pages. I added a php.conf file which
> is included in
> httpd.conf, I just copied the layout of the rest of the
> include statements
> and below is my php.conf file in the conf/extra directory....
> What did I
> miss? I'm just trying to echo out hello world, and I get a
> blank page. In
> the logs, I'm getting a 304..?
>
>
>
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
>
> LoadModule php5_module modules/libphp5.so
>
> #
> # Cause the PHP interpreter to handle files with a .php extension.
> #
> AddType application/x-httpd-php .php
> # AddType application/x-httpd-php-source .phps
>
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
>
>
>
> Thanks,
> Jake
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> Date: 3/22/2007
> 7:44 AM
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> Date: 3/22/2007 7:44 AM
>
>


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007
7:44 AM

Reply With Quote
  #3 (permalink)  
Old 03-23-2007
Jake McHenry
 
Posts: n/a
Default RE: [PHP] Question after php5 SOLVED... For now

I got it working... During the php install, it modified httpd.conf with
this: LoadModule php5_module modules/libphp5.so ...... And I moved
that to my php.conf as it was in apache2 with php4, but it doesn't work in
the newest version of apache that I downloaded.. They must have changed it
so that the module must be loaded before something else in httpd.conf
instead of calling it from an external config file......

Ok.. Now off to testing my scripts to see if they'll work under php5......


Jake





> -----Original Message-----
> From: Jake McHenry [mailto:linux@nittanytravel.com]
> Sent: Thursday, March 22, 2007 10:43 PM
> To: php-general@lists.php.net
> Cc: jochem@iamjochem.com
> Subject: RE: [php] Question after php5
>
> In my index.php file, I have this:
>
>
> <?php
> echo "PHP hello world";
> ?>
>
> HTML Hello World
>
>
> I get the HTML Hello World output, but not the php? So the
> conf/extra/php.conf file is somewhat being included, but I'm
> not getting any
> output.... And now there is a 200 entry in the log file. So
> with just php,
> I get a 304, with html I get a 200, with both I get a 200 but no php
> output..... What did I miss???
>
> Thanks,
> Jake
>
>
>
> >
> > Hi everyone,
> >
> > I decided I would spend the extra time and install separate
> > copies of apache
> > and php5. All went successfully, I thought. Apache starts and
> > runs on 8080,
> > I get pages. But not php pages. I added a php.conf file which
> > is included in
> > httpd.conf, I just copied the layout of the rest of the
> > include statements
> > and below is my php.conf file in the conf/extra directory....
> > What did I
> > miss? I'm just trying to echo out hello world, and I get a
> > blank page. In
> > the logs, I'm getting a 304..?
> >
> >
> >
> > #
> > # PHP is an HTML-embedded scripting language which attempts

> to make it
> > # easy for developers to write dynamically generated webpages.
> > #
> >
> > LoadModule php5_module modules/libphp5.so
> >
> > #
> > # Cause the PHP interpreter to handle files with a .php extension.
> > #
> > AddType application/x-httpd-php .php
> > # AddType application/x-httpd-php-source .phps
> >
> > #
> > # Add index.php to the list of files that will be served as

> directory
> > # indexes.
> > #
> > DirectoryIndex index.php
> >
> >
> >
> > Thanks,
> > Jake
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> > Date: 3/22/2007
> > 7:44 AM
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> > Date: 3/22/2007 7:44 AM
> >
> >

>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> Date: 3/22/2007
> 7:44 AM
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/730 - Release
> Date: 3/22/2007 7:44 AM
>
>


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 3/22/2007
7:44 AM

Reply With Quote
  #4 (permalink)  
Old 03-23-2007
Jochem Maas
 
Posts: n/a
Default Re: Question after php5

Jake McHenry wrote:
> Hi everyone,
>
> I decided I would spend the extra time and install separate copies of apache
> and php5. All went successfully, I thought. Apache starts and runs on 8080,
> I get pages. But not php pages. I added a php.conf file which is included in
> httpd.conf, I just copied the layout of the rest of the include statements
> and below is my php.conf file in the conf/extra directory.... What did I
> miss? I'm just trying to echo out hello world, and I get a blank page. In
> the logs, I'm getting a 304..?


questions:

this is just the second apache install that is not running php(5)?
but the primary install with php4 is ok?
does the second apache server html files?
have you checked the second apache's error log?
does libphp5.so exist (in the modules directory of the second apache)?

the snippet of your config file looks okay.
>
>
>
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
>
> LoadModule php5_module modules/libphp5.so
>
> #
> # Cause the PHP interpreter to handle files with a .php extension.
> #
> AddType application/x-httpd-php .php
> # AddType application/x-httpd-php-source .phps
>
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
>
>
>
> Thanks,
> Jake
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0