![]() ![]() # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.ĬustomLog /var/log/apache2/access_ combinedĪfter each modification on Apache's configuration files, don't forget to restart service, so your new parameters are taken into account. Options Indexes FollowSymLinks MultiViewsĮrrorLog /var/log/apache2/error_ ServerAdmin /home/user/workspace/domain_path Replace local.domain with the domain name you want to use, and domain_path with the physical place of the folder containing the files of the website you wish to associate. Here's an example of a declaration of a Virtual Host for Apache. It's then your responsibility to associate a physical space on the server files's system to a domain name. It allows you to choose differents domains's names for each of your websites.Īlso, this allows you to store websites without respecting a strict arborescence. It is also a good practice to implement this when you work locally. It allows to run the server's ressources (memory, processor) by sharing them according to each website's needs. Virtual hosting is a method which allows for the hosting of several domain names on a physical server by using one IP adress. Then, request the URL You should get the following result : /Applications/MAMP/htdocs with MAMP on MacOS.To check that your HTTP server has a good configuration for executing PHP code, you can create a file named phpinfo.php and drop it at the root of your HTTP server: By default, Apache server will interpret the PHP code with the "Apache module" method, but you can configure this. To make your PHP application run, you need your HTTP server to be able to interpret this language.įor example, with the Apache server, you have two choices :Ī lot of websites expose the differences between these two methods. For example, it's the case for MAMP on MacOS, where you have to use Configuration of a web server to interpret the PHP language Once your HTTP server is installed on your computer, you can consult the web page delivered by default by requesting your localhost.įor it, open a web browser and go to Sometimes, you have to specify the port, when it is different than the one by default (port 80). With Debian system and derivatives (Ubuntu, etc), here's the command line to install everything you need to make WordPress work : $ sudo apt-get install apache2 mysql-server php5 php5-mysql phpmyadmin From repositories (apt, yum) under Linux. ![]() ![]() It has a lot of units and it's certainly one of the most complete in terms of features.įurthermore, it is packaged and ready to use on a lot of operating systems. To start, we recommand you use the HTTP Apache server version 2.X, it's the most common server ( netcraft). Here's a comparative of different HTTP servers. There are many HTTP servers you can install on your machine. If you have to work in a team, it's an essential tool to set up at the beggining of your project ( Subversion, Git).įinally, if you work on a professionnal project, we suggest you use a bug tracker. Ideally, use a revision control software in order to keep the historic of your website's revisions. Not be worried about a bad manipulation which could harm your data.Test plugins and templates without affecting your website when it will be online.Developp the website (edit templates and CSS files) without having to synchronize your files on a server.A MySQL SGBDR to store the data of your application.We need to configure it to make the following work: This will ease the learning and understanding of how most PHP and MySQL based applications work, such as WordPress, Joomla, Drupal, PrestaShop, Magento, etc. Why implement a developpment environment ?įirstly, we recommand you work locally, as in directly on your computer. Implement a developpment environnement to realize a website with PHP and MySQL ![]()
0 Comments
Leave a Reply. |