Page 1 of 1

community server and wordpress

Posted: Wed Jul 01, 2015 2:14 pm
by reelstuff
I was interested to see what the server would look like in a more modern setting, (been a few years since I set this up) after initial setup, it appears that a wordpress installation, (is interfering with the operation of the lc script in the cgi-bin) with forbidden, (

In the cgi-bin permissions set to 755

Code: Select all

.htaccess in cgi-bin
Options ExecCGI
AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-server
returns 404

Code: Select all

.htaccess wordpress installation 

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{HTTP_USER_AGENT} ^-?$ 
RewriteRule .* - [F] 
</IfModule>

# END WordPress
Returns 404


I also attempted to modify the .htaccess for the wordpress installation to allow cgi execution.

Code: Select all

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/cgi-bin(/.*)?$ [OR]
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [PT,L]
RewriteRule ^([a-zA-Z0-9-]+)/?$ /index.php [L]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ /index.php [L]
</IfModule>
# END WordPress
Everything returns a 500 error

===========
I may try this on a blank account without wordpress, running a VPS (known host)

Any thoughts suggestions ideas, snarky comments, ) thanks in advance,

Re: community server and wordpress

Posted: Wed Jul 01, 2015 4:58 pm
by ghettocottage
I have LC Server running fine on an Ubuntu VPS with DigitalOcean. There are several other websites installed on the VPS, including Wordpress sites.

I followed this little tutorial to install:

http://activethought.net/setting-livecode-server/

Re: community server and wordpress

Posted: Wed Jul 01, 2015 5:02 pm
by reelstuff
Hi, thanks, yes digital ocean is a definite consideration, I will have a look