‘PHP software’ Category

How to install a php software and ebook security script

You may know that many books and articles describe how to install these open-source tools under Linux. We will teach you on how to install a psp softw...

 

You may know that many books and articles describe how to install these open-source tools under Linux. We will teach you on how to install a psp software and a script for ebook security.

Installing PHP software is straight-forward: Upload the script files into a public directory of your server.
When determining what is a public directory, think web pages. Web page files are in public directories so browsers can get them. The index web page for your web site, the web page that displays in the browser window when you type only your domain name into the browser’s address bar, that page is a file in what’s referred to as the “document root.” The document root is the base public directory.

A subdirectory may be created inside a public directory to install the PHP software (unless the installation instructions say otherwise). Read the installation instructions. The software may require some of the files to be in different directories. Reading and following the instructions, provided they’re well written, can smooth the installation considerably.

Letting PHP Write/Update a File
if the PHP software needs to write or update a file in the same directory it is installed in, the file may need 666 permissions (or 766 if you’re superstitious about 666).

PHP Data Directories
If the PHP software requires a data directory where it will create and/or update files, the data directory may need 777 permissions. Files the PHP software creates in the data directory will not need your intervention for permissions. The permissions are okay when the PHP software creates the files.

PHP and MySQL
Some PHP software uses MySQL (or other SQL database) for information storage and retrieval. Here is some general setup information. If the PHP software uses MySQL, you’ll need to know three items of information for the installation:

1. Database name
2. User name
3. Password

Different hosting companies have different procedures for setting up a MySQL database. Your hosting company most likely has instructions online or otherwise accessible. It is likely that your hosting company gives you access to phpMyAdmin or cPanel or both. There are counterparts to these longstanding mainframe tools in the open-source community: MySQL, for database functions and PHP for server-based scripting.