I began to follow the installation instructions provided only to have the PHP script halt, and an error message appeared in the browser. The message said that I did not have the proper authority to the new application folder that I uploaded.
I then realized I had forgotten an important step after I had loaded the application to the IBM i IFS, and that was to grant user NOBODY authority to the folder uploaded to the /www/zendcore/htdocs directory. This problem is easy to correct. Open up an AS/400 green screen and do the following:
- Change the directory to the /www/zendcore/htdocs. To do this, key in the following command:
and press 'ENTER.' This will put you at the Web documents root for Zend Core.
- For a quick verification that the directory is changed you can run the WRKLNK command from a green screen command line. You should then see the folders and files located in the /www/zendcore/htdocs directory.
- On the same green screen key the CHGAUT command as follows or prompt the command by pressing F4. The CHGAUT command should be keyed as follows:
CHGAUT OBJ('OpenSourceFolder/') USER(NOBODY) DTAAUT(*RWX)
press 'ENTER' to continue, when the command is completed you will see that it has changed the authority for a number of objects within the new open source folder that you have uploaded. Should you desire to see if the authority is correct you can WRKLNK to the /www/zendcore/htdocs directory and locate your open source folder and key a '9' in the option field and press 'ENTER' and you should now see user NOBODY has authority.
- Open your preferred browser and enter the URL as outlined in the installation instructions for setting up the new open source application. It may appear something like the following:
Voila! You should now see the installation screen to complete the application setup process. The user NOBODY is used by Zend Core to allow access to the folder and folders that reside in the new open source application directory. The benefit of running CHGAUT on the open source folder is to eliminate the "Unauthorized Access" error message received when you try to install the open source application, thus giving you a clean installation.
Editor's note: Previews of PDFs with sample code are available for
- Change current directory
- WRKLNK command
- CHGAUT to NOBODY authority
- Verification of authority change workwithauthority
Let us know what you think about this tip, send us a note and let us know if you want more tips on this topic, and if there are any specific areas you would like to see covered.
This was first published in May 2009