Question : Problem with SRV_ROOT
Hi all,

I have a small problem with docroot variable.

if I click on the following link (which is my training server :O)) http://www.mysite.sk/plaincart/admin/, I find strange error message:

Error 404 - Not Found
The requested URL /plaincart/admin/s/sunny-jazz/root/www/plaincart/admin/login.php was not found on this server.

As you can see the mentioned link was changed and I don't know what to do.

I think that it is connected with defining of the variable:
$docRoot = $_SERVER['DOCUMENT_ROOT'];
in the config.php file.

I would like to ask you, if can give me some advice what to do. Thank you in advance.

Best regards,

Peter

Answer
Hi,

You could try hardcoding the value of WEB_ROOT and SRV_ROOT. For example

define('WEB_ROOT', '/plaincart/');
define('SRV_ROOT', '/root/www/plaincart/');

SRV_ROOT is the directory where you install plaincart.

«« Help with editing and viewing include files Q & A List Problem with plaincart admin login »»

 

 

 

Q & A PHP MySQL Shopping Cart Tutorial : Q & A - Detail  
Google
 
Web www.phpwebcommerce.com
 

At long last i'm finally able to update this site. Now the shopping cart can handle payment through paypal. As always you have any critiques, questions, comments or problems about this tutorial please tell me. Click here to send your feedback. And if you like this tutorial please link to this site. It will really help a lot :-)

 


Copyright © 2005 - 2008 www.phpwebcommerce.com