Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-20 22:39:34

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Newbie question (how to view pages locally)

Hi,

I’m going through the Textpattern Solutions book and trying to build a site based on the example site in the book. I’ve installed Textpattern a couple times on live servers just for a blog, now I’m trying to do a whole site. I’m practicing locally, then I’ll transfer the complete site to a live server when I’m done.

The problem is that I can’t (or don’t know how to) view the pages I’m creating on my local setup. I’ve installed Textpattern correctly as well as the database. I’m able to get into the admin section and create articles, sections, etc., no problem. How do I view what I’ve done? Clicking “View SIte” jsut gives me a Not Found error.

Maybe I’m missing a step. Perhaps I haven’t “published” things so that they aren’t showing up. I’m at a loss.

BTW, I’m on a Mac, running 10.5.6. I’ve got MAMP running. Everything is kosher, I just don’t know how to view my site.

Offline

#2 2009-04-21 06:42:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Newbie question (how to view pages locally)

Hi milauskas, did you move your htacces file in the htdocs directory where you have textpattern? Mac by default hides all files which start with a dot.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#3 2009-04-23 18:08:35

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Re: Newbie question (how to view pages locally)

I’m not sure. In working through the book here’s where I installed things:

applications/MAMP/htdocs/jonnfaircrest.dev/textpattern

I’m able to get into the administration part of textpattern, I just can’t “View Site.”

Offline

#4 2009-04-23 21:43:48

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Newbie question (how to view pages locally)

If you can’t see any dot-prefixed files, then you need to enable them. Alternatively, open up Terminal and enter the following command to see if the .htaccess file exists in that directory (assuming index.php is located there):

ls /Applications/MAMP/htdocs/jonnfaircrest.dev/.htaccess

Also, you can turn on messy URLs in the Admin tab to view your site.

Last edited by jm (2009-04-23 21:47:46)

Offline

#5 2009-04-23 22:25:37

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Re: Newbie question (how to view pages locally)

While looking through the admin for messy URLs (which I didn’t find yet) I noticed the following under diagnostics:

/Applications/MAMP/htdocs/jonnfaircrest.dev/index.php is inaccessible
Missing files:
/Applications/MAMP/htdocs/jonnfaircrest.dev/textpattern/../index.php
Clean URL test failed.

I thought everything was fine on first install. No problems in the diagnostic area, but now I see there is. Did I delete something inadvertantly? Looks like index.php should be there, but isn’t.

What’s my next step?

BTW, thanks for the guidance!

Offline

#6 2009-04-23 22:38:15

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Newbie question (how to view pages locally)

Sorry, Admin>Preferences and “Permanent link mode” is what you want. If you’re missing the root index.php, then your URLs won’t work regardless of the setting. Re-download Textpattern and copy ./index.php over to /Applications/MAMP/htdocs/jonnfaircrest.dev/. Your directory should look like this:

In jonnfaircrest.dev, you should have the following files and directories:

HISTORY.txt
README.txt
files/
images/
index.php
rpc/
textpattern/

Offline

#7 2009-04-25 18:47:22

milauskas
New Member
Registered: 2009-04-20
Posts: 8

Re: Newbie question (how to view pages locally)

Okay, Jm. I checked and I had all the flies. For some reason I had temporarily changed the index.php file, but I can’t remember why now. In any case, I renamed it back and checked “view site” and it’s working! Thanks a lot!

Mike

Offline

#8 2009-04-25 19:26:58

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Newbie question (how to view pages locally)

You’re welcome. Be sure to check out the Textbook too.

Offline

Board footer

Powered by FluxBB