Pages: Previous12
Current Page: 2 of 2
Re: Reinstalled WAMP, no WAMP server icon
Posted by: eatc7402 (112.198.247.---)
Date: June 04, 2013 12:35PM

If I past some of the local url's like...

[192.168.254.104]

I get the following error...
"Forbidden
You don't have permission to access /mult_alarm_data/graphics/2-2_alarm.png on this server."

This is what I mean when I say I don't have access to this .png image from my localhost.

Accessing from my production server works fine. Only local access has an issue.

This appears to be a 403 error which I believe is an Apache configuration issue.

But I need advice about how to resolve it.

eatc7402

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: June 04, 2013 02:01PM

This is not getting a solution very fast

Install TeamViewer and I will troubleshoot for you.

Install TV, then run it.

Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: eatc7402 (180.190.155.---)
Date: June 04, 2013 02:54PM

I'm sorry but I am in the Philippines, and the use of the Team Viewer does not seem to fit into
my situation, as my PC cannot stay online for long periods of unattended operation.

There must be another way.

eatc7402

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: June 04, 2013 03:32PM

Do you have a .htaccess file in your app? If so post it.

If not post your https.conf

If you dont want the world to see it send it to me on a Private Message

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: eatc7402 (180.190.155.---)
Date: June 04, 2013 03:40PM

No I don't have an .htaccess that I know of.

I'll send you my httpd.conf via a private message


eatc7402

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: June 04, 2013 03:49PM

Can you tell me the Actual WINDOWS directory location of the .png you are trying to load please.
Forget about Apache or PHP's idea of where it is just tell me the windows file location.

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: June 04, 2013 03:59PM

Ok this may well be causing your problems.
You appear to have messed with the standard AddType that makes php work in apache.
Always make httpd.conf changes one at a time and then test you stuff.
Also a Comment saying
# I changed this because ....... often gives you a clue that it was you that messed things up


AddType application/x-httpd-php .php .php3 .php4 .phtml .png


You added .png on here so it will be trying to parse that with the php compiler. REMOVE IT.



Also why do you think you need these 3
Listen 80
Listen 8080
Listen 8081

Only need
Listen 80

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: eatc7402 (120.28.233.---)
Date: June 05, 2013 02:16AM

AddType application/x-httpd-php .php .php3 .php4 .phtml .png

has been changed back to...
AddType application/x-httpd-php .php .php3 .php4 .phtml

However, that does not change the resulting error of...
GoogleMapAPI:createMarkerIcon: Error reading image: [192.168.xxx.yyy]

I edited out part of the http IP.

When trying to 'read' a LOCAL ping. When reading a 'remote' servers ping it works fine.

eatc7402

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: eatc7402 (203.177.74.---)
Date: June 06, 2013 08:43AM

Okay i've uncommented the
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

And my httpd-vhosts.conf now looks like this, and it seems to work as far a hosts are concerned

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#Listen 127.0.0.1:80
#NameVirtualHost 127.0.0.1:80
#NameVirtualHost 192.168.254.104:8080
NameVirtualHost *:80
NameVirtualHost *:8080
NameVirtualHost *:8081

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

## must be first so the the wamp menu page loads
<VirtualHost *:80>
ServerAdmin webmaster@localmail.net
DocumentRoot "C:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "C:/wamp/www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
</VirtualHost>


<VirtualHost *:8080>
DocumentRoot "C:/eaahmpg/eatc7402/www"
ServerName localhost

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory C:/eaahmpg/eatc7402/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

</VirtualHost>



<VirtualHost *:8081>
DocumentRoot "C:/eaahmpg/eatc7402/www_on_bh"
ServerName local_bh
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory C:/eaahmpg/eatc7402/www_on_bh/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>


eatc7402

Options: ReplyQuote
Re: Reinstalled WAMP, no WAMP server icon
Posted by: RiggsFolly (---.as13285.net)
Date: June 06, 2013 10:11AM

OK, I had a thought after your mentioning that google insist on a full url to the images you want to use.

Because you insist on running on non standard ports, Are you adding the port to the url address you pass to google

I see your virtual host set 'allow from all' but have you port forwarded ( for all the non-standard ports ) your router so google can get back into your website to get the images.


Other possible issue is that they dont like having an ip address instead of a domain name. In which case you may have to setup a dynamic dns so you can create a more standard url for this site.

PS
The more you have to change things to get it working on your wamp server the less valid you testing is going to be and the more things you are going to have to REMEMBER to change when you make it live, thus negating the testing.


PPS
Dont know why you need this in each vhost, it is actually effecting the c:\ folder and I dont think that you want to do that.

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.