I've been using apache/php4 for some time, and now I've set up a new server with a fresh apache2/php5.
With apache/php4 I used ex. index.php?id=2 and in the script:
Code:
<?
if ($id) {
echo 'Hi - its a nice day';
} else {
echo 'Bye - have a nice day';
}
?>
I can't get this working in apache2/php5. Is there an error in the syntax?
On apache2/php5 I'm using /etc/php5/apache2/php.ini and on apache/php4 I was using /etc/php4/cli/php.ini. Do I have to enable something in php.ini to get this working? Any modules I may need? This is my settings from /etc/apache2/sites-available/default:
Code:
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Thanks!