Select Page

How to run Your productive version of Mambo locally

How to run Your productive version of Mambo locally

Do You want to install Mambo?, have a copy of Your productive mambo homepage running locally? or simply develop easily PHP/MySQL code? Do You want to make Mambo a try without the hassle of installations and configurations?
EasyPHP might be the answer!
EasyPHP  is a complete software package allowing to use all the power and the flexibility that offers the dynamic language PHP and the effecient use of databases under Windows. Package includes an Apache server, a MySQL database, a fully PHP execution, as well as easy development tools for your web site or your applications.

Click  Read more… to see my experience with it:

Install easyPHP
EasyPHP is a complete software package allowing to use all the power and the flexibility that offers the dynamic language PHP and the effecient use of databases under Windows. Package includes an Apache server, a MySQL database, a fully PHP execution, as well as easy development tools for your web site or your applications.

The latest stable version (v1.7) is made of:

  • Apache 1.3.27
  • PHP 4.3.3
  • MySQL 4.0.15
  • PhpMyAdmin 2.5.3

and can be downloaded at: http://www.easyphp.org/

It is a windows executale, all You have to do is install it.
Start EasyPHP in the programs menu
Verify that EasyPHP is running in the system tray

Check configuration, Apache and MySQl must be started.

If not be sure not to have another apache process running on port 80

Check proper installation of EasyPHP. Should open a web browser and drive You to this page

Copy data from Your productive system (www)

CopyHow 
all remote fileUsing Your favorite FTP tool 
all data in remote DatabaseWith your provider HTML tool (PhpMyAdmin)
Export all tables and content in a SQL file on your Disk
 

Install file data locally

Copy Your webserver root to: EasyPHP1-7www
example: if EasyPHP is installed in E:/www.waltercedric.com/, then copy into E:/www.waltercedric.com/EasyPHP1-7/www/

Restore database data locally

Start a browser and go to http://127.0.0.1/mysql/

Restore the Data in your new database by importing the SQL file.

 

  • Bloc by bloc (see picture) or
  • By importing the SQL zip file
    (not working for me as the browser is doing timeout
    since my Databse is quite big)
If the restore is successful, create a user, as found in the configuration file of Mambo. Create a User

  • Of the same name and password, or
  • Create a new user (better because of security concerns) ut then do not forget to adapt the configuration.php accordingly.
in Mambo/configuration.php
ocate the mySQL login and password mambo is using
<?php
$mosConfig_offline = ‘0’;
$mosConfig_host = ‘localhost’;
$mosConfig_user = ‘XXXX‘;
$mosConfig_password = ‘XXXXX‘;
.
Grant this user all rights by clicking edit.

Change Mambo settings

 

there is a lot of chance that Your local Mambo is not at the same location of Your productive Mambo, so Small changes in Mambo/configuration.php are needed:

Example in productionExample localy
$mosConfig_absolute_path = ‘www.waltercedric.com/Mambo’;$mosConfig_absolute_path = ‘E:/www.waltercedric.com/EasyPHP1-7/www/Mambo’;
$mosConfig_cachepath = ‘www.waltercedric.com/Mambo/cache’;$mosConfig_cachepath = ‘E:/www.waltercedric.com/EasyPHP1-7/www/Mambo/cache’;

Create a cache directory locally (I never do a backup of this directory, as it can be quite big in production)

Normally You’re done!

 

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Categories

0
Would love your thoughts, please comment.x
()
x