0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Vhosts and php

  • Vhosts and php

    Posted 15 years 7 months ago
    • I've been banging my head against this for the last three hours, and I can't find a solution.

      I'm creating a new version of my site with a new template. To do this, I've set up three vhosts on my MAMP installation.
        newprod - a Rockelauncher version of the new site, with no sample data
        rlinstall - a Rockelauncher version of the new site, with sample data for reference
        oldprod - to be a copy of my live site

      newprod and rlinstall worked fine - I just copied the Rocetlauncher files in to the directory and ran the install scripts. They are both working fine.

      oldprod. I copied a joomlapack .ipa file and the kickstart file into an empty diorectory. When I try to execute the kickstart.php file it errors. Any .php file errors - it appears to redirect top $scriptname as if it's trying to download the file rather than execute it - in fact in safari rather than firefox it does download it. Any .html files work correctly.

      My vhosts file is as follows:
      <VirtualHost *> 
      DocumentRoot "/Applications/MAMP/htdocs" 
      ServerName localhost
      </VirtualHost>
       
      <VirtualHost *> 
      DocumentRoot "/Volumes/Data/Joomla_RT_Nexus_j15" 
      ServerName newprod 
      </VirtualHost>
       
      <VirtualHost *> 
      DocumentRoot "/Volumes/Data/nexus_data" 
      ServerName rlinstall 
      </VirtualHost>
       
      <VirtualHost *> 
      DocumentRoot "/Volumes/Data/fred" 
      ServerName oldprod
          
      </VirtualHost>

      There is an error in the Apache log - but I can't realy see why that's the error : [Fri Oct 16 12:46:57 2009] [error] [client ::1] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://oldprod:8888/kickstart.php

      Apache says the configuration file is correct syntax - though I guess the logic might be wrong.


      Any ideas - or better places to look. I've googled pretty extensively and haven't come up with an answer that works for me

      regards
  • Re: Vhosts and php

    Posted 15 years 7 months ago
    • Solved - It was a .htaccess problem

      Not sure exactly what was causing this, but I just renamed .htaccess to take it out of the equation totally - and the installation now worked. The site worked ok as well, but as soon as I put the ,htaccess back the site fwll over. As I'm just referring to the contant on this site, and it's local, it's not an issue. When I put the new site back into production I'll re-active the .htaccess on the ISP host - where it al appears to work.
  • Re: Vhosts and php

    Posted 15 years 7 months ago
    • Hi,

      Some htaccess can include redirects to send a non-www URL to a WWW URL to avoid duplicate content. Your htaccess file may have something like that.

      If You post it in a ZIP I'll look at it.

      Mike
    • www.jikometrix.net
      JIKOmetrix - Reliable web hosting

Time to create page: 0.082 seconds