# PHP Windows remote Redhat

**URL:** <https://forum.ansible.com/t/php-windows-remote-redhat/2819>\
**Category:** Get Help\
**Tags:** windows, collections\
**Created:** [December 9, 2023, 3:37am UTC](https://forum.ansible.com/t/php-windows-remote-redhat/2819 "2023-12-09T03:37:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manhht](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/manhht/32/1749_2.png) [@manhht](https://forum.ansible.com/u/manhht)\
**Post date:** [December 9, 2023, 3:37am UTC](https://forum.ansible.com/t/php-windows-remote-redhat/2819/1 "2023-12-09T03:37:48Z")

</div>

Hi everyone,  
Can I automation a Redhat server on Windows?

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [December 10, 2023, 7:53pm UTC](https://forum.ansible.com/t/php-windows-remote-redhat/2819/2 "2023-12-10T19:53:21Z")

</div>

Hi,

I think your post needs some clarification;

- What do you mean by “Redhat server” ?
- What action do you want to automate ?
- You mention PHP in your post’s title; how would it fit in your request ?

Very wild guess here; are you looking for a way to automate an [httpd / apache](https://httpd.apache.org/) server install, with a php hander (like [php-fpm](https://www.php.net/manual/en/install.fpm.php)) on a Windows Server machine ?

If so, yes, but that would not be as straightforward as on GNU/Linux. Perhaps with [win\_chocolatey](https://docs.ansible.com/ansible/latest/collections/chocolatey/chocolatey/win_chocolatey_module.html) module help ?

Please give us some more info and we might be able to assist you in a more effective way !

---

<div class="post-metadata">

**Author:** ![manhht](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/manhht/32/1749_2.png) [@manhht](https://forum.ansible.com/u/manhht)\
**Post date:** [December 15, 2023, 2:42am UTC](https://forum.ansible.com/t/php-windows-remote-redhat/2819/3 "2023-12-15T02:42:42Z")

</div>

Hello, thanks for your replying.

I have a server with Redhat os (A). I want to automate it. I have installed Ansible on it. Form Windows os, i access (A) via ssh and run playbook. Can you tell me how to copy file from Window to (A)? Thanks

---

<div class="post-metadata">

**Author:** ![ptn](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ptn/32/481_2.png) [@ptn](https://forum.ansible.com/u/ptn)\
**Post date:** [December 15, 2023, 4:37pm UTC](https://forum.ansible.com/t/php-windows-remote-redhat/2819/4 "2023-12-15T16:37:35Z")

</div>

So if I get you right, you’d like to use your Windows machine as Ansible control node to copy files from a playbook’s task on a target RHEL machine. Please correct me if I’m wrong.

As of today, [Windows Server is not supported as control node](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-node-requirements); you’d need to use WSL (which is technically a GNU/Linux machine running in a VM) to run playbooks from your ‘Windows’ box.
