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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 > |