Bug handling spaces in path names

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
mikemee
Posts: 13
Joined: Fri Sep 17, 2004 10:01 pm

Bug handling spaces in path names

Post by mikemee »

Ok, silly me. I used the default setup directory when I installed Apache, and it placed it into:

C:\Program Files\Apache Group\Apache2

Two problems with this apparently - the space between Program and Files and between Apache and Group. After bouncing around the forum and trying various things, I was able to run cmd.php with:

Code: Select all

C:\Program Files\Apache Group\Apache2\htdocs\cacti>c:\php\php.exe "c:\program files\apache group\apache2\htdocs\cacti\cmd.php"
which then replied with:

Code: Select all

Content-type: text/html
X-Powered-By: PHP/4.3.8

#!/usr/bin/php -q
Can't open perl script "C:\Program": No such file or directory
09/17/2004 11:03:38 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid.  Partial Result:
(repeated)

I'm going to fiddle with the paths config to see if adding "s will help, but I'm not optimistic.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

mikemee,

Cacti 0.8.6x does not currently support Long File Names. Sorry. We are looking into ways to support this in the future. It is not a high priority at this time.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Guest

Re: Bug handling spaces in path names

Post by Guest »

I had the same problem, the solution was to reinstall Apache in C:\ ...
like

c:\Apache2

I highly recommend you to do that, then i think you will have some problems with SQL, hope not have a good day
mikemee
Posts: 13
Joined: Fri Sep 17, 2004 10:01 pm

Or move the htdocs folder

Post by mikemee »

In the end I left Apach alone and modified the file C:\Program Files\Apache Group\Apache2\htdocs\conf\httpd.conf. Find the line starting with DocumentRoot and change it to:

Code: Select all

DocumentRoot "C:/htdocs"
And then move the entire htdocs directory (including Cacti ifyou've installed that already) into c:\htdocs.

This also fixes the problem nicely.

cheers, michael
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests