Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Tue Sep 02, 2003 1:20 pm Post subject: .HTACCESS
I can never get the GALLERY setup wizard to recognise .htaccess. Any ideas why not, cause I would like to use mod_rewrite.
I have tried amending httpd.conf - no joy
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.4
Apache version: 1
PHP version (don't just say PHP 4, please): 4.3.2
Graphics Toolkit: ImageMagick
Operating system: OSX (Darwin/unix)
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s): _________________ "The only difference between me and a madman is that I'm not mad."
i never, ever create a blank htaccess file when installing/upgrading apache.
it might be a server config deal. do you run your own, or are you hosted? _________________
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Tue Sep 02, 2003 1:31 pm Post subject:
Own server. I also don't create or use .htaccess (I have to delete them) with gallery - however i do use .htaccess and .htpasswd - so the server does obey the files. _________________ "The only difference between me and a madman is that I'm not mad."
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Tue Sep 02, 2003 1:37 pm Post subject:
hmmm..who is the owner of the htaccess file? what are it's permissions?
i've never gotten it to use "friendly" URLS when inside of Nuke (since nuke needs all of it's module.php crap in the address...the Google tap from NukeCops takes care of that, though), however, when in standalone, it can show short URLs just fine.
do you have mod_rewrite installed/loaded in your apache.conf file?
also, check for this in your commonapache.conf file:
Code: › #
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess
make sure it's not commented out _________________
Not sure about commonapache.conf - haven't got that on my OS X server!
_________________ "The only difference between me and a madman is that I'm not mad."
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Tue Sep 02, 2003 1:56 pm Post subject:
hmm...most apache configurations have 2 conf files, one is httpd/apache.conf and the other is common/commonapache/apachecommon/commonhttpd/httpdcommon.conf (or something along those lines). just do this from your apache config directory:
grep -HR AccessFileName *
and see what file(s) it kicks back. _________________
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Tue Sep 02, 2003 3:07 pm Post subject:
That doesn't work for me:
Help file (grep --help) contains this:
Usage: grep [OPTION]... PATTERN [FILE] ...
Search for PATTERN in each FILE or standard input.
Example: grep -i 'hello world' menu.h main.c
Regexp selection and interpretation:
-E, --extended-regexp PATTERN is an extended regular expression
-F, --fixed-strings PATTERN is a set of newline-separated strings
-G, --basic-regexp PATTERN is a basic regular expression
-e, --regexp=PATTERN use PATTERN as a regular expression
-f, --file=FILE obtain PATTERN from FILE
-i, --ignore-case ignore case distinctions
-w, --word-regexp force PATTERN to match only whole words
-x, --line-regexp force PATTERN to match only whole lines
-z, --null-data a data line ends in 0 byte, not newline
Miscellaneous:
-s, --no-messages suppress error messages
-v, --invert-match select non-matching lines
-V, --version print version information and exit
--help display this help and exit
--mmap use memory-mapped input if possible
Output control:
-b, --byte-offset print the byte offset with output lines
-n, --line-number print line number with output lines
-H, --with-filename print the filename for each match
-h, --no-filename suppress the prefixing filename on output
-q, --quiet, --silent suppress all normal output
--binary-files=TYPE assume that binary files are TYPE
TYPE is 'binary', 'text', or 'without-match'.
-a, --text equivalent to --binary-files=text
-I equivalent to --binary-files=without-match
-d, --directories=ACTION how to handle directories
ACTION is 'read', 'recurse', or 'skip'.
-r, --recursive equivalent to --directories=recurse.
-L, --files-without-match only print FILE names containing no match
-l, --files-with-matches only print FILE names containing matches
-c, --count only print a count of matching lines per FILE
-Z, --null print 0 byte after FILE name
Context control:
-B, --before-context=NUM print NUM lines of leading context
-A, --after-context=NUM print NUM lines of trailing context
-C, --context[=NUM] print NUM (default 2) lines of output context
unless overridden by -A or -B
-NUM same as --context=NUM
-U, --binary do not strip CR characters at EOL (MSDOS)
-u, --unix-byte-offsets report offsets as if CRs were not there (MSDOS)
`egrep' means `grep -E'. `fgrep' means `grep -F'.
With no FILE, or when FILE is -, read standard input. If less than
two FILEs given, assume -h. Exit status is 0 if match, 1 if no match,
and 2 if trouble. _________________ "The only difference between me and a madman is that I'm not mad."
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Tue Sep 02, 2003 3:19 pm Post subject:
Yep that worked - however:
Binary file Desktop/webserver stuff/Apache-2.0.40-Jaguar.tar matches
Desktop/webserver stuff/Apache2/Changes: *) The AccessFileName directive can now take more than one filename.
grep: Library/Preferences/com.apple.NetInfoManager.plist: Permission denied
Top fine refers to a downloaded ver of Apache 2 sitting on the server desktop _________________ "The only difference between me and a madman is that I'm not mad."
this doesn't quite match your description in your first post, especially the PHP version number and the OS/version. is Darwin based on RedHat (i'm not a Mac user, so please forgive me if that's a dumb question)? _________________
That sits on a PRODUCTION server - I'm having problems with my DEVELOPMENT server which is OSX!
Try the URL I gave you during the development of this sites theme. I will PM if you can't remember - let me know. _________________ "The only difference between me and a madman is that I'm not mad."
I use a AUTO dns updater - which I guess has just screwed my details! _________________ "The only difference between me and a madman is that I'm not mad."
Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Wed Sep 03, 2003 8:46 am Post subject:
As shipped from APPLE. Although I have attempted to install Apache 2 (failed miserably). Other modules, PHP, MySQL, etc from http://www.entropy.ch/software/macosx/welcome.html _________________ "The only difference between me and a madman is that I'm not mad."
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum