½±ÀøÍøÕ¾v1.7×°Öý̳̼°Òªº¦ÉèÖð취

ȪԴ£ºÖ¤È¯Ê±±¨Íø×÷Õߣº
×ÖºÅ

ÉèÖÃÎļþÉèÖÃ

ÉèÖÃÎļþ£ºÔÚ½âѹºóµÄ×°ÖðüĿ¼ÖÐÕÒµ½configÎļþ¼Ð£¬½«ÆäÖеÄconfig.sample.phpÎļþ¸´ÖƲ¢ÃüÃûΪconfig.php¡£È»ºó·­¿ªconfig.phpÎļþ£¬ÉèÖÃÊý¾Ý¿âÅþÁ¬²ÎÊýÈçÏ£º

$db_host='localhost';$db_name='reward_db';$db_user='reward_user';$db_pass='your_password';

Web·þÎñÆ÷ÉèÖãºÆ¾Ö¤ÄúËùʹÓõÄWeb·þÎñÆ÷ÀàÐ;ÙÐÐÏìÓ¦ÉèÖá£ÈôÊÇÄúʹÓõÄÊÇApache·þÎñÆ÷£¬ÇëÔÚ/etc/apache2/sites-available/Ŀ¼Ï½¨ÉèÒ»¸öеÄÉèÖÃÎļþreward_website.conf£¬ÄÚÈÝÈçÏ£º

.ÉèÖÃPostfix

±à¼­/etc/postfix/main.cfÎļþ£¬Ìí¼ÓSMTP·þÎñÆ÷ÉèÖãº

myhostname=mail.yourwebsite.commydomain=yourwebsite.commyorigin=/etc/mailnameinet_interfaces=allmydestination=localhostrelayhost=smtp.yourmailprovider.com:587smtp_tls_security_level=encryptsmtp_tls_note_starttls_offer=yessmtp_tls_policy_maps=hash:/etc/postfix/tls_peerssmtp_use_tls=yessmtp_sasl_auth_enable=yessmtp_sasl_password_maps=hash:/etc/postfix/sasl_passwdsmtp_sasl_security_options=noanonymoussmtp_tls_CAfile=/etc/ssl/certs/ca-certificates.crt

×°ÖÃSSLÖ¤Êé

½«SSLÖ¤ÊéºÍ˽ԿÉÏ´«µ½·þÎñÆ÷£¬²¢ÔÚNginxÉèÖÃÖÐÌí¼ÓSSLÉèÖá£ÀýÈ磺

server{listen80;server_nameyourwebsite.com;return301https://$server_name$request_uri;}server{listen443ssl;server_nameyourwebsite.com;ssl_certificate/etc/letsencrypt/live/yourwebsite.com/fullchain.pem;ssl_certificate_key/etc/letsencrypt/live/yourwebsite.com/privkey.pem;ssl_protocolsTLSv1.2TLSv1.3;ssl_ciphers'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256';root/var/www/reward_website/v1.7/public;indexindex.phpindex.html;location/{try_files$uri$uri//index.php?$query_string;}location~\.php${includesnippets/fastcgi-php.conf;fastcgi_passunix:/var/run/php/php7.4-fpm.sock;}location~/\.ht{denyall;}}

×°Öò¢ÉèÖÃNginx

±à¼­NginxÉèÖÃÎļþ£¬Ìí¼ÓÒÔÏÂÄÚÈÝÒÔÖ¸Ïò½±ÀøÍøÕ¾µÄ¸ùĿ¼¡£

server{listen80;server_nameyourwebsite.com;root/var/www/reward_website/v1.7/public;indexindex.phpindex.html;location/{try_files$uri$uri//index.php?$query_string;}location~\.php${includesnippets/fastcgi-php.conf;fastcgi_passunix:/var/run/php/php7.4-fpm.sock;}location~/\.ht{denyall;}}

×°Öþ籾ÔËÐÐ

ÔËÐÐ×°Öþ籾£ºÔÚä¯ÀÀÆ÷Öлá¼ûÄúÊʲÅÉèÖõÄÓòÃû»òIPµØµã£¬ÀýÈçhttp://reward.yourdomain.com£¬Äú½«¿´µ½½±ÀøÍøÕ¾v1.7µÄ×°ÖýçÃæ¡£Æ¾Ö¤ÌáÐѾÙÐÐÒÔϰ취£º

Ñ¡ÔñÓïÑÔ¡£ÊäÈëÊý¾Ý¿âÐÅÏ¢£¬µã»÷¡°Ìá½»¡±¡£Ñ¡Ôñ×°ÖÃËùÐèµÄ²å¼þºÍÄ£¿é£¬µã»÷¡°Ìá½»¡±¡£ÏµÍ³½«×Ô¶¯½¨ÉèËùÐèµÄÊý¾Ý±íºÍÉèÖÃÎļþ¡£

Íê³É×°Öãº×°ÖÃÍê³Éºó£¬Äú½«¿´µ½¡°¹§Ï²£¬ÄúµÄÍøÕ¾ÒÑÀÖ³É×°Öã¡¡±µÄÌáÐÑÐÅÏ¢¡£µã»÷¡°µÇ¼¡±½øÈëºǫ́ÖÎÀíϵͳ¡£

ÔÚÀÖ³É×°Öý±ÀøÍøÕ¾v1.7ºó£¬½ÓÏÂÀ´µÄÒªº¦ÉèÖð취½«°ï?ÖúÄúÓÅ»¯ÍøÕ¾µÄ¹¦Ð§ºÍÐÔÄÜ£¬Ê¹Æä¸üºÃµØ·þÎñÓÚÄúµÄÓû§ºÍÓªÒµÐèÇó¡£

У¶Ô£ºÔ¬Àò(1C0m4pJyqZtPma0S7t9ZFfz4hTykKag)

ÔðÈα༭£º Áõ¿¡Ó¢
ΪÄãÍÆ¼ö
Óû§Ì¸ÂÛ
µÇ¼ºó¿ÉÒÔ½²»°
ÍøÓÑ̸ÂÛ½ö¹©Æä±í´ïСÎÒ˽¼Ò¿´·¨£¬²¢²»Åúע֤ȯʱ±¨Ì¬¶È
ÔÝÎÞ̸ÂÛ