Re: Installation Help

Hi.

I'm a newbie, trying to install phpshop locally on MacOSX.  I have Apache, PHP, and MySQL working fine.  I'm able to run PHPmyAdmin with no problems.

I'm following your installation instructions to the letter, and when I try to run index.php, all I get is a blank page.  It displays this way on every browser.

When I first tried to run it, it said something about magic_quotes_gpc being disabled.  I enabled them, and now I'm just getting the blank page.

I have two folders set up, my "web" folder and my "admin" folder, both located in my user folder.

Therefore, to attempt to access the store, into the browser I type:
http://localhost/~myusername/shop/
or http://localhost/~myusername/shop/index.php

the administrator folder would be here:
http://localhost/~myusername/shopadmin/

I changed index.php this way:
// EDIT
define('base_dir', 'localhost/~myusername/shopadmin/');

and phpshop.cfg this way:

"

Re: Installation Help

(got cut off...here's the rest of my message:)

U

Re: Installation Help

It looks like you're trying to set up a base directory but using a website instead.
PS_BASE in index.php should be set to the actual directory that the files are in. For example, it might be something like one of these:

define('PS_BASE', '/home/htdocs/phpshop/');
define('PS_BASE', 'c:/phpshop/');

That which is, is; that which is not, is not; that which is, is not that which is not; that which is not, is not that which is.

Re: Installation Help

Thanks for the quick response!

OK...now I have this:
define('PS_BASE', '/Users/myusername/Sites/shopadmin/');

It's still not working.

For some reason, when I try to post anything about what I've done with phpshop.cfg, it won't post that part of the message.  What's with this board?  It's probably just me.

thanks...

Re: Installation Help

Helleluja !!!

I had the same problem (IIS 5, Win 2000, phpShop 0.8.0)

Where do we suggest that the installation instructions be amended to say (for  iis/win)

eg

define("URL","http://localhost/demo/index.php");
define("SECUREURL","http://localhost/demo/index.php");

ie you need to add index.php to the end of the url or you get error 405 messages on any page that was form posted.  Calls with url parameters all work fine, calls that are posted display error 405.

Thanks.

Re: Installation Help

Actually, there is more to it.

If you implement the solution I mentioned in my previous post, the vendor image wont display. This is because the path to the image ends up with "index.php" in the middle of it!

So, in congig.php I added the following two new variables so I now have:

define("URL","http://localhost/demo/index.php");
define("SECUREURL","http://localhost/demo/index.php");

and new:

define("URLpath","http://localhost/demo/");
define("SECUREURLpath","http://localhost/demo/");

Then, in global.inc, I changed it as follows:

# ie dont use index.php on the $url
$vendor_image = "<IMG BORDER=0 SRC=" . $urlpath .
                $db->f("vendor_image_path") .
                "vendor/" . $db->f("vendor_full_image") . ">";

ie instead of using $url I use $urlpath.

This now all seems to work properly but I dont know whether I will encounter any more places that will be affected by changing adding index.php to the URL parameter.

Remember, this is for IIS (se previous post).

Thanks,
Murray

132

Re: Installation Help

Hi, I installed phpshop using the steps described in INSTALL.txt.. but when I try to load it in my browser, I get these errors:

Warning: extract() [function.extract]: First argument should be an array in /home/snk/http/phpshop/htdocs/index.php on line 73

Warning: extract() [function.extract]: First argument should be an array in /home/snk/http/phpshop/htdocs/index.php on line 74

Warning: require(/home/snk/http/phpshop/htdocsetc/config.php) [function.require]: failed to open stream: No such file or directory in /home/snk/http/phpshop/htdocs/index.php on line 78

Fatal error: require() [function.require]: Failed opening required '/home/snk/http/phpshop/htdocsetc/config.php' (include_path='.:/home/snk/http/phpshop/htdocs:/home/snk/http/phpshop/htdocsmodules') in /home/snk/http/phpshop/htdocs/index.php on line 78

I have just installed Apache 2.2.0 with php-5.1.2 and MySql-5.0.18. running on Linux 2.6.10
I can run other applications as phpmyadmin..

Re: Installation Help

I am having the same error:

Warning: require(/home/httpd/html/phpdocs/etc/config.php) [function.require]: failed to open stream: No such file or directory in /home/httpd/html/phpshop/index.php on line 78

Fatal error: require() [function.require]: Failed opening required '/home/httpd/html/phpdocs/etc/config.php' (include_path='.:/home/httpd/html/phpdocs/:/home/httpd/html/phpdocs/modules') in /home/httpd/html/phpshop/index.php on line 78

running:
apache 2.2.2
php 5.1.4 apache
phpshop 0.8.0
Linux 2.6.16.20

My phpdocs installation is all web accesable and read write accessable by all (chmod 777).  That error points to an existing config.php configured properly, and index.html is also properly configured.  Not sure why it fails to open an existing file.  Running two other php based web apps that work fine.

134

Re: Installation Help

hi,
i am pretty shure, there is some misconfiguration. If you like to, you can try an installation routine for phpShop 0.80, which you can download at http://www.ulisoft.org

Last edited by uli (2006-08-19 08:43:04)

Re: Installation Help

gtg527b wrote:

I am having the same error:

Warning: require(/home/httpd/html/phpdocs/etc/config.php) [function.require]: failed to open stream: No such file or directory in /home/httpd/html/phpshop/index.php on line 78

Fatal error: require() [function.require]: Failed opening required '/home/httpd/html/phpdocs/etc/config.php' (include_path='.:/home/httpd/html/phpdocs/:/home/httpd/html/phpdocs/modules') in /home/httpd/html/phpshop/index.php on line 78

running:
apache 2.2.2
php 5.1.4 apache
phpshop 0.8.0
Linux 2.6.16.20

My phpdocs installation is all web accesable and read write accessable by all (chmod 777).  That error points to an existing config.php configured properly, and index.html is also properly configured.  Not sure why it fails to open an existing file.  Running two other php based web apps that work fine.

Did u try using FreeBSD instead of Linux?
I`m using same software, but FreeBsd, and i had never meet this error.

Re: Installation Help

Hi
I have upload all the scripts create db.. and import it on phpmyadmin
but I am reciveing the errors.. kindly chek it

and help me
-------------------------------------------------------
Warning: main() [function.main]: open_basedir restriction in effect. File(/cygwin/home/shop/htdocs//etc/config.php) is not within the allowed path(s): (/home/rmrcneo:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/rmrcneo/public_html/shop/htdocs/index.php on line 78

Warning: main(/cygwin/home/shop/htdocs//etc/config.php) [function.main]: failed to open stream: Operation not permitted in /home/rmrcneo/public_html/shop/htdocs/index.php on line 78

Warning: main() [function.main]: open_basedir restriction in effect. File(/cygwin/home/shop/htdocs//etc/config.php) is not within the allowed path(s): (/home/rmrcneo:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/rmrcneo/public_html/shop/htdocs/index.php on line 78

Warning: main(/cygwin/home/shop/htdocs//etc/config.php) [function.main]: failed to open stream: Operation not permitted in /home/rmrcneo/public_html/shop/htdocs/index.php on line 78

Fatal error: main() [function.require]: Failed opening required '/cygwin/home/shop/htdocs//etc/config.php' (include_path='.:/cygwin/home/shop/htdocs//:/cygwin/home/shop/htdocs//modules') in /home/rmrcneo/public_html/shop/htdocs/index.php on line 78

-----------------------------------------------------------------------------
thanx

137

Re: Installation Help

To all guys how to install phpshop !
in created nowebfolder copy from phpshop\db
                                         from phpshop\etc
                                         from phpshop\modules
Directory structure must seem like this
D:\nowebfolder\db\*.*
D:\nowebfolder\etc\*.*
D:\nowebfolder\modules\*.*
edit in etc config.php
define('URL','http://localhost/webshop/');
define('SECUREURL','http://localhost/webshop/');
define('DB_HOST','localhost');
define('DB_NAME','phpshop');
define('DB_USER','');
define('DB_PWD','');

in webfolder (weblocation) copy from unpacked phpshop\htdocs\*.* all files
Seems like this files and folders
D:\xampp\htdocs\webshop\images\*.*
D:\xampp\htdocs\webshop\javascript\*.*
D:\xampp\htdocs\webshop\styles\*.*
D:\xampp\htdocs\webshop\index.php
then edit index.php
define('PS_BASE', 'D:/xampp/nowebfolder//');
xampp is my web server
fast explained hopefully it would help to all
Thanks !

Last edited by mrobo (2006-12-09 18:28:11)

Re: Installation Help

Looked at previous postings but still encountering problems to complete the install (I think I'm very close though). Below explains more or less what is going on:

My phpshop folder lives under my xampp directory's htdocs so that I can run things from localhost (I think this is correct). I had previously an error message on line 78/79 of the index.php script and that came from the define('PS_BASE'...statement . However, I don't think that's a problem anymore. My error message now has something to do with SQL. It reads:

Parse error: syntax error, unexpected T_STRING in C:\Program Files\xampp\htdocs\PHPshop\htdocs\index.php on line 46

Some other info --- My edit in etc config.php reads like this:
define('URL','http://localhost/phpshop/');
define('SECUREURL','http://localhost/phpshop/');
define('DB_HOST','localhost');
define('DB_NAME','phpshop');
define('DB_USER',''myusername");
define('DB_PWD',''mypassword");


I'm running xampp as my webserver

Thanks in advance for any help.

--GG

Re: Installation Help

I'm having the same problem... if anyone could help, it would be greatly appreciated.

Cheers

140

Re: Installation Help

What's on line 46 of the index.php file?

Also, please post the first define in the index.php file.  It is the define for PS_BASE.

Thanks.

Re: Installation Help

Mine is actually line 44, but the same error.

My line 44 is this --> define("WEBROOT",dirname($_SERVER['SCRIPT_FILENAME']));


Thanks

Re: Installation Help

hi folks
this looks such a wonderful program..
it is such a pity that so many are with so many frustrations.

it does seem that the instructions need to be re=written.
i have tried the installation 3 times, over the space of sitting here for 3 hours.
this is my shop http://www.organicparents.org/shop/index.php

so, does anyone know of instructions which are clear, with no errors for the latest version phpshop-0.8.1

uli:
i wonder could you tell me, do you know if the installer you mention will work for me?  http://www.ulisoft.org

Last edited by marion (2007-08-07 04:33:53)

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

mrobo wrote:

To all guys how to install phpshop !
in created nowebfolder copy from phpshop\db
                                         from phpshop\etc
                                         from phpshop\modules
Directory structure must seem like this
D:\nowebfolder\db\*.*
D:\nowebfolder\etc\*.*
D:\nowebfolder\modules\*.*
edit in etc config.php
define('URL','http://localhost/webshop/');
define('SECUREURL','http://localhost/webshop/');
define('DB_HOST','localhost');
define('DB_NAME','phpshop');
define('DB_USER','');
define('DB_PWD','');

in webfolder (weblocation) copy from unpacked phpshop\htdocs\*.* all files
Seems like this files and folders
D:\xampp\htdocs\webshop\images\*.*
D:\xampp\htdocs\webshop\javascript\*.*
D:\xampp\htdocs\webshop\styles\*.*
D:\xampp\htdocs\webshop\index.php
then edit index.php
define('PS_BASE', 'D:/xampp/nowebfolder//');
xampp is my web server
fast explained hopefully it would help to all
Thanks !

mrobo:  these are the fourth set of instructions that i am going to try.
and i rather think that i will be sucessful in my installiation after 3 attempts in 3 hours.
thankyou mrobo for posting these instructions - i can understand them.

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

hi stormcloud:
you are online now i notice, did you work your error out?

marion

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

I didn't, I found a new shop.

Re: Installation Help

stormcloud:
what shop?
o stormcloud, o what shop did you find?
if i cannot disentangle phpshop  ... abandon me not  .... help !


all is lost ... stormcloud has left ...

Last edited by marion (2007-08-07 03:16:01)

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

hi folks:
in the config file do i change the demo to my directory?

# URL & SECUREURL Settings
define("URL","http://organicparents.org/shop/");
define("SECUREURL","http://organicparents.org/shop/");

or do i leave it as demo?
# URL & SECUREURL Settings
define("URL","http://organicparents.org/demo/");
define("SECUREURL","http://organicparents.org/demo/");


i have found the answer to this ... the code needs to be ....

# URL & SECUREURL Settings
define("URL","http://organicparents.org/shop/");
define("SECUREURL","http://organicparents.org/shop/");

Last edited by marion (2007-08-07 10:00:59)

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

hi folks

no, still bamboozled, this is the error i am receiving ..
does anyone have any clues - what do i need to change?


Warning: require(/home/organpar/public_html/shop/etc/config.php) [function.require]: failed to open stream: No such file or directory in /home/organpar/public_html/shop/index.php on line 80

Fatal error: require() [function.require]: Failed opening required '/home/organpar/public_html/shop/etc/config.php' (include_path='.:/home/organpar/public_html/shop/:/home/organpar/public_html/shop/modules') in /home/organpar/public_html/shop/index.php on line 80


this error is now gone ....
after i have shifted  several files into the shop folder:
etc
modules
images


the only thing now is that i cant login .......... that means i am not connecting to database for some reason ...

Last edited by marion (2007-08-07 11:08:23)

phpShop:  0.8.1      magic quotes enabled
php:         5.2.3 windows   xp MySQL        5.0.27-standard
http://www.organicparents.org/shop/index.php

Re: Installation Help

I installed phpshop on a xampp "server" for to test it. Now I always get this letters when I look at the shop in my browser: