Installation
How to install phpATM
- Create a folder for the PHP script on the server (or webspace).
- Adjust the values of the variables in the file include/conf.php (see the comments in the include/conf.php for more informations).
- Customize the file(s) languages/nn.php (where nn – is language code).
- If your server/webspace require a particular extension to recognize php scripts (eg ‘.php4′) you have to set the
$phpExt
in include/conf.php and change the extension of all (.php) files EXCLUDING include/conf.php. - Copy all files and subfolders to the server (or upload them to your webspace).
- Chmod 777 all files and directories copied/uploaded (this is very important). Via your FTP client (using the Change Permissions, chmod or other Permissions dialoge box, see your FTP clients documentation for help). Most FTP clients list permissions in the form of User (Read, Write, Execute), Group (Read, Write, Execute) and Other (Read, Write, Execute). You need to tick all of these boxes to set correct permissions.
- Register your own new administrator account.
- Activate your new account (needed, if
request activation
is “on”) - Log in as user “Admin“, password “test“.
- Go to the
User Management
and change the status of your newly created account toAdministrator
. - Log out
- Log in using your newly created account, go to the
User Management
and delete the “Admin” account. DO NOT FORGET TO DO THIS!!! This can be a serious security hole! - Go to the
Configuration
to customize the header, footer and info html-files. - Make sure, that user accounts are not visible, when you type in the browser the address www.myserver.com/upload/users/username (where www.myserver.com – is the server name where you installed your script and username – the name of any registered user) If visible, you have to change the configuration of the server!
- Enjoy
Example Installation
Lets say we want to install phpATM for the website RoWang.eu in a folder called atm.
- We download a phpATM version.
- We extract the downloaded package (e.g. phpATM_132.zip) in an empty folder.
- We open the include/conf.php with a texteditor (Notepad++ would be a good choice) and changing some values.
$homeurl = "index.php";
$domain_name = 'www.rowang.eu';
$script_folder_path = 'atm';
$users_folder_name = 'johns';
$userstat_folder_name = 'johnsstat';
- We open now the languages/en.php with a texteditor and changing some values.
$headerpage="header.htm";
$footerpage="footer.htm";
$infopage="cfg/info.htm";
$charsetencoding="iso-8859-1";
$uploadcentercaption="RoWang.eu ATM";
- We upload now all files (except the docs folder) to the webspace from RoWang.eu. To do this, we use a FTP Client (FileZilla would be a really good choice).
- We Chmod the uploaded files to 777. To do this, we mark all files and folders and right-click on one of them, in the context-menu we choose
File Attributes
and change in the new window theNumeric value
to 777. - We start now our web browser (Mozilla Firefox would be a good choice) and open http://www.rowang.eu/atm/, on the site (which hopefully appears) we click on
Login
and then onRegister
. We create now an account John_Doe. - After the registration (and activation), we log in as Admin with the password test.
- We click now on the symbol for the
User Management
(should be the 4th from the left) and change the status of John_Doe toAdministrator
and log out. - Now we log in as John_Doe and click on the symbol for the
User Management
and delete the user Admin. (we markDelete account
and clickapply
) - Then we click on the symbol for the
Configuration
(should be the 3rd from the left) and change there the footer.htm, header.htm and info.htm to fit our needs. - We could now upload some (test) files…
Note: this is just an example! The website RoWang.eu does not have a folder called atm nor make use of an Advanced Transfer Manager.