Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-13 16:48:49

KnightErrant02
New Member
Registered: 2006-02-13
Posts: 3

Getting textpattern to run on Xampp Lite

Sorry I know this I a little off base, its not purely a textpattern question, haven’t even got that far. I’m having a problem setting up virtual hosts using the Xampp lite package, in order to build a local development version of sites on my windows XP computer. I can get textpattern to run if I set up Apache and MySql myself. But I’m trying to get the server running ‘propperly,’ so I can develop other sites as well.

I’ve read many different articles, one specifically on how to set up xampp for textpattern. I’m still running into walls. Any help would be appreciated.

Heres the setup info:

=========================================================
Virtual hosts set-up in httpd.conf:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1> ServerAdmin admin@localhost DocumentRoot /xampplite/htdocs/xampp ServerName localhost <Directory “/xampplite/htdocs/xampp”> Options Indexes FollowSymLinks ExecCGI </Directory>
</VirtualHost>

<VirtualHost testpattern.dev> ServerName testpattern.dev ServerAdmin admin@localhost DocumentRoot /xampplite/htdocs/testing/testpattern DirectoryIndex index.php

<Directory “/xampplite/htdocs/testing/testpattern”> Options Indexes FollowSymLinks AllowOverride All #Override default restrictive access control setting for Apache 2.2 Allow from All </Directory> </VirtualHost>

=========================================================
The resulting effect on the xampp lite setup – in the status window is:

MySql database —-Disabled
PHP —-Disabled

========================================================
DNS setup in Host doc:

  1. Copyright © 1993-1999 Microsoft Corp.
    #
  2. This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
  3. This file contains the mappings of IP addresses to host names. Each
  4. entry should be kept on an individual line. The IP address should
  5. be placed in the first column followed by the corresponding host name.
  6. The IP address and the host name should be separated by at least one
  7. space.
    #
  8. Additionally, comments (such as these) may be inserted on individual
  9. lines or following the machine name denoted by a ‘#’ symbol.
    #
  10. For example:
    #
  11. 102.54.94.97 rhino.acme.com # source server
  12. 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
127.0.0.1 testpattern.dev
=======================================================

http://testpattern.dev, which hosts an un installed version of textpattern (site root) returns:

Warning: include(/home/path/to/textpattern/dir/publish.php) [function.include]: failed to open stream: No such file or directory in C:\xampplite\htdocs\testing\testpattern\index.php on line 27

Warning: include() [function.include]: Failed opening ‘/home/path/to/textpattern/dir/publish.php’ for inclusion (include_path=’.;C:\xampplite\php\pear\’) in C:\xampplite\htdocs\testing\testpattern\index.php on line 27

Fatal error: Call to undefined function textpattern() in C:\xampplite\htdocs\testing\testpattern\index.php on line 28

=======================================================
http://testpattern.dev/textpattern/ (install root) returns:

Database unavailable.

=======================================================

What the hell have I done wrong, xampp was meant to be the easy option, I should have know better. I’m only a lowly designer so try and use small words. ;)

Offline

#2 2006-02-13 18:55:09

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Getting textpattern to run on Xampp Lite

Hi,

Instead of setting up virtual hosts for every app you want to test, why not throw them into a subdirectory off the web root.

Let’s say I want to test out Textpattern 4.0.3 and a gallery like Plogger. I would setup a subdiretory called /texpattern and /plogger. Then I access is as http://127.0.0.1/textpattern/ and http://127.0.0.1/plogger/.

If you want a domain name instead of an IP address, then assign your machine a name in the hosts files and use that instead. I haven’t played around with virtual hosts in XAMPP but I do use it for my local development and it works great.

Offline

#3 2006-02-13 23:01:39

KnightErrant02
New Member
Registered: 2006-02-13
Posts: 3

Re: Getting textpattern to run on Xampp Lite

Cheers mate, I’ll give that ago.

Offline

#4 2006-02-13 23:36:49

KnightErrant02
New Member
Registered: 2006-02-13
Posts: 3

Re: Getting textpattern to run on Xampp Lite

OK, I got rid of any references to virtual hosts that I put in ‘hosts’ and ‘httpd.conf’, set up the subdir’s in the ‘htdocs’ folder. I Still get the same errors back from testpattern, no database, and:

Warning: include(/home/path/to/textpattern/dir/publish.php) [function.include]: failed to open stream: No such file or directory in C:\xampplite\htdocs\testing\testpattern\index.php on line 27

Warning: include() [function.include]: Failed opening ‘/home/path/to/textpattern/dir/publish.php’ for inclusion (include_path=’.;C:\xampplite\php\pear\’) in C:\xampplite\htdocs\testing\testpattern\index.php on line 27

Fatal error: Call to undefined function textpattern() in C:\xampplite\htdocs\testing\testpattern\index.php on line 28

Thought it says that MySql and PHP are now working. And the database is there in Xampp’s phpAdmin?

Offline

Board footer

Powered by FluxBB