WAMPserver moet van poort 80 naar 8080

Status
Niet open voor verdere reacties.

PeterdeBruin

Gebruiker
Lid geworden
19 mrt 2012
Berichten
73
Beste, ik ben recent van windows-7 naar windows-10 ( 64bits ) verhuisd. Gebruik zo nu en dan wamp server version 2.5 met Dreamweaver CS6 om mijn family-fotosite bij te houden gebaseerd op Piwigo software. Dit werkt al jaren naar tevredenheid onder windows-7. Nu ik naar Windows-10 ben gegaan blijkt dat poort 80 door een web publicatie service van Microsoft wordt gebruikt. Het advies is om een andere poort ipv 80 naar 8080 voor de wamp en Dreamweaver software te gebruiken. Ik ben er niet in geslaagt dit werkende te krijgen op poort 8080. In de Apache httpd.conf file staat extra:
----------------------------------
Listen 0.0.0.0:8080
Listen [::0]:8080

ServerName localhost:8080
Include "c:/wamp/alias/*"

Namevirtualhost *:8080

<Virtualhost *:8080>
DocumentRoot "C:/wamp/www/OSV"
ServerName OSV
</Virtualhost>

In de file windows32/etc/hosts staat :

127.0.0.1 localhost
127.0.0.1 www.OSV.test

De wamp server staat op C:/wamp en in de C:/wamp/www/OSV staat index.html van de site
Helaas krijg ik alleen 404 fouten een ping op 127.0.0.1 werkt goed met 4 pakketjes en nul fouten.

Heeft iemand voor mij een goede aanwijzing hoe ik dit werkende kan krijgen? - Peter
 
Vervang:
Listen 0.0.0.0:8080
Listen [::0]:8080
door
Listen 8080

Vervang
ServerName localhost:8080
door
ServerName localhost

Vervang
ServerName OSV
door
ServerName OSV.test
ServerAlias www.OSV.test

Niet vergeten de WAMP server software te herstarten daarna, want anders zijn de nieuwe instellingen niet in werking...

Tijs.
 
Thijs, Bedankt voor je hulp Ik krijg nu de volgende boodschap na de doorgevoerde veranderingen als ik index probeer te laden met google of firefox.

Not Found

The requested URL /OSV/TMP85f47d.html was not found on this server.

Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 8080
 
Dat zegt me weinig. Bedenk hierbij dat wij verder geen inzicht hebben in de inhoud en werking van de website, want lijkt me niet (direct) een fout/probleem met de netwerkinstellingen van WAMP maar met de website zelf.
Kijk of er WAMP/apache log-bestanden zijn die je vertellen wat er wordt opgevraagd (hopelijk geeft je dat een hint wat er misgaat en waarom), anders moet je in de VirtualHost secties gaan aangeven waar die moeten gaan staan.
Doorgaans staan de logs in de logs submap van WAMP.

Tijs.
 
Laatst bewerkt:
Tijs, Als ik PHPmyadmin aanklik krijg ik ook een error - not found.
Maak ik er met de hand Localhost:8080/phpmyadmin van dan zie ik wel de bladzijde myadmin.
log -info ter info
::1 - - [30/Jun/2016:16:27:30 +0200] "GET /OSV/TMP1n832xw.html HTTP/1.1" 404 308
::1 - - [30/Jun/2016:16:27:30 +0200] "GET /favicon.ico HTTP/1.1" 404 295

Thanks
 
Ik heb zo snel geen idee. Hopelijk heeft iemand anders o.b.v. de huidige informatie een hint wat er mis zou kunnen zijn.

Post in ieder geval het hele huidige configuratie-bestand van WAMP en PHP.INI.

Tijs.
 
Tijs, Het WAMP icoontje rechtsonder op de taakbalk is nu wel groen! Voor mij betekent dit dat de oplossing van poort 80 naar poort 8080 ogenschijnlijk werkt want eerder ging hij van Rood naar Yellow en NIET naar Groen. Echter wanneer ik met de linkermuis naar het menu van de wamp ga in de taakbalken PHPmyadmin link aanklik dan krijg ik een error 404. In de browser venster staat localhost/phpmyadmin. Wanneer ik dit verander in localhost:8080/phpmyadmin dan zie ik direct het admin scherm met database etc. Blijkbaar ontbreekt er nog ergens een instructie om ook deze functie werkende te maken is mijn conclusie. Enig idee waar te kijken of wat te veranderen ? mvg Peter
 
