Cent OSにPHPフレームワークSymfonyをインストール
この記事の所要時間:約1分26秒
Webサービスを作るにあたってフレームワークは必須。ということで、Cent OSの自鯖にSymfonyというフレームワークをインストールしてみました。
PHPのMVC(Model, View, Controller)フレームワークには他にもCakePHPや
1 2 3 4 5 6 |
# pear install symfony/symfony Attempting to discover channel "symfony"... Attempting fallback to https instead of http on channel "symfony"... unknown channel "symfony" in "symfony/symfony" invalid package name/package file "symfony/symfony" install failed |
ん? インストール出来ない。
どうやらpearにチャネルを登録するということをやらないといけないみたいです。そしたらインストール出来ました。
1 2 3 4 5 6 7 8 |
# pear channel-discover pear.symfony-project.com Adding Channel "pear.symfony-project.com" succeeded Discovery of channel "pear.symfony-project.com" succeeded # pear install symfony/symfony downloading symfony-1.4.20.tgz ... Starting to download symfony-1.4.20.tgz (3,193,375 bytes) .............................................................................................................done: 3,193,375 bytes install ok: channel://pear.symfony-project.com/symfony-1.4.20 |
インストールディレクトリの確認。/usr/share/pear
にいろいろ入っているようです。
1 2 3 4 |
# cd /usr/share/pear;ls Archive MDB2.php PEAR Structures data peclcmd.php Console Net PEAR.php System.php doc symfony MDB2 OS PEAR5.php XML pearcmd.php test |
symfony -v
で、詳細情報が見られます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# symfony -v Usage: symfony [options] task_name [arguments] Options: --help -H Display this help message. --quiet -q Do not log messages to standard output. --trace -t Turn on invoke/execute tracing, enable full backtrace. --version -V Display the program version. --color Forces ANSI color output. --xml To output help as XML Available tasks: :help Displays help for a task :list Lists tasks app :routes Displays current routes for an application cache :clear Clears the cache (cc) configure :author Configure project author generate :app Generates a new application :module Generates a new module :project Generates a new project :task Creates a skeleton class for a new task i18n :extract Extracts i18n strings from php files :find Finds non "i18n ready" strings in an application log :clear Clears log files :rotate Rotates an application's log files plugin :add-channel Add a new PEAR channel :install Installs a plugin :list Lists installed plugins :publish-assets Publishes web assets for all plugins :uninstall Uninstalls a plugin :upgrade Upgrades a plugin project :clear-controllers Clears all non production environment controllers :deploy Deploys a project to another server :disable Disables an application in a given environment :enable Enables an application in a given environment :optimize Optimizes a project for better performance :permissions Fixes symfony directory permissions :send-emails Sends emails stored in a queue :validate Finds deprecated usage in a project symfony :test Launches the symfony test suite test :all Launches all tests :coverage Outputs test code coverage :functional Launches functional tests :unit Launches unit tests |
技術評論社
売り上げランキング: 55,908
関連記事
-
-
.htaccessで旧ドメインを新ドメインにリダイレクトさせる設定
apache_server_logo / Álvaro Reig González ドメイ
-
-
CentOS6.4でホスト名・ドメイン名の変更に伴う諸々の設定変更
以前に新しいドメインikuwow.comを取得して、とりあえずサブのアドレスとしてホームページに飛ん
-
-
2週間で詰めてLPICレベル1試験に合格した
LPICちゃん / iyoupapa 本日、LPICレベル1の試験を受験し、無事合格できま
-
-
CakePHPディレクトリを他サーバに移転する際に困ったこと
まだ解決できていないが、CakePHPで作ったアプリケーションを別のレンタルサーバーに移転し
-
-
MacやLinuxのシェルで使えるショートカットたち
Macでは「ターミナル」、GUIのLinuxでは「端末」と呼ばれているアレです。 個人
-
-
LPICレベル1の勉強をし始めたらわりと面白い
Max Linux Penguin / oddsock Linuxについてもっとちゃんと体