Hi,
Can you guys tell me how to fix the problem of configuring the httpd.conf on mac? Basically I used terminal to add those as followings:
hit Control + X and hit Y to save this , but it is still showing this without save the changes:Code:<IfModule mod_php4.c> # If php is turned on, we repsect .php and .phps files. LoadModule php4_module AddModule mod_php4.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps # Since most users will want index.php to work we # also automatically enable index.php <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> </IfModule>
It is missing: LoadModule php4_moduleCode:<IfModule mod_php4.c> # If php is turned on, we repsect .php and .phps files. AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps # Since most users will want index.php to work we # also automatically enable index.php <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> </IfModule>
AddModule mod_php4.c
That is why it is printingwhen I called it at:http://localhost/charlton/phpinfo.phpCode:<?php phpinfo(); ?>
Not sure why, can you please help me out of this problem? Much appreciated!





Bookmarks