Skip to main content
May 9, 2010
Question

Wordpress, Dreamweaver CS5, XAMPP...

  • May 9, 2010
  • 2 replies
  • 25742 views

I set up XAMPP as my local testing server using this excellent walkthrough

http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html

I synced my website so I had all the right files, and moved the folder into xampp/htdocs

I'm pretty sure everything went right, because if I creathe the sample php file that shows the current time/date (as instructed in the walkthrough) in my website folder, everything is working fine.

I set the Site specific code hinting to Wordpress, with everything as recursive scanning.

But when I click on index.php DW complains that I have to click "Discover" and then in the same small top bar, it complains about a Server error.

Help please... I was really looking forward to not having to 'live' test my adjustments - did I forget to do something to get Wordpress to work in Dreamweaver CS5?

    This topic has been closed for replies.

    2 replies

    Participating Frequently
    January 7, 2012

    Use ServerPress.com's spin on XAMPP. It will enable LiveView directly on just the theme template page parts for realtime feedback. You don't have to flip back to the browser every 5 seconds or index.php in the root. Plus, you can click on the elements in LiveView and see the code associated with it in Code view.

    It also automatically generates a site definition file for you so you don't have to guess the settings, manage multiple projects, yadda yadda

    Pretty snazzy, ehh?

    http://www.youtube.com/watch?v=2bCTbjoBWa8#t=3m55s

    Participating Frequently
    May 9, 2010

    I am having the exact same issue, but it's on Joomla.  I followed the same tutorial, I set up the XAMPP.  I synced my files between my local folder, my testing etc.

    My issue varies here slightly and when I click on "Live View" of my local setup site (XAMPP running correctly) it says "database error:can't connect to the mysql_database".  Here is where it's weird:  If I go to the "database" connection on my index.php file and set up for my local XAMPP server to connect to the mysql database for the site, it says "Connection Made" and there are no errors in connecting to the mysql database.  I can even see the mysql database tables in the browser and view information about them.  If I try to view the index.php file in DW I get the the same "database error: can't connect to the mysql database" EVEN AFTER IT JUST CONNECTED IN THE MYSQL DATABASE.

    This is really causing some confusion.  The tutorial does talk a bit about creating a NEW mysql database and PHP files etc. but it does not talk about importing the mysql database from an existing Joomla or Wordpress site (which will also have mysql table associated).  Using the XAMPP server I take it is simply like making a new copy of the files and structure, as well as the mysql database, to run on your computer locally.  That's why I am super confused as to how I can see it connect to the db fine in DW but when I view the index.php within DW it says it cannot connect to the DB.

    From what the OP is saying, you didn't import your DB with phpmyadmin?  Is this not a required step?  So far using Dreamweaver on an existing Joomla site is extremely difficult and time consuming, so much so, that it has taken my about 6 hours of trying and failing and troubleshooting and have gotten nowhere.

    Has anyone got this working?  I haven't really heard of any success stories on Joomla.  Regardless, sorry for the lengthy post any help would be appreciated.

    -Matt

    Participating Frequently
    May 9, 2010

    I have been able to work in Joomla, WordPress and Drupal using Xampp  - not without some speedbumps but not DW related. In Joomla you should check your configuration.php in the root directory and verify that Joomla knows all the correct site paths and server. 99% of problems I have had in the past connecting to a database could be resolved in this file.

    Participating Frequently
    May 9, 2010

    Bob:  The database isn't what is taking 2 plus hours.  It's when I sync the "local files" within DW to the files on my FTP hosting server.  To get duplicate files of ONE Joomla site takes about 2.5 hours and in that time I can't do a whole lot with Dreamweaver.

    -Matt


    I think you are getting there. I can't help much with DW file synchronization - I have always had some issues with DW ftp and use another (commercial) ftp program.There are many good ftp programs - I only use a commercial one because I need to transfer from 1 remote site to another remote site and not have to download them to my local pc.