community server and wordpress

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Location: USA
Contact:

community server and wordpress

Post by reelstuff » Wed Jul 01, 2015 2:14 pm

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,

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: community server and wordpress

Post by ghettocottage » Wed Jul 01, 2015 4:58 pm

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/

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Location: USA
Contact:

Re: community server and wordpress

Post by reelstuff » Wed Jul 01, 2015 5:02 pm

Hi, thanks, yes digital ocean is a definite consideration, I will have a look

Post Reply

Return to “CGIs and the Server”