TurnKey Linux Virtual Appliance Library

Turn on Symlinks? - Help

Robert's picture

Untouched Fresh Install: Lamp, TurnKey Linux 11.3 / Ubuntu 10.04 Lucid LTS

I can not seem to get my script to output to a page. PHP is working and I have mod_rewrite on. I have scoured the web for an answer with no luck. So I just did a fresh install so I will be starting from scratch if I should obtain an answer here.

My .htaccess file located in:
/var/www/mywebsite.com
looks like this:

<IfModule mod_rewrite.c>
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^detail/(.*)$ index.php?type=detail&asin=$1 [NC,L]
RewriteRule ^node/([^/]+)$ index.php?type=node&node=$1 [NC,L]
RewriteRule ^node/([^/]+)/page/([^/]+)$ index.php?type=page&node=$1&page=$2 [NC,L]
RewriteRule ^about$ index.php?type=about [NC,L]
RewriteRule ^listmania/(.*)$ index.php?type=listmania&id=$1 [NC,L]
RewriteRule ^search$ index.php?type=search&%{QUERY_STRING} [NC,L]
RewriteRule ^cart$ index.php?type=cart&action=view [NC,L]
RewriteRule ^cart/add/(.*)$ index.php?type=cart&action=add&asin=$1 [NC,L]
RewriteRule ^cart/remove/(.*)$ index.php?type=cart&action=remove&asin=$1&%{QUERY_STRING} [NC,L]
RewriteRule ^cart/modify$ index.php?type=cart&action=modify&%{QUERY_STRING} [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/(.*)$ index.php?type=images&asin=$1 [NC,L]
</IfModule>

When I access the site and "view source" in my browser I just see the number 1 and nothing else.

Anyone know how to get symlinks to work for a domain? I'm kind of new at this.

I must say... I really like Turnkey! It's the best one I have installed, and I think I have installed them all.

Thank you in advance for your time and help.

 

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)