www structure like: www/aaa/bbb/index.php
Posted by: dogrrific (---.hsd1.ct.comcast.net)
Date: November 18, 2009 10:44PM

Hello,
I installed a new wampserver on a new local machine for test purposes.
and installed my scripts (PHP and MySQL oriented) at www level as usually
but the structure is as follow:
www/main_dir/site/index.php
reason is: main_dir is my eclipse editor workspace which holds two main dir/
when I open localhost, I got the index wamp page which shows my structure inside www
then I click my "site" I have no MySQl error so I conn fine but the site/index is broken
and the images wont't load
doind an image property reveals that it looks for the images at www level
so how can I tell wampserver about my structure?
thanks
regards

Options: ReplyQuote
Re: www structure like: www/aaa/bbb/index.php
Posted by: Dicky (---.wltonh.dsl.dynamic.tds.net)
Date: November 18, 2009 11:16PM

There is no way to fix in wampserver. The path to the images need to be correct in your script. Either correct the path in your script or move the images to the www directory.

For best results, a relative path should be used. This will maintain the best portability between wampserver and your online server.

Options: ReplyQuote
Re: www structure like: www/aaa/bbb/index.php
Posted by: dogrrific (---.hsd1.ct.comcast.net)
Date: November 18, 2009 11:24PM

No the image path is only accessory
what I am trying to say is that wampserver does not recognize my structure, if it was at www level it'll work.
the images are only the tip of the iceberg, used as an example, the whole thing acts like it was set at rool level which is not the case.
the site loads totaly broken
is it a httpd conf problem, hostfiles or any other?

Options: ReplyQuote
Re: www structure like: www/aaa/bbb/index.php
Posted by: dogrrific (---.hsd1.ct.comcast.net)
Date: November 18, 2009 11:51PM

FYI
fixed it
to do: edit httpd conf add new structure to localhost
restart
done!

Options: ReplyQuote
Re: www structure like: www/aaa/bbb/index.php
Posted by: yfastud (Moderator)
Date: November 19, 2009 01:50AM

instead edit main config file, you should setup vh for each dir

to setup vh, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: www structure like: www/aaa/bbb/index.php
Posted by: dogrrific (---.hsd1.ct.comcast.net)
Date: November 19, 2009 02:36AM

yfastud,
Thanks, will look at it; and apply back changes.

Options: ReplyQuote


Sorry, only registered users may post in this forum.