dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 20, 2015 05:07PM

I cant access the server.
I made a script a web form method post and a action input.

I created a special php form in the same directory.

I get the message:

Forbidden

You don't have permission to access /Begin/OefWebForm/¨[localhost]¨ on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80

As far as i know i have apache running. I used phpinfo and get a list of services working.

Which errors are meant when I get the forbidden message above?

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: RiggsFolly (---.as43234.net)
Date: January 20, 2015 05:17PM

Please can you answer these questions about your setup, thanks

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 20, 2015 05:49PM

I have WAMP. I have it installed on a usb disk.

I copy the phpinfo section

.........................................................................................

PHP Version 5.5.12

System Windows NT MyNamePC 6.2 build 9200 (Windows 8 Home Premium Edition) AMD64
Build Date Apr 30 2014 11:15:47
Compiler MSVC11 (Visual C++ 2012)
Architecture x64
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\x64\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\x64\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\x64\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File H:\wamp\bin\apache\apache2.4.9\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20121113
PHP Extension 20121212
Zend Extension 220121212
Zend Extension Build API220121212,TS,VC11
PHP Extension Build API20121212,TS,VC11
Debug Build no
Thread Safety enabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, https, ftps, phar
Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls
Registered Stream Filters convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

.............................................................................................................................

also now the html webform script is kinda strange. If I create a submit button with input

<input = ´submit´ value=´zenden´>

it places a strange A (scandinavian A) in the browser and I cant click it.

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 20, 2015 06:21PM

I removed the quotation marks, html script seems ok now, I never knew there is so much difference between the different releases. Why is that?

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: RiggsFolly (---.as43234.net)
Date: January 20, 2015 10:09PM

Thats now the fault of WAMPServer thats you using a backtick instead of a simple quote and the syntax for an input is also wrong.


Try
<input type="submit" value="zenden">

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 21, 2015 08:46AM

the html script is now ok. I changed some settings. But I'm still having problems, also in this (or other) php scripts with the ' or " both does not seem to work.

this:

<?php
echo ¨hello world¨;
?>

does not work but

<?php
echo ´hello world´;
?>

also does not work.

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 21, 2015 09:05AM

OK, now I discovered the same script does work if I use the ordinairy windows notepad to compose.

I downloaded Geany yesterday, it seems the problem is because of this editor.

Could it be the settings should be adjusted in advance?

I dont know anything about Geany, is it recommended a lot or are there better php editors?

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: RiggsFolly (---.as43234.net)
Date: January 21, 2015 09:57AM

I have never heard of it.
But I just had a look and it looks a bit hinky to run on a windows system

Try Notepad++, its free and very good.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 01/21/2015 09:57AM by RiggsFolly.

Options: ReplyQuote
Re: dont have permission to access // on this server
Posted by: LivingThis (---.cm-6-8b.dynamic.ziggo.nl)
Date: January 21, 2015 11:27AM

okay thanks for the suggestion

Options: ReplyQuote


Sorry, only registered users may post in this forum.