I know that this has been done to death and that everybody else seems to have gotten it working with minimal fuss, but I am stuck.
I'm on a shared hosting account with cpanel using linux, apache 2.2.15, php 5.2.13, and SS2.4.2.
I thought I followed banal's very easy, straight forward instructions but can't seem to get past the errors. My questions are 1.) Am I interpreting the instructions correctly?, 2.) Did I code the symlink correctly?
The Directions:
Step 1: Place the following files in their own directory (after reading various comments I'm not sure if this is supposed to be above the root or in the root, but I tried both)
+- sapphire
+- cms
+- googlesitemaps
+- dataobject_manager
+- swfupload
+- _ss_environment.php
Step 2: Place a copy of assets and mysite in each domain's directory
Step 3: Add a symlink to sapphire, cms, googlesitemaps, dataobject_manager and swfupload in each domain's directory.
Step 4: Update the config file for each domain to include require_once('conf/ConfigureFromEnv.php');
Did I at least get this part right?
symlink
Putting the core files (sapphire, cms, etc...) in their own folder created a 500 error because it couldn't find main.php in sapphire. I assumed that this meant that I did something wrong with the symlink, but I don't see how or what I did wrong. All I had to do was replace the username,sourcedirectory and where it needs to link to with my own information and save it as a php file.
<?php symlink('/home/honeybunny/public_html/ss242/sapphire', '/home/honeybunny/public_html/subdomain.com/sapphire');?>
but this is the error message I got:
Warning: symlink() [function.symlink]: File exists in /home/honeybunny/public_html/subdomain.com/sapphire/getfiles.php on line 2
What am I doing wrong? I thought that it was supposed to be symlink('where the file is', 'where you are trying to link it'); I tried placing the paths the other way with the "where I am linking to" part first and the "where the file is" part second, but still got the same error.
I had considered that the problem may be related to permissions, but I wasn't sure which files needed to be 777. I tried making the subdomain's files 777 but got 500 errors, so I reset them and tried changing the main sapphire, cms, googlesitemaps, etc... files to 777 which also resulted in 500 errors so I returned them to their original permissions.
Did I just set everything up wrong? Is my code wrong? I'm on week three of my on again/off again earache and it's really hard to think straight. Any insight into where I am going wrong is greatly appreciated.
HB