Here are the steps to update your existing Wall Script.
Step 1
Please take the backup for existing project and database(export SQL file).
Step 2
Extract wallscript.zip into htdocs or www folder using Winzip software. Now import wall_update.sql into existing wallscript database. This SQL contains ALTER statements.
Step 3
Database configuration settings.
config.php
You have to modify Host, Username, Password and Database.
<?php
define('DB_SERVER', 'Host');
define('DB_USERNAME', 'Username');
define('DB_PASSWORD', 'Password');
define('DB_DATABASE', 'Database');
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
define('UPLOAD_PATH', 'uploads/');
....
....
....
/*SMTP Details for Email Alerts */
define("SMTP_CONNECTION", "1"); // On "1" Off "0"
define("SMTP_USERNAME", "SMTP Username");
define("SMTP_PASSWORD", "SMTP Password");
define("SMTP_HOST", "SMTP Host Name");
define("SMTP_PORT", "SMTP Port");
define("SMTP_FROM_EMAIL", "[email protected]"); //Your website support email.
define("SMTP_FROM_TITLE", "Your Website Support Name"); //eg: Support Website Name
?>
define('DB_SERVER', 'Host');
define('DB_USERNAME', 'Username');
define('DB_PASSWORD', 'Password');
define('DB_DATABASE', 'Database');
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
define('UPLOAD_PATH', 'uploads/');
....
....
....
/*SMTP Details for Email Alerts */
define("SMTP_CONNECTION", "1"); // On "1" Off "0"
define("SMTP_USERNAME", "SMTP Username");
define("SMTP_PASSWORD", "SMTP Password");
define("SMTP_HOST", "SMTP Host Name");
define("SMTP_PORT", "SMTP Port");
define("SMTP_FROM_EMAIL", "[email protected]"); //Your website support email.
define("SMTP_FROM_TITLE", "Your Website Support Name"); //eg: Support Website Name
?>
Localhost
define('BASE_URL', 'http://localhost/wallscript/');
define('API_BASE_URL', 'http://localhost/wallscript/');
define('API_BASE_URL', 'http://localhost/wallscript/');
Hosted with Domain
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
Step 4
Give read and write permission to the uploads folder, I recommend use XAMPP server.
sudo chmod -R 777 uploads
Step 5
.htaccess for root folder htdocs or www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^youwebsite.com
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.yourwebsite\.com$
RewriteCond %{REQUEST_URI} !^/wallscript/
RewriteRule (.*) /wallscript/$1
RewriteCond %{HTTP_HOST} ^youwebsite.com
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.yourwebsite\.com$
RewriteCond %{REQUEST_URI} !^/wallscript/
RewriteRule (.*) /wallscript/$1
Installation Video
Wall Script 7 Note
If you are using Wall Script 7.0, please don't include new files. It may damage existing script. Please try to work with fresh workspace, take a backup your previous work.
No comments:
Post a Comment