We will return to this application at upcoming tutorials require the use of SQLite databases. It allows to manage databases and SQL tables SQLite.
Mamp for windows installing free#
The free utility SQLiteManager is located at the following address: http: // localhost: 8888 / SQLiteManager /. We return to this application when next tutorielss requiring the use of MySQL databases. It allows to manage databases and tables MySQL SQL type. The free utility PHPMyAdmin is located at the following address: http: // localhost: 8888 / phpMyAdmin /. Database managers: PHPMyAdmin and SQLiteManager PHPMyAdmin The PHP script is executed and displayed on the screen the text Hello World!. In our browser, we call the file by entering the following URL: http: // localhost: 8888 /PHP-Code/hello.php. Then we put in this directory a file named hello.php that contains the following code: For this, we first create a new directory called PHP-Code in the / htdocs. We will test our first PHP application: the traditional “hello world”.
/ htdocs: directory containing various website projects./ logs: directory containing the files of PHP error logs, Apache and MySQL./ db: directory containing MySQL5 and SQLite databases.The / tmp / php include contains temporary files of PHP sessions. / tmp: directory containing the temporary files created by the executables./ conf: directory containing Apache configuration file (nf), PHP (php.ini) and SQLiteManager (config.db)./ bin: directory containing executable Apache, PHP4, PHP5, MySQL5 and SQLite.The six important directories of MAMP are:
The menu at the top provides access to phpinfo () (PHP configuration), utilities database management (PHPMyAdmin and SQLiteManager) as well as to a performance optimization PHP application (eAccelerator). Port 80 is reserved by default to the Web through the Internet. The Web server listens for the LAN information on port 8888. The localhost can be replaced with the IP address 127.0.0.1. Note first that to access the local web server, we use the URL http: // localhost: 8888 / MAMP. It also attests to the proper functioning of the local Web server.
The startup MAMP also involves opening a new window in the web browser (Safari by default). It is recommended that the configuration imposed by MAMP for people without sufficient computer knowledge. The modifiable parameters are for example the ports behind which the server processes or the working directory where the projects are located (eg websites). The Preferences tab allows you to configure MAMP. This window allows you to control the web server (Apache) and database server (MySQL) have been launched. The launch of MAMP is done by clicking on the icon MAMP.app. We note the MAMP folder (fitted gray logo) in the Applications directory MacOS (shortcut Command + Shift + A). Just do a “drag and drop” the MAMP folder window and drop it into the Applications directory thereof.