[snipped]
>
> Finally, I hit a brick wall. See for yourself!
>
>
http://gypsy.is-a-geek.com/calendar
>
> In case you don't want to link there:
>
> >
> >WebCalendar Error
> >
> >
> >You must reconfigure your php.ini file to have magic_quotes_gpc set to ON.
> >
>
> Why is this a brick wall, you ask? Well, after taking another hour to
> find out that my php.ini file is hidden, I DID change the setting. It
> still gives me the same error. Even after clearing the history.
>
> I will do anything for anyone that can make this work. Seriously. It
> has become my Everest, and I'm not ashamed to ask for help. The .ini
> file is too long to post here, but I'll e-mail it happily.
>
> PLEASE help me fix this.
>
> If it helps, I'm using OS X. Using the built-in Apache 1.3 server and PHP 5.
>
> (The rest looks nice, so far:
http://gypsy.is-a-geek.com ).
>
Michael,
Don't give up - you're doing great so far. I've been using and
running Apache servers for a few years now, and I still get caught out
with PHP settings.
The clue is in the error message. The WebCalendar system
administrators guide at
http://cvs.sourceforge.net/viewcvs.py/*checkout*/webcalendar/webcalendar/docs/WebCalendar-SysAdmin.html?rev=HEAD&content-type=text/html
has this tip near the beginning:
" If you are using Apache as your web server and if you cannot or do
not want to enable magic_quotes_gpc for your entire site, you can
enable it just for WebCalendar. Create a .htaccess file in the
toplevel WebCalendar directory that contains a single line:
php_value magic_quotes_gpc 1
(For this to work with Apache, you must have the Apache AllowOverride
All directive enabled for the directory where WebCalendar is
installed. Additionally, PHP must be running as an Apache module, not
a CGI.)"
The only thing that I will add to this is to make sure that the user
that runs the web server can access the ".htaccess" file. (This user
defaults to "apache", or "nobody", or "http", or "www-data", or
something along these lines on Linux servers.)
I'm not familiar with Apache on MacOS, but I'll take a guess that PHP
is running as a module, so this should work.
You didn't mention if you'd dipped your toes into the pleasure that is
the Apache configuration file yet, but that's where you need to go to
check whether the "AllowOverride all" setting has been configured.
Once you are sure that "AllowOverride" is set, and that the web server
user can access the ".htaccess" file, restart Apache to make sure that
the changes have taken effect. This is the real important piece.
I've got a couple of PHP based web apps running, and I've noticed that
Apache seems to cache the ".htaccess" settings. Also, if you change
any of the PHP files (for configuration setting changes for example)
then I would recommend you restart Apache following any changes as
Apache seems to cache some of the PHP. (Though maybe that's just me
being too impatient after I make changes.)
Just want to end off with a thanks for pointing out the k5n site -
I've been looking for a decent web based calendar to install at work
for some of my colleagues to use, and this looks perfect.
Stick with it, and don't hesitate to drop me a note either via the
list or directly if you're still having problems.
--
Andy