# This is the main Apache HTTP server configuration file.

ServerSignature On
ServerTokens Full

ServerRoot "c:/wamp/bin/apache/apache2.4.9"

Define APACHE24 Apache2.4

Listen 8080

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule lua_module modules/mod_lua.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule php5_module "c:/wamp/bin/php/php5.5.12/php5apache2_4.dll"

<IfModule unixd_module>
User daemon
Group daemon

</IfModule>

ServerAdmin admin@example.com

ServerName localhost

HostnameLookups Off

DocumentRoot "c:/wamp/www/"
<Directory />
AllowOverride none
Require all denied
</Directory>

<Directory "c:/wamp/www/">

Options Indexes FollowSymLinks

AllowOverride all

Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog "c:/wamp/logs/apache_error.log"


LogLevel warn

<IfModule log_config_module>

LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common

<IfModule logio_module>

LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>

CustomLog "c:/wamp/logs/access.log" common

</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "c:/wamp/bin/apache/apache2.4.9/cgi-bin/"

</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

<IfModule mime_module>
TypesConfig conf/mime.types

AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3


# For type maps (negotiated resources):
</IfModule>

EnableSendfile off

AcceptFilter http none
AcceptFilter https none

Include conf/extra/httpd-autoindex.conf

<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include "c:/wamp/alias/*"

Namevirtualhost *:8080

<Virtualhost *:8080>
DocumentRoot "C:/wamp/www/OSV"
ServerName OSV.test
ServerAlias www.OSV.test
</Virtualhost>
 
Zie dat de documentroot staat ingesteld op
C:/wamp/www/OSV
en dat (gegeven die documentroot) blijkbaar
C:/wamp/www/OSV/OSV/xxxx.html
door de bezoeker geladen moet worden.
Klopt dat wel, dat 2x OSV voorkomt in het pad?

Tijs.
 
Tijs, Helaas kan ik je redenering niet helemaal volgen. Ik heb in de folder van WAMP een www folder met daarin de OSV forlder. Hier staat index.html. Dus C:/wamp/www/osv/index.html is wat geladen moet worden. Hoe kom jij aan tweemaal /OSV/OSV in het pad. Blijkbaar lees ik ergens overheen ? vgr en dank voor de hulp Peter
 
Je gaf het zelf aan in de logs:
::1 - - [30/Jun/2016:16:27:30 +0200] "GET /OSV/TMP1n832xw.html HTTP/1.1" 404 308
::1 - - [30/Jun/2016:16:27:30 +0200] "GET /favicon.ico HTTP/1.1" 404 295

Je ziet dat daar, t.o.v. de DocumentRoot, in de submap OSV wordt gevraagd naar TMP1n832xw.html
Ik neem aan dat je nu begrijpt waarom in de absolute padnaam van het opgevraagde dus 2x OSV voorkomt, want effectief wordt opgevraagd (met DocumentRoot C:/wamp/www/OSV)
C:/wamp/www/OSV/OSV/TMP1n832xw.html

Dus stel je, onder anderen, de vraag of die map C:/wamp/www/OSV/OSV/ wel bestaat, of dit wel de bedoeling is etc.

Tijs.
 
Hi Tijs, Bedankt voor je antwoord en geduld om me het nog eens uit te leggen... Ik heb namelijk de site gewoon onder C:/wamp/www/OSV/index.html staan als start bladzijde. Er is geen dubbele OSV/OSV en dat is ook niet de bedoeling. Waar komt die dubbele call in de GET opdracht dan vandaan, is mijn vraag. Dreamweaver maakt een tmp.html file aan in www/OSV om de code te testen in een browser. Daarom denk ik dat in de DocumentRoot ook gewoon C:/wamp/www/OSV staat. Het is me daarom helemaal niet duidelijk waarom het nu fout gaat.

<Virtualhost *:8080>
DocumentRoot "C:/wamp/www/OSV"
ServerName OSV.test
ServerAlias www.OSV.test
</Virtualhost>
 
Daar kan ik geen antwoord op geven, want ik gebruik Dreamweaver niet. Sowieso zijn nu mijn tips op, dus hopelijk hebben anderen nog tips.

Tijs.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan