Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-08-2003, 05:05 PM   #1
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
Apache and php4 question

I just installed Apache and PHP4 by installing the debian packages:

apt-get install apache php4

After install I uncommented the following lines in httpd.conf

LoadModule php4_module /usr/lib/apache/1.3/

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

*.html files are now available at the localhost, *.php not yet.
When I test php support using the following test.php:

<?php phpinfo(); ?>

I get:

Warning: Failed opening '/var/www/test.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0

What did I forget during install.

Old 10-09-2003, 07:24 AM   #2
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Original Poster
Rep: Reputation: 15
chmod 755 test.php solves this problem.

Sorry, topic can be closed.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache can't load baosheng Linux - Software 1 10-10-2005 08:13 PM
Apache not parsing PHP4 paco36 Linux - Software 12 07-17-2005 12:40 PM
Apache with php4 question Kevnathan Linux - Software 2 03-08-2005 08:13 AM
PHP4, Apache, and OpenLDAP? Doomhammer13 Linux - Software 2 09-04-2004 08:19 PM
PHP4 + apache very slow MurrayL Linux - Software 1 04-23-2004 10:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration