There are many ways to create a file in the root file system. Here are the ones I can think of without creating a program to do it or thinking too hard:

* EDTF command
* From a file share
* Uploaded via FTP
* Using touch within QShell
* Operations/iSeries/Whateveritscallednow Navigator

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Rob Dixon
Sent: Monday, October 06, 2008 4:01 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Mattour help

Rob

I think that whilst I could use WRKLNK, to delete the file, I am not sure
how I would create it again.

However, I have worked out how to bypass www and use my own folder and
welcome page and it works!!!

I still have some way to go but this is real progress. Thank you all for
all your help,

Rob

2008/10/6 Haas, Matt (CL Tech Sv) <matt.haas@xxxxxxxxxxx>

Rob,

This sounds like file system permissions errors. Setting the folder
permissions before you create files is the easiest way to manage this. To
make life easier on yourself, fix the permissions on /www/erros07/htdocs
(you can use WRKLNK to do this, option 9 lets you set permissions) and then
delete the existing file. When you recreate it, it will have the correct
permissions.

One other place to look is at the share itself. Make sure that it isn't
defined as read only.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Rob Dixon
Sent: Monday, October 06, 2008 1:11 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Matt,

Many thanks. I have at last managed to create and serve index.html from
htdocs, using http://192.168.0.7. I am not quite sure that I know how. The
way I proved that it was coming from there rather than from docs was by
editing it, but I could only edit it using wrklnk on a green screen - very
unfriendly. If I try to edit it by opening www as a network drive,
navigating to the index file, and using wordpad, when I tried to save the
changes, I get the message that I cannot create the
"Y:\erros\htdocs\index.html file". But I don't want to create it - it is
already there.

If I try to copy an existing file into htdocs in the network drive, I get
"Cannot copy file: Access is denied. Make sure that the disk is not full
or
write-protected and that the file is not currently in use."

I cannot rename the docs folder when viewed through a network drive, but I
can do it using Navigator.

I have copied many other files into other folders through network drives
without problem.

I have tried several user profiles that appear to have the correct
permissions

Has anyone any ides about this problem?

Rob



2008/10/6 Haas, Matt (CL Tech Sv) <matt.haas@xxxxxxxxxxx>

Rob,

Have you looked at your error log yet? That should tell you why you are
getting a 403 error. That error can be caused by three things. First, the
server doesn't have permissions in the file system. Second, the server is
not configured to allow access to it. Third, you don't have a file that
matches the name defined on DirectoryIndex and you are not specifying the
file name and directory browsing is disabled. The error log will tell you
which one is causing the 403 error.

From what I can piece together from this thread so far, you have created
a
folder called /www/erros07/docs, verified file system permissions were
okay,
and placed an index.html in it.

Based on that, you need to change DocumentRoot /www/erros07/htdocs to
DocumentRoot /www/erros07/docs . I'm pretty sure this will solve your
problem.

If you are not going to use /www/erros07/htdocs, you should remove the
Directory container for it. If you are going to use it, you will need to
create an Alias for it since it is outside of the directory defined in
DocumentRoot.

As far as learning goes, the IBM documentation stinks. It is reference
material only. Starting from http://httpd.apache.org/docs/2.0/ will be
much better. Until you get into SSL and some of the basic authentication
stuff which are different, anything you find on configuring Apache 2.0
will
apply directly.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On
Behalf Of Rob Dixon
Sent: Sunday, October 05, 2008 5:29 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Robert,

Many thanks

There is an htdocs directory which was created automatically when I set
up
Apache admin, and then following the directions on the Information Centre
I
created the directory docs. Both are referenced in the configuration
code
that I included. Apache put an index file in docs but there isn't one in
htdocs.

I assumed that if I followed the instructions in the information centre I
would get something that worked on which I could build but that hasn't
happened. Can anyone see any errors in the configuration generated by
Apache? I am sorry that it is not very legible - I just did a cut and
paste.

Rob

2008/10/5 Dean, Robert <rdean@xxxxxxxxxxxx>

Okay, there should be an htdocs directory, not docs.


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx on behalf of Rob Dixon
Sent: Sun 10/5/2008 10:17 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] HTTP Apache V5R3 problem

