downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Первая страница на PHP> <Простой учебник
[edit] Last updated: Fri, 25 May 2012

view this page in

Что мне потребуется?

В данном руководстве мы предполагаем, что ваш сервер имеет поддержку PHP и что все файлы, заканчивающиеся на .php, обрабатываются PHP. В большинстве серверов обычно используется это расширение для PHP-файлов, но всё-таки не лишним будет уточнить это у вашего администратора сервера. Итак, если ваш сервер поддерживает PHP, то у вас есть всё, что требуется. Просто создавайте файлы .php и размещайте их в вашем каталоге Web-сервера - они будут обрабатываться автоматически. Не нужно ничего компилировать, не нужно никаких дополнительных программ. Считайте файлы PHP обычными файлами HTML с набором новых "волшебных" тегов, которые могут делать кучу разных вещей. Большинство веб-хостингов предлагают поддержку PHP, но если в вашем случае это не так, просмотрите список хостингов, поддерживающих PHP, в разделе »  Ссылки PHP.

Например, вы хотите сэкономить на интернет-канале и вести разработку локально. В этом случае вам нужно будет установить веб-сервер, такой как » Apache, и, разумеется, » PHP. Скорее всего, вы также захотите установить базу данных, например, » MySQL.

Всё это может быть установлено как отдельно друг от друга, так и более простым способом. В нашем руководстве есть инструкции по установке PHP (предполагается, что вы уже установили веб-сервер). Если у вас возникли проблемы при установке PHP, мы предлагаем вам задать вопросы в нашем » списке рассылки по вопросам установки. Если же вы выбрали более простой способ, то » найдите уже настроенный пакет для вашей операционной системы, который автоматически установит всё вышеперечисленное несколькими кликами мыши. Устанавливать веб-сервер с поддержкой PHP довольно легко на любой операционной системе, включая MacOSX, Linux и Windows. На Linux вам, возможно, пригодятся » rpmfind и » PBone при поиске RPM-пакетов. Можно также использовать » apt-get для поиска пакетов под Debian.



add a note add a note User Contributed Notes Что мне потребуется?
snarkit at hotmail dot com 07-Mar-2012 03:06
PHP5.2.17 for Apache 2.2.
The automatic Windows installer did not configure PHP correctly in httpd.conf. It left off the path to the module and PHPIniDir was blank. Adding the path got my installation working.
Incidentally Windows paths seem to be given in some places with / and in other places with \. It may not matter, but it is probably wise to stick to the pattern used in the relevant example.
Dennis 16-Feb-2011 11:08
On Ubuntu, you can install everything in a single command.
Just open your terminal window and type:

    sudo apt-get install lamp-server^

(the ^ symbol at the end of this command is mandatory)
jtbowlin at gmail dot com 05-Aug-2010 02:42
Rather than WAMP or XAMPP, I find it much easier and straightforward to use Windows Web Platform Installer...
chris at yahoo dot com 22-Mar-2010 12:33
One nice thing about WAMP is it's ability to install multiple versions of PHP, MySQL, and/or Apache and then easily select between them using the wampServer control panel. This allows you to test your app between various versions if you need that ability. XAMPP only supports one version of PHP, MySQL, and Apache.
shears dot wayne at googlemail dot com 09-Mar-2009 05:23
Rather than WAMP as suggested above you can use XAMMP which is a very useful tool which is easy to install and run.

You can use this on Windows/Linux/Mac based machines (including vista) to locally test your applications. The secuirty on the server is limited at first and if you set up port forwarding to allow users from the 'outside world' to see you applications you will required to address a few security issues.

But all in all this tool is great to use for Windows users who want to test locally and like a simple install.

URL:
http://www.apachefriends.org/en/xampp.html
jason dot khov at gmail dot com 27-Dec-2008 09:49
Don't worry about installing your own LAMP environment.  (Linux, Apache, MySQL and PHP)

On windows, you can download and install WAMP.  With one installation and you get an apache webserver, database server and php.
http://www.wampserver.com

On mac, you can download and install MAMP.
http://www.mamp.info/

Saves me a lot of headache to do development locally on my computer.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites