Hello, I have tried long to find an answer to my question. Most posts refer to issues involving multiple sites using a single code base, but what I want to do is to build a Drupal 7 site in a subdomain of a Drupal 6 site that is up and running. In my shared hosting environment I have created, in cpanel, a subdomain called mysubdomain.mysite.com. I have created a new database and user for the D7 site and I have extracted the Drupal 7 files and folders into the subdirectory that cpanel created for mysubdomain.mysite.com, but when I try to navigate to mysubdomain.mysite.com/ or mysubdomain.mysite.com/install.php or mysubdomain.mysite.com/index.php I get this error message:
"Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@mysubdomain.mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
I have tried editing the .htaccess file in the subdomain's directory (let's call it "mysubdirectory"). I tried "RewriteBase /mysubdirectory" and "RewriteBase /mysubdirectory/" and "RewriteBase /" but I keep getting the same error. What do I need to do to get the Drupal 7 site's install utility to launch properly and have the D7 site run independent of the D6 site?
Comments
Did you unpack/unzip the
Did you unpack/unzip the Drupal 7 package so the .htaccess and index.php files are located in the subdomains directory?
Yes, the directories and
Yes, the directories and files are properly extracted into the subdomain's directory.
Hi, If you have created a new
Hi, If you have created a new subdomain (mysubdomain.mysite.com) and cpanel create a directory that is not related with the old D6 directory, you do not need to modify your htaccess for BaseUrl, because for drupal the base url of "mysubdomain.mysite.com" is /. It a new subdomain, and like a normal domain you need to install D7 in the normal way.
You're not installing drupal in mysite.com/mysubdomain, but you're installing drupal in mysubdomain.mysite.com.
M.
Freelancer Senior Drupal Developer -- http://www.ziodrupal.net -- http://www.ziobuddalabs.it
Thank you. I understand the
Thank you. I understand the distinction. I have opened a ticket with the shared hosting provider to see if there is a server misconfiguration.
Solved
I contacted tech support for my shared hosting service and they responded: "As the server is running Suphp you cannot define php parameters in .htaccess. We have copied the servrer level php.ini to your account where you can modify the php parameters." They also renamed .htaccess to .htaccess_old to test navigation and that worked. So I changed it back to .htaccess and deleted PHP parameter settings in .htaccess and set them instead in php.ini. I added the following to the .htaccess file to point to the php.ini file "suPHP_ConfigPath /home/myaccount/mysubdirectory/php.ini." It works.