Windows PHP interface with Linux box
I plan to create a similar installation script just like the install for vbulletin. I plan to make a windows php web-based installation script to interface with a linux box. Basically this web-based installer will connect to a linux box, and read/write to the configuration files from it. I want to let the user change the configuration settings of the linux box from web-based installer in a windows environment.
There are several ways to approach this problem, but I do not know if it would work, so please help me out. Tell me which is a good approach.
1. Create a windows web-based script that ask for the settings then it writes to a temp file. Then connect to the linux box and transfer files over via scp command? How would I go about using what php command to connect into a linux server?
2. Create a windows web-based script that connects to the linux box. Opens and read information from the configuration files and display it on the screen(windows). It ask the user to make changes from the script then write back to the linux box. What php command I use connect into the linux box and to open each files(configuration) and read/write to it in the linux server?
The reason for the web base installer is because some user do not know how to use the LINUX OS and do not know how to configure the LINUX OS settings. Please let me know if you have any suggestion.