Installation on commercial host

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
peteinman
Posts: 31
Joined: Mon 29. Mar 2004, 00:02

Installation on commercial host

Post by peteinman »

Back again..!

Now I have it all working locally on a laptop, and a site is being built, I'm trying to set it up on my commercial cgi space, and I'm confused again.

I've ftp'd the phpwcms folders to my CGI area, and can get the setup process to run. It talks to mysql, but the ifnal page gives me errors that it can't find the storage areas.

This on IIS previously was to do with the document root.

If i modify step5.inc to output the document_root, it displays this

Code: Select all

/local/services/httpd/htdocs 
I don't have access to the php.ini file, and I'm not aware of where /local/services/httpd/htdocs actually is, so I put

Code: Select all

$_SERVER['DOCUMENT_ROOT'] = "/local/services/httpd/htdocs";
in the setup.conf.inc.php

This didn't make any difference

Sorry to appear dumb, but this is all a bit of a new area..

Here's a link to my phpinfo()

http://cgi.peteinman.plus.com/phpwcms/setup/test.php

Pete
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

You might have a bit of trouble...

PHP is not like Perl which needs to be in the cgi bin to be run. PHP is parsed by apache. there is a list of file extensions that apache will parse using php/zend no matter where it is in the file system. the cgi bin will all be parsed as a binary no matter what. Some hosts though force you to put your php code in the cgi-bin which may be the case with your host.

if it is not then you can just put your phpwcms files anywhere and apache will take care of the parsing so you do not have to worry about a cgi-bin

Good Luck
(I am sure DeXXus might have more to say on this, he always amazes me with his sysadmin side ;) )
peteinman
Posts: 31
Joined: Mon 29. Mar 2004, 00:02

Post by peteinman »

I actually got this working, it was a problem with DOCUMENT_ROOT. I had to change all the PHP files to use C_DOCUMENT_ROOT rather than the default.

After a few tweaks on permissions, all seems ok.

Pete :D
Post Reply