PowerMacX said:Any ideas?
Thanks!
Do you have a line such as: AddType application/x-httpd-php .php
PowerMacX said:Yes, I suspect that there may be a problem with directory permissions or something like that, still, no idea![]()
oRiCN said:Directory perms shouldn't cause source to show.. This is a silly question but you have restarted apache haven't you?![]()
It's always the simple things you over look![]()
I'm assuming you're running the version of php that comes with Panther? If I'm right, you might want to install a a better and more feature-rich version.
For starters, you get more modules as part of the standard package, and in true mac style, it's a double-clickable installer.
What more could a php fiend want?..
btoth said:In /etc/httpd/httpd.conf you uncommented these lines?
LoadModule php4_module libexec/httpd/libphp4.so
AddModule mod_php4.c
If so, you probably also need to add script executing permissions to your user directory. Try adding an "Options All" to your directory and see if that works.
PowerMacX said:I didn't know that Marc already had a Panther version up! Thanks!
but just in case I put a .htaccess into the one directory that I'm going to be executing php files from:<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>
I don't know what that last line means, but it comes with a package that I'm trying to get working, but it isnt.DirectoryIndex index index.html index.php
AddType application/x-httpd-php .php .html .htm
DefaultType application/x-httpd-php
php_value auto_prepend_file /refer.php
Anyone see anything wrong with my config? I can't figure this out, and am working with a mostly standard httpd.conf.<script language="php">
phpinfo();
</script>
mr. k said:I seem to have figured out the problem, and it's just a safari caching issue. I guess I could go and delete my safari cache, but the php works just fine in mozilla. I've been having some trouble with safari caching things funny and having to force reloads of pages, it's getting annoying.