View Full Version : Htaccessfile or Httpd.conf solution in under 1 minute?

01-26-2011, 02:57 PM
Enviroment: Vista Home Premium being use as a development server.
xampp ver 1.7.3

Xammp is running fine since hello world and demo runs. I see the calendar running as an end user for I can look at upcoming, day, week, month. But if I click on the update button, I get url message and I also mention the url if that might help in your investigation. Have a feeling it is related to a simple usage setting and appreciate your help to see if u see anything fishy in under 1 minute. :) Oh, to find the relevant file to be solve in under 1 minude I included smiltey faces.

http://localhost/calendar/update.php in firefox and I get

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about
the error.

If you think this is a server error, please contact the webmaster.
Error 404
24/01/2011 7:53:52 AM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

Here are pertinent information from googling to create my resolving checklist.
My httpd.conf file content :confused:

LoadModule rewrite_module modules/mod_rewrite.so (Note: uncommented with no # symbol)

ClearModuleList AddModule mod_rewrite.c uncommented (Note: they are not in my httpd.conf)

In htpd.conf , this is what I am seeing
DocumentRoot "C:/xampp/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

in htaccessfile, this is what I am seeing: :confused:

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


Rather than going about changing blindly, I thank you in advance for your guidance. Sorry for asking this question but I did google to get some ideas.

PS: Not to be outdone with another url problem, I pose the 1 minute rule. LOL. Hope it makes your day and appreciate yourl help

01-27-2011, 03:04 PM
Xammp is running fine since hello world and demo runs. I see the calendar running as an end user for I can look at upcoming, day, week, month. But if I click on the update button, I get url message and I also mention the url if that might help in your investigation. Why would you need to change the server configuration for this? Do you have a file named update.php inside that folder?

01-28-2011, 03:45 PM
Hip, Hip, Hooray. For he is a master coder. Hip, Hip, Hooray. For he is the master coder. :thumbsup: If u are in Montreal, drop me a line and we can go for a beer or a coffee. I will be going to the PHP Quebec get together on Feb 3 from 7pm near Metro Bonaventure in Montreal. I am glad I came to this forum for I was going nuts over this message and glad to meet you. Your title do you justice for you indeed are a master coder.

Sorry for not responding sooner but had to reinstall windows from an earlier factory reinstall (PEAR and envir variables. Also, it is due). Lol, hasta la vista just updated itself with a 750mb service Pack update and that update crash my vista. I am also tired for the time spent. Nice quote, dream is possible when u pursue your dream. To dream, perhaps to dream ... Shakespeare.

Seeing you have over 12000 post, tells me you look at my htpd.conf and htaccessfile mention. Then conclude with that comment. And I thus conclude u are u, the master coder.

It been ages since I play with PHP and first time seeing PEAR and to install the DB component. The application is not well documented and it is an unsupported application. What went thru my mind is uncertainty in the install for I never come across authentication configuration when I already mention the default syntax of mysql in the configuration install of application. Thus, what did I do wrong or required to do in my install was in my mindset. Googling, it mentions the checklist steps in my post whereby I rule out the first two base on inspection troubleshooting and I am an Apache newbie. Upon seeing your post of update.php in that folder, without having reinstall my server, I was tempted to write for I knew it was. But knowing sometimes an install creates new coding sometimes, I decided to do the steps - install server then application. Then I get that error message. And I was going to copy that URL - ...calendar/update.php to post to u as proof. And then it hit me. I saw the answer but too tired for immediate reply since I needed a nap.

The application did not use the generic name of calendar. But it uses the generic name of calendar for its directory path to update.php and other routines. Thus stomping me thinking, why problem on application involving admin routines. And to have all these hallucinating possibilities. No stuff Sherlock, lol, I was eliminating the improbable to thus have the probable while you went to elimination the probable. You are a life saver for I would spend eons of time to figure it out like the same way I am calculating Pi and to conclude or keep trying for the value. I doubt I would figure out. I am so relieved and happy for your help. Thank you on me pursing a dream to have a website one day but the cost and maintenance have been the hindrance. But will have one day for a better world.

Three questions to assist in my install process.
1) Log file useful in future and what to put for this data entry. Can u please tell me your best guess input?

SQL Log File INPUT FIELD :confused:
Example: /var/log/calendarsql.log
OPTIONAL. Put a name of a (folder and) file where the calendar logs every SQL query to the database.
This is good for debugging. If left blank ("") no log will be kept. That's the default.

I enter var/log/calendarsql.log and click the save configuration button to receive the following:
Could not open the SQL Log File for writing. Make sure the Web server has access to write to that location. Error: fopen(/var/log/calendarsql.log) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory.

*Where and what do I use to create such a file or directory? Clueless, for I do not know what kinda preparation I have to do prior to clicking save configuration in the installation. In the installation for Database Connection String input , I click Check Connection. I got good news that DB successfully connected.
Database Connection String mysql://root:@localhost/calendar

Newbie to mysql and sql. How do I create a calendarsql.log? Why /var/log/ path? I do not think it is a DB they want. Any ideas? Why could they just create a text file and thus I believe there is more to it. tx

2) Can u help me deduce a vaild user identification name base on this preg expression? /^[A-Ma-m][\._A-Ma-m0-9\-\\]{1,49}$/

PS: Lost the syntax reg rules and stomp on the tail end. LOL, I have dabble with reg expression, Spitbol, and Snobol.

3) Would u go for db authentication, or dB and LDAP authentication for users to add events to calendar. I am thinking of only DB authentication.

Tx and tx again in advance for your help and reading my post.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum