EditWrx Knowledge Base Home
 Search       Login   Register   Members   Help   Home 
Search by username


xampp local server
 Moderated by: Keith  
 New Topic   Reply   Print 
AuthorPost
vee
Member
 

Joined: Mon Oct 9th, 2006
Location:  
Posts: 13
 Posted: Tue Oct 10th, 2006 01:25 am
 Quote  Reply 
Hi everyone -

does anyone have experience using editwrx with xampp local server?  I have editwrx up and running online but there's quite a lot to work through and learn with this great app so I'd like to get it going with Xampp for better testing offline.  Any help would be greatly appreciated.

This is what Xampp reports at present (having modified the 1st line of installer.cgi to point to perl within xampp):

REQUIRED PERL MODULES ARE NOT AVAILABLE

YOU CAN NOT INSTALL EDITWRX 6 ON THIS SERVER

Missing Modules
CGI.pm
Sockets.pm
Exporter.pm
 

Doing a manual install instead and running the wrx.cgi file I get:


The server encountered an internal error and was unable to complete your request.

Error message:
couldn't create child process: 720003: wrx.cgi 
This is what's supposed to make up the xampp installation:


Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.

Does anyone know where I get the extra modules mentioned above from and how to integrate them with the xampp installation?  Or am I on the right track with the manual install but just got some paths to correct so that the script can "complete"?


Be gentle - I'm on a steep learning curve!

Many thanks

Vee

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 603
 Posted: Tue Oct 10th, 2006 07:16 am
 Quote  Reply 
vee

The first set of errors indicates that you do not have a standard distribution of Perl installed. The Perl installed by Xampp is probably only the Perl Interpreter. We could cripple EditWrx to run without full Perl support but I strongly suggest that you go ahead and install the full package of Perl so you can use Xampp for more than just testing EditWrx. In fact your second error may indicate that you'll need the full install but that's hard to tell at this point.

If you installed Xampp on Windows then installing Perl is super easy. Just go to
http://activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca
and download the MSI package for either the 5.6 or 5.8 version (EditWrx will use either). Run the MSI, it will guide you through the installation.

When your done with the install open Windows File Explorer and click Tool>Folder Options>File Types. ActiveState only associates the .pl extension so you want to create a new association for .cgi. Scroll down the list of file types to find one for PL. Review what's on the Change and Advanced views for PL.  Now click New to make a new entry exactly like that one for CGI. (You will never have to modify the first line again, the path to Perl is read from registery on Windows).

Once Perl is installed try running the installer again.  Although Xampp claims to be built on the Apache platform it may not be generating the same environment variables as Apache or IIS servers so there may be more problems. If so, post what you get here and we'll go the next step.

Actually installing real Apache for Windows is very easy also.
http://httpd.apache.org/download.cgi 
the Win32 Binary (MSI Installer):

It will not include PHP or MSQL, but you might consider installing it if you do not intend on using PHP or MSQL.

 

vee
Member
 

Joined: Mon Oct 9th, 2006
Location:  
Posts: 13
 Posted: Tue Oct 10th, 2006 03:06 pm
 Quote  Reply 
Hello Keith

Thanks for the helpful reply.  OK, so this is what I got...

Did all you said and installed into the xampp perl folder.  Nothing works if one tries to access the installer file or wrx file when it's placed in the localhost root folder - same as before.  When placed in the cgi-bin then I get the same result as before (using either .pl or .cgi extensions) for the wrx file, however, the installer file does work... up to a point.

Installer does execute all the way through and all files were uploaded except the wrx file and the samples folder.

The first part of the Installer process is to "Locate and Select Your Web Site's Home Page", however, the installer won't drill down far enough.  Xampp's root folder is  /Program Files/xampp/htdocs.  Within htdocs is the equivalent of the www folder where one puts all ones different "sites" for testing.  So to select my home page I would have to drill down to  /Program Files/xampp/htdocs/vee/editwrx.

Installer only gets to  /Program Files/xampp/htdocs where it then picks out all files present but offers no way to get through to vee/editwrx.

Just to see what installer would do, I selected the default index.php in htdocs (which is basically a default error file saying xampp isn't working correctly if you're seeing that page) and continued the install.  Installer went on to create the folder editwrx in that directory, as expected, and uploaded all the files except for the wrx file and the sample_pages folder. 

So, several problems there.


 

