I don’t post often but I would like to share some tips on firing up a new MODx install. It can be a bear for those new to the install process.
Several tips regarding project startup w/ MODx - Working in clean directories.
1st RE: Jarnokk -- solution to work side by side with MODx and existing pages:
(cool solution Puffin) Here is another:
When redesigning a static website for a customer.
Keep the existing website Live but work MODx in a clean root directory.
Create a new directory in the root.
For example if you are building for a lawn service company Make a directory called lawn-services. Move the entire website into that directory clearing the root of all files and folders except lawn-services.
Create a .htacces file as mentioned above only place a 301 redirect in the .htaccess file.
Ie... -----
Redirect 301 /index.html /lawn-services/
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^lawnservicecompany.com [nc]
rewritecond %{http_host} ^www.lawnservicecompany.com [nc]
rewriterule ^(.*)$ http://www.lawnservicecompany.com /lawn-services/$1 [r=301,nc]
----
You do not need an index.html in the directory. When anyone types in either lawnservicecompany.com or www.lawnservicecompany.com it will forward to the full www.lawnservicecompany.com/lawn-services/index.htm,html,php the additional rewrite rule kills buggy results when forwarding to lawnservicecompany.com/lawn-services/index.htm,html,php without the www.
When you manually type in lawnservicecompany.com/index.php - The MODx version will load your site in root directory.
Now your root directory is empty of non MODx created files and directories. When the project is complete. Delete the 301 redirect. Delete the lawn-services folder. No picking through a mess of directories and files. Done deal. Your live.
Next TIP the MODx install – cPanel style-
From nothing to MODx manager panel login – 10 minutes.
A process to facilitate fast and successful installs.
Open 4 browser tabs –
TAB - cPanel - MySQL Databases
TAB - cPanel – File Manager
TAB - Browse to your future install directory /setup – 404 not-found
TAB - Browse to
http://modxcms.com/download/
--- 2 minutes
TAB -
http://modxcms.com/download/
Download your file of choice – While downloading open and prep your FTP utility of choice.
--- 2 Minutes
FTP utility
Upload the zip file to your directory of choice.
(Note: Uploading unpacked zip files can take 10-15 minutes depending on connection. Uploading the zip file. 2 minutes.)
During Zip file upload.
TAB - cPanel - MySQL Databases
Enter a database name in input field. Hit create database button. - go back.
Create username and password – hit create user button. Then go back. (You will need to remember this password for MODx install)
Add user to database – (select match from drop down) - add button – select all privileges – go back.
Database setup is complete in 2 minutes.
Your FTP of zip file is complete.
--- 2 Minutes
TAB - cPanel – File Manager
Check the checkbox beside MODx .zip file – look to top right – select extract. Accept extraction - Bam – 2 seconds all files and directories are installed. – Hit refresh for good measure.
TAB - install directory / setup – Hit Refresh
Choose language – select
Welcome to MODx – Next
New Installation – (It is best to leave file and folder permissions as is unless you have specific needs.) – Next
Connection Information (okay – the first time I installed MODx getting the right combination of database name – username threw me for a loop. So for those new to MODx here is a great trick)
Bounce back to TAB - cPanel - MySQL Databases
Highlight the entire username with curser (careful not to grab the x) copy – jump back to MODx setup and paste into Database login name:
same for Database name: and the password is the user password you created a minute ago.
Personalize the database table prefix (keep trailing underscore_)
Test database server connection and view collations.
Connecting to mysql server: Success!
Leave the default Connection character set and Collation as is.
Create or test selection of your database.
Checking database:Success!
Create default super admin – email address is key to resetting lost password.
Next –
Install –
Toggle success messages.
Next-
Check this to DELETE the setup directory from the file system. YES. DO CHECK.
Login –
---4 Minutes
2-2-2-4 10 minute install.
Sweet. Revolution rocks.
Regards,
William