When I run changePerm I get:
%./changePerm
find: illegal option -- n
find: illegal option -- a
find: illegal option -- m
find: illegal option -- e
find: illegal option -- t
find: illegal option -- y
find: illegal option -- p
find: illegal option -- e
find: d: No such file or directory
I decided to continue anyway and after I added the
tables to my database and proceed to home.php I get
this error:
Warning:
Unknown(/usr/www/users/username/wishlist/home.php):
failed to open stream: Permission denied in Unknown on
line 0
Warning: (null)(): Failed opening
'/usr/www/users/username/wishlist/home.php' for
inclusion (include_path='.:/usr/local/lib/php') in
Unknown on line 0
Any thoughts?
seanj@mordaga.com
FreeBSD 4.8-STABLE
Apache 1.3.29
MySQL 4.1.20
Logged In: YES
user_id=1550098
I'm not sure why the 'find' command failed. It could be
your version doesn't support the -name and -type switches
but that's unlikely. You might try adding a shebang at the
start of changePerm such as
#!/bin/sh
so that your shell knowns you are trying to run a script.
Anyway, since the two 'find' commands failed, the
permissions of the .htaccess files and subdirectories are
probably incorrect. The .htaccess file should be world
readable and the subfolders should be at least world
executable. Try changing the permissions and see if that
fixes the two warnings you received.
One last thought, if the 'chmod' in changePerm executed
successfully then your php files will not be world readable.
This is fine if you are running php as cgi's but if your
aren't then do
chmod -R a+rX *.php
to make the php files world readable/executable