Forum

Questions and discussions

Please help me

Any questions about installation and updates

Please help me

Postby duongtunglam » Mon Mar 15, 2010 6:53 am

Please help me to install the source on WAMP (latest version). I need running on local PC for design the interface.

I cannot do that, the install.php cannot connect to DB although I define db.php correctly as following:

Code: Select all
<?
//MySQL database
define( "dbuser", "root");
define( "dbpassword", ""); //WAMP default not using password for DB
define( "dbname", "photostore");
define( "dbhost", "localhost");

//Site HTTP URL
define( "surl", "http://localhost/store");

//Site HTTPS URL
//define( "ssurl", "http://localhost/store");

//Site root. It is an empty if the script is in root directory or "/store" if the script in "/store" directory.
define( "site_root", "/store" );


include("functions.php");
?>


Thanks in advanced.
duongtunglam
 
Posts: 37
Joined: Sun Mar 14, 2010 5:08 am

Re: Please help me

Postby cmsaccount » Mon Mar 15, 2010 8:11 am

You try to install the script on http://localhost/store/
where /store/ is a virtual site name. It is impossible to do that because the script "thinks" that /store/ is a folder - not a site name and all paths are broken.
You must install the script in the root:
http://localhost/
or
http://virtualhost/ (if your server allows to create other hosts)
cmsaccount
 
Posts: 72
Joined: Mon Mar 08, 2010 8:36 am

Re: Please help me

Postby cmsaccount » Mon Mar 15, 2010 8:13 am

Also you cannot use "/store" into "surl" and "site_root" simultaneously.
If the script is into the "/store/" folder then the code must be:

//Site HTTP URL
define( "surl", "http://localhost");

//Site HTTPS URL
//define( "ssurl", "http://localhost");

//Site root. It is an empty if the script is in root directory or "/store" if the script in "/store" directory.
define( "site_root", "/store" );
cmsaccount
 
Posts: 72
Joined: Mon Mar 08, 2010 8:36 am

Re: Please help me

Postby duongtunglam » Mon Mar 15, 2010 10:11 am

Is there anyone try to install this source into WAMPSERVER (latest version)? Please help me.
duongtunglam
 
Posts: 37
Joined: Sun Mar 14, 2010 5:08 am

Re: Please help me

Postby cmsaccount » Sun Mar 21, 2010 7:51 am

When you install a script on a local host there is often one main problem.
The most of local servers don't support virtual hosts so they allow to install sites only in the directories of http://localhost/

Example:
http://localhost/store/

It won't work because the script "thinks" that /store/ is a folder but the server insists that http://localhost/store/ - is a url of the site and /store/ is a root directory. As result all paths are broken.

You must install the script ONLY in the root directory on the local server:
http://localhost/
http://virtualhost1/

(For the same reason the script cannot be installed on the temporary urls like that: http://234.34.34.34/~store/)

I advise to use the next local Apache+PHP+Mysql softwares (i used them myself):
- www.denwer.ru - free software (for Windows)
- www.mamp.info - commercial software (for Mac)
cmsaccount
 
Posts: 72
Joined: Mon Mar 08, 2010 8:36 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.