Installing/fa From Online Manual

Jump to: navigation, search

نصب یک انجمن ساز SMF بسیار ساده است! SMF می تواند در پنج مرحله ساده نصب شود.

اس ام اف یک نرم افزار انجمن ساز رایگان است که می تواند روی وب سرور نصب شود. برای نصب به یک سرور وب PHP و پایگاه داده نیاز است. شما می توانید از ثبل پایگاه داده خود را ایجاد کنید (مطمئن شوید که تمام اطلاعات مهم پایگاه داده را نزد خود یادداشت کرده اید) یا با کمک نصاب این کار را در یک مرحله انجام دهید. لطفا برای اطلاعات بیشتر در مورد اینکه به چه چیزی برای نصب نیاز است requirements and recommendations را بخوانید.

برای نصب نرم افزار اس ام اف، به طور خلاصه مراحل زیر را انجام می دهید، مابقی مقاله جزئیات هستند:

جزئیات بیشتر مراحل:


ایجاد پایگاه داده ها

زمانی که پایگاه داده های خود را می سازید، حتما نام پایگاه داده ها، نام کاربر پایگاه داده ها و رمز عبور پایگاه داده ها را یادداشت کنید. بعدا در هنگام نصب به آن نیاز دارید. یک انجمن (Forum) اس ام اف برای ذخیره اطلاعات کاربران، ارسال ها و موضوعات، یک پایگاه داده ها نیاز دارد. شما می توانید برای ایجاد یک پایگاه داده ها و یک نام کاربری پایگاه داده ها از ابزاری که شرکت میزبان وب در اختیار شما می گذارد استفاده کنید تا اس ام اف با آن نام کاربری وارد شده و از پایگاه داده ها استفاده کند. اگر از انجام این مراحل غافل شوید، در هنگام نصب، اس ام اف به شما کمک خواهد کرد.

ایجاد یک پایگاه داده ها با استفاده از PHPMyAdmin

بیشتر میزبان های اشتراکی، این قابلیت را غیرفعال کرده اند. اگر قابلیت ایجاد یک پایگاه داده ها از طریق PHPMyAdmin میزبانی که استفاده می کنید فعال باشد، پایگاه داده ها را می توانید در صفحه نحست PHPMyAdmin ایجاد کنید.

ایجاد پایگاه داده ها با استفاده از پیشخوان (control panel)

معمولا شرکت هایی که خدمات میزبانی اشتراکی را ارائه می دهند، امکان ایجاد پایگاه داده از طریق PHPMyAdmin را غیرفعال کرده اند. اگر میزبان اشتراکی یک رابط کنترل پنل دارد، می توان از طریق آن یک پایگاه داده را ایجاد کرد. با انتخاب گزینه "MySQL Databases" یا "Database Wizard" (میزبان های مختلف اسامی مختلفی را برگزیده اند) به صفحه ای برای ایجاد یک پایگاه داده منتقل می شوید. SMF1.1 فقط از MySQL پشتیبانی می کند اما SMF2.0 از MySQL، PostgreSQL و SQLite نیز پشتیبانی می کند.

ایجاد یک کاربر پایگاه داده ها

یک کاربر پایگاه داده می تواند از طریق پیشخوانی که سرویس دهنده فضای وب در اختیار شما قرار می دهد اجاد شود. انتخاب گزینه ی "MySQL Databases" یا "Database Wizard" شما را به صفحه ای هدایت می کند که می توانید یک کاربر پایگاه داده ایجاد کنید. این گزینه ممکن است در سرویس دهنده های مختلف متفاوت باشد.

کاربر پایگاه داده باید دسترسی های SELECT, INSERT, UPDATE, DELETE, ALTER و INDEX را داشته باشد. دستسری های بیشتر امکان دارد به کاربر داده شود اگر نیاز باشد.

دریافت SMF

اولین مرحله دریافت یک نسخه از نرم افزار SMF است. از طریق یک مرورگر می توانید آخرن نسخه را بر روی کامپیوتر شخصی خود دانلود کنید. تمام فایل های قابل دانلود SMF در آدرس زیر قرار دارند: downloads

آخرین نسخه ی توصیه شده همیشه در آدرس زیر قابل دانلود است

http://download.simplemachines.org/


Extract the SMF Archive and Upload the Files to Your Website

The SMF install archive contains files that need to be copied to the correct place on your website before the installer can be executed. Wherever these files are located on the server, that is where your forum will be located. Extracting before uploading is usually the simplest method. If your host provides the necessary tools, you can try uploading before extracting.

You will need to use either FTP (in binary mode) or the tools in your hosting account's control panel (for more information on the control panel supplied by your hosting service, please see the documentation provided by your hosting service).

SMF can be uploaded to the site root, or to a directory on the site, such as www.yourdomain.com/forum.

