08-28-2006, 09:42 PM
Join Date: Oct 2003
Location: Los Angeles, California
No problem. We're here to help. I think this is the classic problem of "what've got here...is a failure to communicate." Can't help the guns-n-roses quote.
1) We need to make an distinction between the way PHP scripts work and how Ruby on Rails work. A Rail app is an request router which can take in ALL requests. PHP scripts are just files that individually executed by an script handler. So don't think about Rails when configuring php. Two different beast.
Login. Go to "Server -> External Apps" and "Server -> Script Handler". You will see that PHP is configured at the "Server" level and the php executable is bound to execute all files ending with .php.
You should also see this in your own local lsws 2.2 setup. PHP 4.4.4 with LSAPI is preconfigured for you.
3) To install WordPress, just copy over the files to a VHOST docroot of your choice. You don't have to create a new one or create any "external app"s under that vhost. The PHP script handler is already defined at Server level so it applies to all vhosts.
4) Setup suEXEC.
Refer to above wiki. In summary, click on the "Virtual Hosts" link at the left menu of your local lsws web admin. Yes, the "Virtual Hosts" label is a link though not too obvious. We will fix this in our 3.0 release where the UI is going to be revampeld. Now that you are in "Vritual Hosts", edit the one that host your wordpress files and set "CGI Set UID Mode” to “Docroot UID”. Even though it's labeled "CGI...", it actually applies to all external applications/scripts. We'll fix the misnomer in the 2.2.1 release.
5) Restart and your're done. =)
Last edited by xing; 08-28-2006 at 09:48 PM..