Page 1 of 1
500 Error when trying to run install
Posted: Wed Jan 02, 2008 5:59 am
by temills
I have completed the setup for CMSMS up to running the install as per the installation guide.
My configuration:
- Host: 1&1.com
- MySql: 5.0
- Php: 5
- Apache: ?
- .htaccess file: DirectoryIndex index.html index.p and AddType x-mapp-php5 .php
- Hostname: www.archerysolano.com
- CMS directory: cms[li]
Initially when I tried to access [hostname]/cms/index.html or [hostname]/cms/install/cms, I received a 500 error in my browser.
Using PUTTY, I tried to run index.html in both the cms and install directories. I recieved an "access denied" error. I changed the permissions on both files to 755. The error logs on 1&1.com are restricted.
When I execute cms/index.php using PuTTY, I get the following:
./index.php: ?php: No such file or directory
./index.php: line 24: syntax error near unexpected token `dirname(_'
./index.php: line 24: `$dirname = dirname(__FILE__);'
When I execute cms/install/index.php, I get:
./index.php: ?php: No such file or directory
Usage: global [-ailnrstTvx] pattern
global -c[sv] [prefix]
global -f[anrstvx] files
global -g[ailntvx] pattern
global -I[ailntvx] pattern
global -p[rv]
global -P[ailntvx] [pattern]
global -u[v]
./index.php: =: command not found
./index.php: =: command not found
./index.php: line 24: syntax error near unexpected token `set_magic_quotes_runtime(false)'
./index.php: line 24: `set_magic_quotes_runtime(false);'
What do I need to do next?
Re: 500 Error when trying to run install
Posted: Wed Jan 02, 2008 8:38 am
by Dr.CSS
I've done quite a few on 1and1 if I want one in a sub directory I just put it in like
http://multiintech.com/cmsms1.1/
multiintech is my main domain and cmsms1.1 is a subfolder...
When I set up a subfolder I FTP all the folders/files from an unpacked CMSMS download and change/set the permissions as per the
install guide, you have read the install guide, yes, then URL is multiintech.com/subfolder/install/index.php...
I see know need for .htaccess file for an initial install unless you have something in main domain that needs it...
Re: 500 Error when trying to run install
Posted: Wed Jan 02, 2008 5:22 pm
by Pierre M.
Hello,
temills wrote:
(...)running the install as per the installation guide.
Please post a link to the guide you are writing about.
temills wrote:
Initially when I tried to access [hostname]/cms/index.html or [hostname]/cms/install/cms, I received a 500 error in my browser.
What about http://[hostname]/cms/ or http://[hostname]/cms/install/ ?
temills wrote:
Using PUTTY, (...)
When I execute cms/index.php using PuTTY, I get the following:
./index.php: ?php: No such file or directory
(...)
When I execute cms/install/index.php, I get:
./index.php: ?php: No such file or directory
Usage: global [-ailnrstTvx] pattern
(...)
What do I need to do next?
The php scripts are not intended to be run from the command line but inside the webserver serving an http request. This is why the manual tell you to point
your browser to /cms/install/ to launch the install wizzard.
Have I understood well ?
Pierre M.
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 2:15 am
by temills
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 3:30 pm
by Pierre M.
Hello again,
thank you for making it clear which installation procedure you are following : Shell install.
Please read
http://forum.cmsmadesimple.org/index.ph ... 661.0.html because we are not in front of your screen and we don't know your past actions.
I assume you are stuck at the beginning of step 7 of shell install which is pointing the browser to the install wizard. But you don't tell anything about steps 1 to 6. Please report every success and every simple warning.
BTW, which link have you downloaded ? Are you trying to install in your root w3 folder or in the provided subfolder ?
Please search for "usual questions" in my posts (hosting...) and most of all
have a look at your http logS to find were the 500 error comes from.
Pierre M.
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 8:51 pm
by temills
Pierre M. wrote:
Please read
http://forum.cmsmadesimple.org/index.ph ... 661.0.html because we are not in front of your screen and we don't know your past actions.
I assume you are stuck at the beginning of step 7 of shell install which is pointing the browser to the install wizard. But you don't tell anything about steps 1 to 6. Please report every success and every simple warning.
Assume! I read the post on submitting questions before my original post and believe that I complied with its guidelines. I stated that I had completed all steps up to the installation step, which, yes, would be Step 7. There were no problems prior to that step.
Pierre M. wrote:
BTW, which link have you downloaded ? Are you trying to install in your root w3 folder or in the provided subfolder ?
The link that I downloaded is
http://dev.cmsmadesimple.ogr/frs/downlo ... 2.2.tar.gz as directed by the user guide. I would like to install in my root w3 (archerysolano) folder. The subfolder, which I renamed to cms, is created when the tar is expanded.
Pierre M. wrote:
Please search for "usual questions" in my posts (hosting...) and most of all have a look at your http logS to find were the 500 error comes from.
As stated in my original post, the http logs are not availalbe to 1&1 users.
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 9:15 pm
by bojans
I think that this is .htaccess issue, try to use blank .htaccess file or remove .htaccess file, then after install you can create it again.
I always do the same thing when I have 500 error message.
Bojan
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 10:10 pm
by Dr.CSS
I've used 1and1 extensively and never had a problem, but I always used FTP, Filezilla, and never saw a www folder and had no reason to use .htaccess until I wanted to make pretty URLs, no index.php...
Maybe try FTP?...
Re: 500 Error when trying to run install
Posted: Thu Jan 03, 2008 11:35 pm
by temills
Thanks, Bojans and Mark. I will try deleting the htaccess file and if not resolved I will remove all files and go with Mark's route. Thanks, again.
Tem
Re: 500 Error when trying to run install [SOLVED]
Posted: Fri Jan 04, 2008 12:02 am
by temills
Eliminating the .htaccess file solved the problem. I had included the htaccess file because 1&1's FAQ's instruct one to use the htaccess file to use PHP5.
Since I completely build my sites locally before uploading to production servers, I'll go with Mark's solution in the future. I now need to upload the dump of my local database. Other than the config.php file on the production server, are there any changes I need to make.
Thanks again,
Tem
Re: 500 Error when trying to run install
Posted: Fri Jan 04, 2008 12:32 am
by Dr.CSS
As long as you have dump of DB and all files the same just change the config.php should be it... iirc...