Extracting Before Uploading

This is the way most people do it. It is easy, but can take longer.

  1. Extract the archive, usually by right-clicking the archive and selecting the "Extract All" option. When the install archive is extracted, a new folder should be created with all the files and directories in the correct places.
  2. Set your FTP client for binary transfer, select all the files and folders and copy them to the directory where you want to locate your forum.

Uploading Before Extracting

Some control panels, such as cPanel, give the ability to extract an archive right on the server. This can be a quicker than waiting for all the extracted files to copy via FTP. First, upload the file via your account's control panel. Second, select the extract option to extract the archive to the desired location -- the directory where you want your forum to be located.

Set File and Directory Permissions

File and directory permissions control who can see your files and use your directories. They can control whether you will be able to install mods to your forum. On Linux and other Unix-like servers the chmod command is used to designate permissions. On most servers, a setting of 755 for directories and 644 for files will work. If this does not work on your hosting service, you may need 777 or 775 for directories, and 666 or 664 for files. Some hosts do not allow using 777 for directories or 666 for files -- using such high values will cause Internal Server Errors, 500 erors, or other errors. If the permission on your files or directories does not make them writable, the SMF installer will report the problem -- if it can detect it.

Note: If a Windows server is being used rather than a Linux server, then you will need to contact your host to change the file/directory permissions.

Setting File Permissions with the Installer

In many cases, the SMF installer can handle this for you. If you want to give this a try, skip this step for now, and wait until you come to the appropriate point in the installer. The installer might need to ask you for FTP login details to get the job done, so be sure to make a note of them. If you run into any problems setting file permissions with the installer, you can use the instructions below for setting file permissions with FTP to handle it yourself.

Setting File Permissions with FTP

Using a control panel or FTP client, file permissions can be changed quickly and easily. Usually, FTP programs will allow permissions to be changed by right-clicking files/directories and selecting "Properties", "Attributes" or "Permissions". The desired numerical value can be entered, or if provided, check boxes can be changed.


اجرای نصاب

این آخرین مرحله است. شما می دانید که فایل ها را در کدام مسیر قرار دادید چون خودتان آن ها را باگزاری کردید. حالا به فایل install.php در همان مسیر اشاره کنید. برای مثال اگر فایل های شما در مسیر www.yourdomain.com/forum قرار دارد، شما می بایست در مرورگر مسیر www.yourdomain.com/forum/install.php را لود کنید.

سپس نرم افزار از شما اطلاعاتی را می خواهد. اطلاعاتی که از قبل آماده کرده اید.

Basic forum settings

Forum Name
The name for the forum being installed should go here. By default this is set to “My Community”. This can be changed later in the server settings section of the administration center.
Forum URL
The URL for the forum, without the trailing slash (http://www.yourdomain.com/forum, for example). The SMF installer will probably guess this one correctly.
Gzip Output
If Gzip output tests pass, use this to save bandwidth and make pages load faster.
Database Sessions
Choose whether to store sessions in the database or in files. Database Sessions is preferred -- they more reliable, secure, and may work better on sites with multiple servers.
UTF-8 Character Set
UTF-8 character sets are useful for international forums, or forums that use languages other than English.
Allow Stat Collection
This option allows Simple Machines to collect statistics from your forum, anonymously, to help the developers understand the needs of the user community.

Database server settings

Database type
The database schema can be selected here from a list of database schemas supported by the server being used. Newer schemas (for SMF 2.0) such as PostgreSQL and SQLite may be listed here if available. MySQL and PostgreSQL are recommended.
Server name
The location of the database is specified here. 99% of the time this will be localhost.
Username
The username used for the database user should be placed here. If help is required for this, the hosting service provider should be contacted.
Password
The password for the database user is entered here.
Database name
The name used for the database should be placed here. If help is required for this, the hosting service provider should be contacted.
Database prefix
The prefix for all tables associated with this install is specified here. Prefixing tables with unique prefixes enables more than one application, or SMF install, to use the same database safely.


Creating an administrator account

The SMF installer will ask for information to create the forum's administrator account. This information includes username, password and e-mail address for the administrator account. This account will be necessary to get access to the SMF administration center to manage and configure the forum.

Finishing the installation process

Once all steps of the installation process have been completed, check the box to remove the install files from the server. If this does not work, they will need to be deleted via FTP. All installer files should be removed from the server once the installation process is complete. SMF does not need then any longer, and they are a security risk.

Tidy Up

  • If you haven't already done so, delete install.php. It is a security risk.
  • Check your File and Folder Permissions. For safety
    • Most folder permissions can be set to 755, while most files can be set to 644
    • The only exceptions are your root forum folder and the attachments folder, which may need to be set as high as 777 on some servers (this setting will cause 500 errors on other servers)


Advertisement: