开发者

cant run php files in a folder on windows 7 webserver which was previously created on xp webserver?

开发者 https://www.devze.com 2023-04-11 06:21 出处:网络
im doing a php project. all is fine doing it in xp webserver which im using iis..but now i have set up a new pc with windows 7 and iis.

im doing a php project. all is fine doing it in xp webserver which im using iis..but now i have set up a new pc with windows 7 and iis.

problem is when i copy my php files which is in a folder(e.g portal1) from the xp wwwroot to the windows 7 wwwroot, i cant access it on the browser. it returns an internal server error.

now i assumed i didnt properly set up my web server or even php. i have done it a dozen times following tutorials and im pretty sure its all correct.

i have done a further 开发者_如何学Cresearch on the folder itself and has led me to a theory that this has to do with permissions.

when i copy directly the whole thing,it wont run, BUT if i CREATE a folder and the subfolder with all the same names as the one i copied and just take the php files and put it accordingly, it runs ok!!

now that has something to do with inherited permission i think. how do i overcome this? i dont want to everytime take the updated work folder from my partner which is done in xp and i have to create new folder and its subfolder with all the same name on my machine and then copy the php files accordingly. thats a lot of work!!

i just want to copy the folder and put it in my wwwroot folder and run it on the browser without problems. how do i overcome this permission issue?

any ideas?


By the sounds of things, you're working on a project with someone else. Copying & pasting is the absolute worst way of sharing files when working on a project with multiple people. You should really be using versioning like git. That's pretty hard to set up and learn though. An easy solution which will work for the time being (but won't manage conflicts well) is to use Dropbox. Set up a free Dropbox account, and create a folder in that called www or whatever you want. Then install WAMP (way better than IIS), and create an alias to the www folder in your Dropbox. Do this on both machines. Now every time your partner makes a change, it will be instantly reflected on your machine, and vice versa. Easy, free, and will work while you learn a versioning tool.

I know this doesn't address your actual problem, but it should be more helpful to you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号