Thank you all.

http://192.168.0.7 produces error 403 -
http://192.168.0.7/index.html produces error 404 - not found

I simply followed the instructions in iSeriesIBM HTTP Server Version 5
Release 3 and used IBM Web Administration for iSeries to add a
directory
"docs" to the server that I had created "erros07". I didn't manually
edit
the configuration file. I hoped that this would give me something that
worked, to form a base on which I could build. I will have to read the
manual if none of you can see what is wrong

The code is

__________________________________________________

*ERROS07* <http://192.168.0.7:2001/ERROS07> > *Directive
Index*<http://192.168.0.7:2001/Directive%20Index>> Display
Configuration File

Display Configuration File *HTTP server:* ERROS07 *Selected file:*
/www/erros07/conf/httpd.conf

* 1** # Configuration originally created by Create HTTP Server
wizard
on
Sun Sep 21 22:47:23 UTC 2008* * 2** Alias /docs/ /www/erros07/docs/*
*
3
** Listen *:80* * 4** DocumentRoot /www/erros07/htdocs* * 5**
Options
-ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes
-IncludesNoExec
-Indexes -MultiViews* * 6** LogFormat "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" combined* * 7** LogFormat
"%{Cookie}n
\"%r\" %t" cookie* * 8** LogFormat "%{User-agent}i" agent* * 9**
LogFormat
"%{Referer}i -> %U" referer* * 10** LogFormat "%h %l %u %t \"%r\"
%>s
%b"
common* * 11** CustomLog logs/access_log combined* * 12**
LogMaint
logs/access_log 7 0* * 13** LogMaint logs/error_log 7 0* * 14**
ServerSignature
On* * 15** AccessFileName .htaccess* * 16** SetEnvIf "User-Agent"
"Mozilla/2" nokeepalive* * 17** SetEnvIf "User-Agent" "JDK/1\.0"
force-response-1.0* * 18** SetEnvIf "User-Agent" "Java/1\.0"
force-response-1.0* * 19** SetEnvIf "User-Agent" "RealPlayer 4\.0"
force-response-1.0* * 20** SetEnvIf "User-Agent" "MSIE 4\.0b2;"
nokeepalive* * 21** SetEnvIf "User-Agent" "MSIE 4\.0b2;"
force-response-1.0* * 22** DirectoryIndex index.html* * 23**
IndexOptions
-SuppressHTMLPreamble* * 24** <Directory />* * 25** Order
Deny,Allow* * 26** Deny From all* * 27* *</Directory>* *
28**
<Directory /www/erros07/docs>* * 29** Order Allow,Deny* * 30**
Allow
From all* * 31* *</Directory>* * 32** <Directory
/www/erros07/htdocs>*
* 33** Order Allow,Deny* * 34** Allow From all* * 35*
*
</Directory>*
_____________________________________________________

htdocs was created when I created erros07

many thanks

Rob




2008/10/5 Dean, Robert <rdean@xxxxxxxxxxxx>

Based on your description, the explicit URL would be
http://192.168.0.7/index.html



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx on behalf of Rob Dixon
Sent: Sat 10/4/2008 8:24 AM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] HTTP Apache V5R3 problem

I have scratch installed V5R3. I am trying to set up Apache which I
haven't
used before. As far as I can tell, Admin is OK, and now, following
the
instructions, I have created my own test directory. This is
www/erros07/docs and there is an index.html file in there. But if I
try
to
access

http://192.168.0.7:2001/docs

I get error 403 - "The website declined to show this webpage".

This means that the page is there but the authority is wrong, but I
cannot
see how. Everything seems to have QTMHHTTP authority.

If I try http://192.168.0.7/docs

I get error 404 - not found which is what I would expect at this
stage.

This is probably something very basic due to my ignorance of Apache -
I
only
use the original P server on my V5R1 nachines

Can anyone help please?

Rob Dixon

www.erros.co.uk
www.boarstall.com
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




--
Rob Dixon

www.erros.co.uk
www.boarstall.com
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.




--
Rob Dixon

www.erros.co.uk
www.boarstall.com
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.