สคริปต์ ทำเว็บตัวนี้ เป็นของเมืองนอกนะครับ เหมาะสำหรับการทำเว็บของของ ในต่างประเทศ เป็นของฟรี ที่ทางเว็บเขาแจกไว้ เพื่อให้เราได้ใช้กัน หากติดใจแล้วก็สามารถจะซื้อได้
การติดตั้งก็ง่ายๆ ครับ เหมือนกับพื้นฐานทั่วๆ ไปนั่นแหละ
Installation instructions
- Unzip the package
- Upload folders and files to your server. You may upload it to the root directory or to any subdirectory
- Directories: 'languages/', 'users_content/', 'system/cache/' and 'system/view/smarty/templates_c/' directories and all their subdirectories and files must have 777 CHMOD attributes on your server
- Create new MySQL database on the server. Usually it may be done via control panel on your hosting.
- Open 'system/config/database.php' file with a text editor and set your database settings. For example:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "user name";
$db['default']['password'] = "your pass here";
$db['default']['database'] = "database name";Do not use special symbols in database password like $@'-_^"\|/&%#* , use only alpha-numeric symbols in lower or upper case. - Open 'system/config/config.php' file with a text editor and set your paths settings. Typically there are 2 config options you need to change in this file - base domain name and path to subdirectory with trailing slashs. If your site is not in subdirectory - leave it empty. For example:
$config['base_url'] = "http://www.example.com/";
$config['subdirectory'] = "subdirectory/"; - config.php and database.php files must be saved in UTF-8, all modified files must be saved in UTF-8
- Go to 'http://mysite/' – this will run installation. You must get the list of accomplished pre-installation tests and 'Database installed!' final message.
- Fill in initial settings on next steps of installation: login, email and password of the root user, site name and site email.
- Installation completed.
- Read Getting started article of this manual in order to set up you directory script.
Note 1: if you get a blank page on 7th step, try to change this line in database.php from
$db['default']['dbdriver'] = "mysqli";
to
$db['default']['dbdriver'] = "mysql";
$db['default']['dbdriver'] = "mysqli";
to
$db['default']['dbdriver'] = "mysql";
Note 2: in the case that you can't upload images in your admin panel (like site logo or listings images) first of all check that 'users_content/' folder and ALL its subfolders have 777 CHMOD attributes, if it didn't help - try to play with this variable in config.php file:
$config['users_content_server_path'] = $_SERVER['DOCUMENT_ROOT'] . '/' . $config['subdirectory'] . 'users_content/';or
$config['users_content_server_path'] = '/' . $_SERVER['DOCUMENT_ROOT'] . '/' . $config['subdirectory'] . 'users_content/';or
$config['users_content_server_path'] = '/' . $config['subdirectory'] . '/users_content/';or
$config['users_content_server_path'] = $config['subdirectory'] . 'users_content/';
$config['users_content_server_path'] = $_SERVER['DOCUMENT_ROOT'] . '/' . $config['subdirectory'] . 'users_content/';or
$config['users_content_server_path'] = '/' . $_SERVER['DOCUMENT_ROOT'] . '/' . $config['subdirectory'] . 'users_content/';or
$config['users_content_server_path'] = '/' . $config['subdirectory'] . '/users_content/';or
$config['users_content_server_path'] = $config['subdirectory'] . 'users_content/';
Note 3: If you get 404 or 500 error during installation, then in config.php file try to change this line:
$config['index_page'] = "index.php";
Note 4: also you may play with this settings:
in .htaccess file change from
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^(.*)$ ./index.php [L]
to
RewriteRule ^(.*)$ index.php/$1 [L]
#RewriteRule ^(.*)$ ./index.php [L]
in .htaccess file change from
#RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^(.*)$ ./index.php [L]
to
RewriteRule ^(.*)$ index.php/$1 [L]
#RewriteRule ^(.*)$ ./index.php [L]
or such settings when you get "No input file specified." error
RewriteRule ^(.*)$ /index.php?/$1 [L]
#RewriteRule ^(.*)$ ./index.php [L]
#RewriteRule ^(.*)$ ./index.php [L]
and in config.php file you may play with these
$config['uri_protocol'] = "REQUEST_URI";
may be changed to
$config['uri_protocol'] = "AUTO";
$config['uri_protocol'] = "REQUEST_URI";
may be changed to
$config['uri_protocol'] = "AUTO";
ภาพประกอบ เพื่อให้ดูว่า ลักษณะเว็บเป็นอย่างไร
เมื่อติดตั้งเสร็จแล้ว
admin (ลองเข้าเว็บที่ติดตั้งเสร็จ) >>>> http://www.salephpscripts.com/demo2/login/
login: admin@admin.com
password: admin
download >>>> ดาวน์โหลดตัวสคริปต์ที่นี่