This allows to monitor the status of Web servers and SQL and restart them if necessary.īy clicking on the little exclamation point, it is possible to switch to 1 second PHP5 to PHP4. MAMP also offers a small widget to place in the Dashboard MacOS. We will return to this application at upcoming tutorials require the use of SQLite databases. It allows to manage databases and SQL tables SQLite. 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. Listing of hello.php: first PHP program Hello World 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). It will display the extensions of files.Just do a “drag and drop” the MAMP folder window and drop it into the Applications directory thereof. On Windows, click View, and tick File name extensions. To test it, you can create a new folder named test. MAMPhtdocs is the root directory where you will put or create files. MAMP has been installed successfully on Windows 11. To solve this, you need to change the MySQL port to 3306 as we said in the previous steps. It shows this raw information because it failed to make a connection with the MySQL database because of port no. Note: You might get this rubbish information when you open localhost like this, “N��� You can see both Apache Server & MySQL Server are running. Tick private networks and click allow access. Click Yes.īy default, localhost is accessed by the port has been changed so that it would be accessed like At this point, Windows will ask permission for mysqld. Note: When you restart MAMP it might tell you again that, “APACHE needs open port ‘8888’, which is already used by httpd”. Since the ports have been changed, we need to run the MAMP Server again on Windows 11.
0 Comments
Leave a Reply. |