I had a look through the xampp docs and it seems there is a perl add-on package. What I'll try next, out of interest, is to build a new uptodate xampp local server with this add-on package and see if that helps.  I'll let you know, but in the meantime I'm interested in your thoughts on the above re the wrx file upload etc.

Thanks a lot for your help and input - much appreciated.

(Just to be clear - I had no problem doing a manual install on a live server and have been able to start getting to grips with editwrx, which I like the look of very much.  It would just be very helpful to be able to develop my sites (which do use php) off-line and demonstrate how editwrx can integrate with them, also offline.)

Thanks again

Vee

vee
Member
 

Joined: Mon Oct 9th, 2006
Location:  
Posts: 13
 Posted: Tue Oct 10th, 2006 09:03 pm
 Quote  Reply 
Hi Keith

OK, so been toiling away and this is where I'm at...

Got the latest xampp & perl add-ons installed and working.  Only difference at this point is that I put it all in C:\xampp2\xampp

First improvement with this updated version is that I can now run cgi/pl files from within the root (had to be from the cgi-bin in the old version).  That said, my installation isn't accepting either wrx or installer as cgi, only as pl extentions.  No matter... something different is happening at least  because before it was just an error message!

Trying the installer file first, this time it has no problem locating and selecting the home-page file (situated  C:\xampp2\xampp\htdocs\vee\test\index.php) - so then it goes to the next stage of creating folders and installing files.

This time, however, it creates only wrx.cgi (with the first line as #!/usr/bin/perl -- ) and counts off 1201 files before hanging (I think there are only 629 normally, right?).  No folders or files were actually created, only a hidden thumbs.db file.  So the install failed.  Tried it a few times, same result.

Going for the manual install, I deleted the previous editwrx folder in htdocs\vee and created a new editwrx folder with all the zip files in.  I changed wrx.cgi to .pl and changed the first line to: #!C:\xampp2\xampp\perl\bin\perl.exe --

Pointing the browser to wrx.pl gives me this:

Your server does not have a usable environment variable for determining your site's root path
/xampp2/xampp/htdocs/editwrx/library/routines.txt does not exist (it does, I checked - it's just not being found)
 

followed by some code (which I can't seem to copy and post here) of which the following stands out:

DOCUMENT_ROOT=C:/xampp2/xampp/htdocs (needs /vee/test?)

ATH=C:\Program Files\xampp\perl\bin\;

(perhaps installing the new version of xampp other than in the default location,is the problem? Since I put it in C:\xampp2\xampp, I would expect the above line to read PATH=C:\xampp2\xampp\perl\bin\;






 



vee
Member
 

Joined: Mon Oct 9th, 2006
Location:  
Posts: 13
 Posted: Tue Oct 10th, 2006 09:13 pm
 Quote  Reply 
I have no idea what was happening in the last post - couldn't get anything copied in properly after I'd tried to copy in some of that code, then couldn't get any links to work either.  Try this: http://yorklet.atspace.com/misc/ to see what the wrx file threw up.

(NB: editwrx is not installed on the above server - I just put the file there for you to view since I couldn't get it to post here)

Many thanks for your time and help

Vee

Last edited on Tue Oct 10th, 2006 09:15 pm by vee

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 603
 Posted: Wed Oct 11th, 2006 08:56 pm
 Quote  Reply 
vee

I'm going to need to install xampp to see how it is doing paths and virtual hosting. It's document_root path makes no sense. I'll get back to ya on it after I've figured it out.

vee
Member
 

Joined: Mon Oct 9th, 2006
Location:  
Posts: 13
 Posted: Wed Oct 11th, 2006 11:11 pm
 Quote  Reply 
Hi Keith

Thank you very much indeed - that would be extra-ordinarily helpful!  I've been working with editwrx online to get a better feel for it.  There are certainly some little quirks to get to grips with but I find it overall to be highly useful.  It's the lack of high speed internet out in rural areas that's holding me back!  

If you can sort me out with a working xampp install that would be great.

Many thanks again
Vee

Keith
Moderator
 

Joined: Fri Apr 8th, 2005
Location:  
Posts: 603
 Posted: Sun Oct 15th, 2006 02:39 am
 Quote  Reply 
vee

I've posted a tutorial for installing and setting up the xampp server as a development server on Windows

http://www.editwrx.com/forums/view_topic.php?id=212&forum_id=2


 Current time is 05:16 pm




Powered by WowBB 1.62 - Copyright © 2003-2004 Aycan Gulez