jak zainstalowac script php
: 21 maja 2012, 09:15
witam o to instrukcja instalcji scriptu guru freelancer instalowalem pare scriptow php a tego nie moge prosze mi powiedziec co mam zrobic zeby ruszyl instalator o to instrukcja:
1. Extract archive
2. Copy all the files from public_html to document root on server (usually public_html)
3. Chmod templates_c, admin/templates_c, upload and subfolders of this folders to 777
4. From cpanel, create database and user for mysql. Import from mysql_database the workman_main.sql into your database
5. Edit includes/config.php
case "yourwebsite.com":
case "www.yourwebsite.com":
$config['DB_Type'] = 'mysql';
$config['DB_Host'] = 'localhost';
$config['DB_Name'] = 'database name';
$config['DB_User'] = 'databaase username';
$config['DB_Passwd'] = 'database password';
break;
default:
$config['DB_Type'] = 'mysql';
$config['DB_Host'] = 'localhost';
$config['DB_Name'] = 'database name';
$config['DB_User'] = 'databaase username';
$config['DB_Passwd'] = 'database password';
break;
$config['Website']="http://www.mapfreelance.com";
$config['Google_Api_Key']="ABQIAAAA7cAzs1OfS6G22u1wo258kxSaRmIXYHE1eZRG6FscWOnrgMJXvxSwVGHOOYhXjIehbxYTGn1UoRvHvg";
$config['Twitter_Link']="http://www.twitter.com/twitteraccount";
$config['Facebook_Link']="http://www.facebook.com/facebookaccount";
6. Check if .htaccess is overwritten, if not overwrite with the file from public_html
7. Edit tweet.php
$sqlhost="your sql hostname";
$sqluser="mysql usernam";
$sqlpass="mysql password";
$sqldb="mysql database";
$website="your website ex. http://www.mywebsite.tld";
$twitteruser="twitter username";
$twitterpass="twitter password";
8. Hosting cpanel add the following to cron where Your Home Directory is the path on server, ex /home/mywebsite in cpanel
you can find this value in the left at Stats second row.
0,30 * * * * php Your Home Directory/public_html/cronjobs/send_mail_30_mins.php
* * * * * php Your Home Directory/public_html/cronjobs/deactivate_user.php
* * * * * php Your Home Directory/public_html/cronjobs/membership.php
* * * * * php Your Home Directory/public_html/cronjobs/send_all_project.php
* * * * * php Your Home Directory/public_html/cronjobs/send_area_wise_project.php
* * * * * php Your Home Directory/public_html/cronjobs/send_new_projects.php
first one is executed every 30 minutes, rest of them every minute.
9. Chmod 777 public_html\2010sp.xml and public_html\recent.js
10. Edit twitter.php and change with your username and password.
11. Links and important files
- admin http://www.yoursite.com/admin default username and password: admin admin
- default layout - templates/default_layout.tpl
- default header - templates/default_header.tpl
- configuration file - includes/common.php
- mysql database - table website_config
- if you need anything bulk replace, there is a replace.php file in root, just read and edit
dolaczam plik config.php
baze danych msql mam zrobiona
dziekuje za odpowiedz
1. Extract archive
2. Copy all the files from public_html to document root on server (usually public_html)
3. Chmod templates_c, admin/templates_c, upload and subfolders of this folders to 777
4. From cpanel, create database and user for mysql. Import from mysql_database the workman_main.sql into your database
5. Edit includes/config.php
case "yourwebsite.com":
case "www.yourwebsite.com":
$config['DB_Type'] = 'mysql';
$config['DB_Host'] = 'localhost';
$config['DB_Name'] = 'database name';
$config['DB_User'] = 'databaase username';
$config['DB_Passwd'] = 'database password';
break;
default:
$config['DB_Type'] = 'mysql';
$config['DB_Host'] = 'localhost';
$config['DB_Name'] = 'database name';
$config['DB_User'] = 'databaase username';
$config['DB_Passwd'] = 'database password';
break;
$config['Website']="http://www.mapfreelance.com";
$config['Google_Api_Key']="ABQIAAAA7cAzs1OfS6G22u1wo258kxSaRmIXYHE1eZRG6FscWOnrgMJXvxSwVGHOOYhXjIehbxYTGn1UoRvHvg";
$config['Twitter_Link']="http://www.twitter.com/twitteraccount";
$config['Facebook_Link']="http://www.facebook.com/facebookaccount";
6. Check if .htaccess is overwritten, if not overwrite with the file from public_html
7. Edit tweet.php
$sqlhost="your sql hostname";
$sqluser="mysql usernam";
$sqlpass="mysql password";
$sqldb="mysql database";
$website="your website ex. http://www.mywebsite.tld";
$twitteruser="twitter username";
$twitterpass="twitter password";
8. Hosting cpanel add the following to cron where Your Home Directory is the path on server, ex /home/mywebsite in cpanel
you can find this value in the left at Stats second row.
0,30 * * * * php Your Home Directory/public_html/cronjobs/send_mail_30_mins.php
* * * * * php Your Home Directory/public_html/cronjobs/deactivate_user.php
* * * * * php Your Home Directory/public_html/cronjobs/membership.php
* * * * * php Your Home Directory/public_html/cronjobs/send_all_project.php
* * * * * php Your Home Directory/public_html/cronjobs/send_area_wise_project.php
* * * * * php Your Home Directory/public_html/cronjobs/send_new_projects.php
first one is executed every 30 minutes, rest of them every minute.
9. Chmod 777 public_html\2010sp.xml and public_html\recent.js
10. Edit twitter.php and change with your username and password.
11. Links and important files
- admin http://www.yoursite.com/admin default username and password: admin admin
- default layout - templates/default_layout.tpl
- default header - templates/default_header.tpl
- configuration file - includes/common.php
- mysql database - table website_config
- if you need anything bulk replace, there is a replace.php file in root, just read and edit
dolaczam plik config.php
baze danych msql mam zrobiona
dziekuje za odpowiedz