How to live preview PHP using MAMP - php

I am creating a WP theme (for personal use only) and I need to be able to preview PHP files.
Here's where I'm at so far:
I use Adobe's Brackets.
I have a server on Bluehost.
I have downloaded FileZilla and linked it to my bluehost server.
I have created a directory on my bluehost server: /public_html/wp-content/themes/Cookie
I have downloaded an FTP Sync extension in Brackets, and synced it to the root directory of my theme (/public_html/wp-content/themes/Cookie).
I have installed MAMP on my mac (although never used it and have no idea what to do next).
I have contact Adobe Brackets and they have said this: "If you have a MAMP (or other PHP server) set up, you just need to change the File->Project Settings"
But I have no idea what to do now I have downloaded MAMP.
As you can probably tell, I'm a bit of a noob so please explain things delicately :)
Thanks in advance!!!!

download Wordpress from wordpress.org, install it locally on your MAMP, it shoud have a folder called www or data, reading the docs is recommended. Then, download your theme from your hosting and to the wp-content/themes/ folder, now start a new project, it's gonna be easier.
When your theme is ready, upload it to the server again.
Hope this helps.

I had the same issue but figured it out with the help of your question.
So this is for brackets newcomers like myself :)
Guide for Mac:
Setting up Server
Download and install MAMP
Go to MAMP Preferences
Change the "document root to your project
Brackets Setting:
Open Brackets
Make sure the "Enable Experimental Live Preview" IS OFF! (File > Enable...)
Go to File > project setting
copy and paste this default MAMP server address (http://localhost:8888/) [or change according to your MAMP setting]
Thats it you have got your live preview up and running!

Related

How to fix 'ERR_CONNECTION_TIMED_OUT' error in WordPress with WAMPSERVER installed?

I'm running up a local WordPress server with WAMPSERVER, and I'm working on editing the theme's child theme.
I also setup virtual server on my network. In the past few days I don't see any issue, everything work perfect. Until yesterday the virtual server look like not able to connect via my mobile phone and other computer in the same network.
Today I'm trying to work on the editing. It just can't load to the homepage or even wp-admin. So I took a look at the console in developer mode and I had this error.
I have try to do all the research like changing the port at httpd.conf and wp_option in wordpress to localhost. It just don't work at all.
UPDATE:
I have solve the issue with reinstall the WAMPSERVER and WordPress manually. I'll keep this post and make a guide for the future use.
Firstly I have no idea what to do because I can't even load to /wp-admin. So I decided to backup and restore everything manually.
1. Backup directory
Open up where your WordPress installed.
Click on the WAMP icon at the taskbar. If you don't see it probably is hidden inside the up arrow icon. Left click on the WAMP icon and navigate to www directory.
You don't need to copy and backup all the files in here. Navigate to yoursite/wp-content and copy plugins, themes and uploads.
Paste at any place in your computer as a backup except C:\wamp64. Because it will delete all the files when you uninstall the WAMPSERVER.
I'm using WAMPSERVER 3.1.7, older version might be different. Please Google where is my www directory in wampserver replace.your.version or original path which you can find at C:\wamp64\www.
2. Backup database
We need to backup our database in order to recover the page, post or portfolio we created in the WordPress.
In your browser navigate to localhost/phpmyadmin and select your WordPress database at the right panel then select export button on the top and press GO. Make sure your Format: SQL before you press press the go.
All the pages, posts and portfolios that you created are store inside the database, not in the WordPress folder. Read more at here.
Uninstall WAMPSERVER
Update later...
Reinstall WAMPSERVER
Update later...
Prepare to install WordPress
Update later...
Holla
Update later...
Hope the above guide will solve your issue. I'm not a professional IT guy but it does work for me at least :).
Feel free to edit or suggest if you think I have mistake in the guide.

Were do I find local Joomla installation on XAMPP?

I know that I'm missing something obvious here. I installed XAMPP on my Mac to develop a Joomla site locally. Everything has gone fine and I'm now ready to migrate to my site to my external server, but I can't find it...
The Joomla documentation says that the local directory using XAMPP should be at xampp/www/directory, but there is no "www" folder anywhere in Applications/XAMPP and I can't find any other xampp folders anywhere on my hard drive. Where do I find the files I need to FTP to the server??
All help very appreciated!
You can use the find command to fine php files for your joomla installation :) Eg:
find / -name index.php

How to make changes to wordpress without them going live immediately?

