Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-03-29 18:29:17

inspiredmac
New Member
Registered: 2012-03-29
Posts: 2

Localhost PHP and MySQL set

I was considering using MAMP to install a local version of Apache, PHP, MySQL on my Mac before jumping into uploading Textpattern to my web hosting service.

Has anyone else on this forum done this?

Offline

#2 2012-03-29 18:41:10

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Localhost PHP and MySQL set

inspiredmac wrote:

Has anyone else on this forum done this?

Hi,
I think everybody here is using mamp, xampp or lamp.

Last edited by redbot (2012-03-29 18:42:07)

Offline

#3 2012-03-29 19:13:44

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Localhost PHP and MySQL set

Well, everybody… ;) I used to use LAMP, but nowadays I find it just as easy to develop online in a subdirectory or subdomain.

There are a couple of tutorials on using MAMP and XAMPP in the wiki.

Offline

#4 2012-03-29 20:00:03

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Localhost PHP and MySQL set

Mac OS comes with Apache & PHP built-in – you just have to switch it on.

But if need a newer version of PHP then have a look at this – which is what I use (I notice that it’s now been taken up by these guys).

Offline

#5 2012-03-29 20:18:53

inspiredmac
New Member
Registered: 2012-03-29
Posts: 2

Re: Localhost PHP and MySQL set

I was curious as to how you migrate what you develop in a sub-domain to another location. I’ve never done anything like that, and I wonder how you prevent broken links. I don’t mind developing in a sub-domain and adding the prefix to my domain name to point the reader to a special section of my web site.

Offline

#6 2012-03-29 20:49:46

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Localhost PHP and MySQL set

You won’t have broken links if you don’t hardcode them and only use txp tags to generate internal links. The only things you need to change after a move are the site URL and the paths to the files and temp directory in preferences.

There are tutorials about moving your installation as well :)

Offline

#7 2012-03-29 21:04:51

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Localhost PHP and MySQL set

I develop all my websites locally on the Mac & then copy them to the live server – have a look at this for a summary. As Els says, you just have to tweak a couple of Admin prefs after the copy.

Offline

Board footer

Powered by FluxBB