登录 | 注册 | FAQ
Anonymous

working with XAMPP

+ 发表回复

2 篇帖子 分页: 1 / 1


working with XAMPP

olamulekan » 周四 4月 03, 2014 9:50 pm

Thanks for your previous replied, I don't have a hosted site for and I am really working with XAMPP. My concern is can I create username., password etc just de way I will do it in host database, if not how can I effectively work with local host. All my efforts are not yielding for now.
头像

olamulekan

  • 帖子: 7
  • 注册: 周四 3月 20, 2014 4:20 pm

Re: working with XAMPP

XainPro » 周五 4月 04, 2014 7:11 am

Apache and MySQL can be configured so that they only listen to requests from your own computer. For most test systems this is fine and it greatly reduces the risk because the services are not reachable from the Internet.

Before you start XAMPP for the first time find and edit these files:

For Apache edit the files xampp\apache\conf\httpd.conf and xampp\apache\conf\extra\httpd-ssl.conf. Look for lines starting with "Listen" such as

Listen 80

and replace them with

Listen 127.0.0.1:80

For MySQL open the file xampp\mysql\bin\my.cnf find the section "[mysqld]" and add this line

bind-address=localhost

After starting the services, verify the result by going to a command window and start and execute:

netstat -a -n

For the entries marked as LISTEN in the last column, look at the Listen column. It should always start with 127.0.0.1 or ::1 but not with 0.0.0.0.
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1