简体   繁体   English

如何从网络上的其他计算机访问本地WordPress安装

[英]How to access local WordPress installs from other machines on my network

I have XAMPP running fine on one machine and I have 2 WordPress installs running fine on that machine. 我在一台机器上运行良好的XAMPP,而我在那台机器上运行良好的2个WordPress安装。 I would like to be able to access and work on those WordPress installs on other machines on my network. 我希望能够访问和处理网络上其他计算机上的那些WordPress安装。

Right now, I have it set so that if I try to access those directories from another computer on the network, all I get is either the XAMPP splash screen, or a 404 error if I try to access specific folders. 现在,我已经对其进行了设置,以便如果我尝试从网络上的另一台计算机访问这些目录,则得到的只是XAMPP启动画面,或者如果我尝试访问特定的文件夹则出现404错误。

I've researched this and researched this and I have found numerous posts about how to do this.... but only in bits and pieces. 我已经对此进行了研究,并且发现了许多有关如何执行此操作的帖子。

Does anyone know of a step by step, start to finish, guide of how to do this? 有谁知道一步一步,从头到尾,如何做的指南? In layman's terms? 用外行的说法?

Remote (from another network) would be great too. 远程(来自另一个网络)也将很棒。 But I'll cross that bridge once I figure this out. 但是一旦我弄清楚了,我就会过桥。

Any help would be appreciated. 任何帮助,将不胜感激。

Thanks! 谢谢!

I would suggest rather than shared folders you use an FTP client / server - I use Filezilla server and client for my local sandbox testing server. 我建议您使用FTP客户端/服务器而不是共享文件夹-我将Filezilla服务器和客户端用于本地沙箱测试服务器。 This will give you additional info like file and folder groups and permissions. 这将为您提供其他信息,例如文件和文件夹组以及权限。

Got to ask the question what OS? 要问什么操作系统? have you opened port 80 on the server machine? 您是否在服务器计算机上打开了端口80?

Things like this can also occur on Linux if the folders and files do not have the correct groups for access and or permissions. 如果文件夹和文件没有用于访问和/或许可的正确组,则在Linux上也可能发生这种情况。

chown -R apache:apache /var/www/html chown -R apache:apache / var / www / html

the above if on linux will assign all the folders and files to be accessed by the apache process. 上面的(如果在Linux上)将分配apache进程要访问的所有文件夹和文件。 not having the correct groups assigned can give you 404 when you know the files are actually there. 当您知道文件确实存在时,没有分配正确的组可以给您404。

also check the file and folder permissions, 还要检查文件和文件夹的权限,

different files and directories have permissions that specify who and what can read, write, modify and access them - this wordpress page gives a good overview of permissions http://codex.wordpress.org/Changing_File_Permissions 不同的文件和目录具有指定可以读取,写入,修改和访问它们的人员和权限的权限-此wordpress页面很好地概述了权限http://codex.wordpress.org/Changing_File_Permissions

edit ps to access then from other networks all you will have to do is forward ports from your router to your internal server then your ftp and www services will be accessable from the outside world. 编辑ps进行访问,然后从其他网络进行访问,您只需要将端口从路由器转发到内部服务器,即可从外部访问ftp和www服务。 I would suggest using a .htpass htaccess password to protect your services at this point. 我建议此时使用.htpass htaccess密码来保护您的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM