Object not found!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Object not found!

Postby wemseo » 01. August 2009 13:57

Tested, everything' fine...
I placed my site content like this
[*]..\Programs\xampp\htdocs\demoshop
and call it like that
[*]http://localhost/xampp/htdocs/demo or even like
[*]http://localhost/htdocs/demo
but when trying to open my site content I get:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
08/01/09 20:37:55
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9


The folder demo holds my complete site (folders/sub-folders and files and the index.php file)
In phpAdmin I created the exact same DB and imported the .sql file. The database is set up.

Is there anything I'm missing?

Thank you
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54

Re: Object not found!

Postby Wiedmann » 01. August 2009 14:09

I placed my site content like this
[*]..\Programs\xampp\htdocs\demoshop
...
The folder demo holds my complete site

"demo" or "demoshop"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Object not found!

Postby wemseo » 01. August 2009 14:56

Sorry...

Of course all the same - in this case *demoshop* as I have different demos, like demoshop. demositeA, demoportal ...etc.

what i also did since I first posted this question is, I set up vhosts in D:\Programs\xampp\apache\conf\extra/httpd-vhosts ... like
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:xampp\htdocs"
ServerName localhost
</VirtualHost>
#
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "D:xampp\phpmyadmin"
ServerName phpmyadmin
</VirtualHost
#
<VirtualHost *:80>
ServerName demoshop.com
ServerAdmin webmaster@localhost
DocumentRoot "D:xampp\htdocs\demoshop.com"
</VirtualHost>


following this tutorial ... http://www.campbellssource.com/multiple ... -on-xampp/

I then tried restarted Apache but Apache wouldn't start now anymore...

BIG THANKS to all AFmoderators for your help and support
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54

Re: Object not found!

Postby Wiedmann » 01. August 2009 15:25

Of course all the same

Ok, assuming you have a directory "..\Programs\xampp\htdocs\demoshop", you can access this directory in your browser with the URI "http://localhost/demoshop/".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Object not found!

Postby wemseo » 01. August 2009 15:55

Thanks again

I tried that. In fact, I tried 3 different paths ...
http://localhost/demoshop
http://localhost/xampp/demoshop
http://localhost/xampp/htdocs/demoshop

After reading I need to restart apache before the new settings take place, I tried to restart but apache wouldn't start again. So I guessed there is something wrong with the code I added and changed the httpd-vhosts.CONF file back to its original ... apache started right away again.

I haven't found a solution yet for setting up vhost for the *xampp-win32-1.7.1* version and the tutorial I mentioned before seem to validate earlier versions of XAMPP.

Thank you very much for your help again
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54

Re: Object not found!

Postby wemseo » 01. August 2009 16:14

I think I figured out the coding mistake
... the *.com* need to be omitted
Code: Select all
<VirtualHost *:80>
    ServerName demoshop.com
    ServerAdmin webmaster@localhost
    DocumentRoot "D:xampp\htdocs\demoshop[color=#FF0000].com[/color]"
</VirtualHost>

Now apache accepts the new httpd-vhosts.CONF file and would start again but trying to access the site in the browser via ../localhost/demoshop I get now a forbidden error
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

localhost
08/01/09 22:57:52
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54

Re: Object not found!

Postby wemseo » 01. August 2009 16:50

Hello again

Even after restoring the original httpd-vhost.CONF file and then (without a vhost) just calling one website I get a MySQL connection error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'wwwwems_root'@'localhost' (using password: YES) in D:\Programs\xampp\htdocs\demoshop\includes\functions\database.php on line 19
Unable to connect to database server!


You should know here that I am trying to open an osCommerce shop and I get this error - DESPITE - I changed both configure.php files of the oscommerce shop to the new XAMPP mysql connection ... User/Password settings.

Is there any instruction available on WHAT and HOW to configure in XAMPP so to successfully open and work a website or shop?

Thank you very much
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54

Re: Object not found!

Postby Wiedmann » 01. August 2009 20:35

Is there any instruction available on WHAT and HOW to configure in XAMPP so to successfully open and work a website or shop?

There is nothing to do in XAMPP. Just install and configure your scripts correctly, according to their manual...

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'wwwwems_root'@'localhost' (using password: YES) in D:\Programs\xampp\htdocs\demoshop\includes\functions\database.php on line 19

There is no user "wwwwems_root" in MySQL, or this user does not have the password this script is using.
(Like you can read in the "readme_en.txt", XAMPP comes with one predefined MySQL user. You can use this user, or you must add your own user to MySQL.)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Object not found!

Postby wemseo » 01. August 2009 22:18

Hello, thanks for the reply

I did add my own user to mysql, that's correct and I almost got everything going. Part of the shop now shows and some part doesn't.

The problem lies with the fact that I work with an osCommerce shop. Their whole script is a mess and to make it worse... when you add some modules to their script you may as well KISS THE IDEA to edit the shop offline - (with xampp) GOOD BYE as well as others. You're probably better off going somewhere else. :roll:

I regret having wasted so much time with osCommerce the past months.

Cheers
wemseo
 
Posts: 9
Joined: 05. July 2009 20:54


Return to XAMPP for Windows

Who is online

Users browsing this forum: milaz357 and 55 guests