Hi all,
Briefly: I have php5 and Apache2 successfully installed however when I call my info.php from
http://localhost/apache2-default/info.php
it brings me a download window.
I believe I have successfully installed apache2 and php5:
Code:
linux-ultima:~# apt-get install apache2 php5 php5-common libapache2-mod-php5
Reading package lists... Done
Building dependency tree... Done
apache2 is already the newest version.
php5 is already the newest version.
php5-common is already the newest version.
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 208 not upgraded.
http://localhost/ displays the "It works" page
php5 is also fine
Code:
linux-ultima:~# php -v
PHP 5.2.0-8+etch3 (cli) (built: Apr 29 2007 10:42:07)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
However no php5 entry at httpd.conf
Code:
linux-ultima:~# grep -R "php" /usr/share/apache/default-configs/apache/httpd.conf
DirectoryIndex index.html index.htm index.shtml index.cgi index.php
# distribution - see http://www.php.net) will typically use:
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps
I removed the # sign from AddType application/x-httpd-php line and restart the server via /etc/init.d/apache2 restart command but nothing changed.
My httpd.conf under etc is empty
Code:
linux-ultima:~# cat /etc/apache2/httpd.conf
linux-ultima:~#
But I have the desired module
Code:
linux-ultima:~# grep -R "php5" /etc/apache2/mods-available/
/etc/apache2/mods-available/php5.conf:<IfModule mod_php5.c>
/etc/apache2/mods-available/php5.load:LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
linux-ultima:~#
But it is not enabled I think
Code:
linux-ultima:~# grep -R "php5" /etc/apache2/mods-enabled/
linux-ultima:~#
What should I do?