I am trying to make very quick and easy css changes to a website that is wordpress site. I dont want make them while the site is live. is there a way to make them locally and then upload? what do you recommend?
people tell me that doing it locally is a big hassle because of the way the server is. is there a plug in that will let me make changes without them going live?
Thank you very much in advanced...sorry this is my first time with wordpress
What you can do is the following:
a) Install wamp server on your pc. (google where to get it)
b) Install a version of wordpress locally - in case you already have a version online that want to work on you will have to transfer it locallly. check this: http://codex.wordpress.org/Moving_WordPress
Actually you are saving your wordpress database, download all the files inside your wamp\www folder and then import the database through phpmyadmin to your local wamp server and change a couple of options in the db > options table (there are two options to change the website that is loaded so that it looks locally)
c) Your work on the offline version. I assume you mean that you need only styling, so you can edit your style.css file. As soon as you are pleased with it, you just upload it on your web server replacing your old file!
same as #scooterlord .
You can use nginx and php-cgi too on your Windows if ya wanna move to nginx in future.
Just install wamp then then download Wordpress version and then download your theme or plugin on which ya wanna work.
So ya will able to work offline and its not effect ur website.
yeah. I ya download db from ur site u need to change url of wordpress in DB.
u can do it by using phpmyadmin.
or by using These lines in your themes function file.:
update_option('siteurl','http://your.site.url:port/yourblog');
update_option('home','http://your.site.url:port/yourblog');

My PHP code is commented out

Before everything happened, I was running this wordpress install for developing themes using xampp. But I decided to upgrade the memory of this machine from 2GB to 6GB since I need extra room for applications. I back-up my code in a separate partition by copying them. Since I have a 32bit OS at the time, I format the computer and installed a 64bit version. All is well and fine the OS side.
When I setup my web dev environment something goes wrong.
When I imported my htdocs back, first by just fully copying them to a new fresh install of xampp and notice that all of the codes that put are not working. My CI code is displaying my PHP code in the browser. My theme in wordpress is also commenting out my PHP code when I view the source. The themes included in my fresh wordpress install works so there's something I am missing here.
From the looks of it, the php is being executed properly since anything that I install works. Just that the ones that came from a previous xampp is not.
Open up the php.ini file and set short_open_tag = On. Then restart apache.
If you are opening a local script directly in the web browser, maybe through your editor, double-clicking on the file or dragging and dropping the file ito the browser - it will be treated as HTML only.
Instead, open the file by typing... http://localhost/your-file.php into the address bar. I personally create a projects folder in the htdocs folder and then create a bookmark for... http://localhost/projects/ and this will display all my projects that are saved into my projects folder.
Note: if you changed the mail port for the Apache server, you will need to add that to the path as well. eg. If your main port is 8888, your would do this... http://localhost:8080/your-file.php
I had the same problem and this worked for me. Good Luck
For me, it was because the file was named as ".html". You must have an extension ".php"

Joomla Upgrade 1.5.15 to 1.5.23

I am trying to upgrade joomla 1.5.15 to 1.5.23
I have downloaded the Joomla_1.5.15_to_1.5.23-Stable-Patch_Package from the joomlacode.org.
While trying to install this package from my administrator, the error will be displayed "Error! Could not find an XML setup file in the package.".
Or
Shall I extract this zip file and upload the files to server directly through FTP?
Please advise me..
Any help appreciated.
I would recommend a 3-step process personally to ensure the best possible outcome.
First - backup your site (I LOVE Akeeba Backups 1-touch backup solution); download the backed up site and install on a local host or development server.
Second, do your upgrade there (extract the files from the .zip and put them in the localhost/dev server installation).
Make sure that the upgrade didn't break anything, that everything still works appropriately and as expected and create a backup of the localhost/dev server site.
At that point you know the upgrade won't break anything.
Third, upload the unzipped files from version 1.5.23 via FTP into your root joomla directory (complete the upgrade as listed HERE.
Doing these steps will ensure the best possible outcome and will show absolutely ZERO disruptions on your live site in the event something you're currently using doesn't like the jump from .15 to .23 - which is a large jump and a lot of things are different (including which version of mootools is included!) So take caution and TEST FIRST!
I would advice you to do this::
Assuming you have access to all the files of website.
1.Now download directly 1.5.23 or 1.5.26 version(last update patch of this series.)
2.Extract the files and open them,you will notice them you need to only replace 4-5 files in that patch.
3.Copy each file and replace them with the current files in the existing websites.
Hope this helps.

Categories