Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user1@vps84372:/home$ aptitude install curl
- E: /home/user1/.aptitude - mkdir (13: Permission denied)
- E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
- E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
- user1@vps84372:/home$ sudo aptitude install curl
- The following NEW packages will be installed:
- curl
- 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
- Need to get 270 kB of archives. After unpacking 373 kB will be used.
- Get: 1 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main curl amd64 7.26.0-1+wheezy9 [270 kB]
- Fetched 270 kB in 0s (5,545 kB/s)
- Selecting previously unselected package curl.
- (Reading database ... 18435 files and directories currently installed.)
- Unpacking curl (from .../curl_7.26.0-1+wheezy9_amd64.deb) ...
- Processing triggers for man-db ...
- Setting up curl (7.26.0-1+wheezy9) ...
- user1@vps84372:/home$ sudo curl -sS https://getcomposer.org/installer | php
- #!/usr/bin/env php
- All settings correct for using Composer
- Downloading...
- Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
- Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
- fwrite() expects parameter 1 to be resource, boolean given
- Downloading...
- Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
- Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
- fwrite() expects parameter 1 to be resource, boolean given
- Downloading...
- Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
- Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
- fwrite() expects parameter 1 to be resource, boolean given
- The download failed repeatedly, aborting.
- user1@vps84372:/home$ su
- Password:
- root@vps84372:/home# apt-get install nginx php5-fpm php5-cli php5-gd php5-mcrypt git
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- php5-cli is already the newest version.
- php5-cli set to manually installed.
- php5-gd is already the newest version.
- php5-mcrypt is already the newest version.
- The following extra packages will be installed:
- git-man libcurl3-gnutls liberror-perl libxslt1.1 nginx-common nginx-full patch rsync
- Suggested packages:
- gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk
- gitweb ed diffutils-doc php-pear
- The following NEW packages will be installed:
- git git-man libcurl3-gnutls liberror-perl libxslt1.1 nginx nginx-common nginx-full patch php5-fpm rsync
- 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
- Need to get 12.0 MB of archives.
- After this operation, 26.0 MB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://security.debian.org/ wheezy/updates/main php5-fpm amd64 5.4.4-14+deb7u12 [2,593 kB]
- Get:2 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main libcurl3-gnutls amd64 7.26.0-1+wheezy9 [321 kB]
- Get:3 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main libxslt1.1 amd64 1.1.26-14.1 [254 kB]
- Get:4 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main patch amd64 2.6.1-3 [121 kB]
- Get:5 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main liberror-perl all 0.17-1 [23.6 kB]
- Get:6 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main git-man all 1:1.7.10.4-1+wheezy1 [1,074 kB]
- Get:7 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main git amd64 1:1.7.10.4-1+wheezy1 [6,683 kB]
- Get:8 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx-common all 1.2.1-2.2+wheezy2 [73.2 kB]
- Get:9 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx-full amd64 1.2.1-2.2+wheezy2 [435 kB]
- Get:10 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx all 1.2.1-2.2+wheezy2 [61.3 kB]
- Get:11 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main rsync amd64 3.0.9-4 [369 kB]
- Fetched 12.0 MB in 0s (12.2 MB/s)
- Selecting previously unselected package libcurl3-gnutls:amd64.
- (Reading database ... 18452 files and directories currently installed.)
- Unpacking libcurl3-gnutls:amd64 (from .../libcurl3-gnutls_7.26.0-1+wheezy9_amd64.deb) ...
- Selecting previously unselected package libxslt1.1:amd64.
- Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.26-14.1_amd64.deb) ...
- Selecting previously unselected package php5-fpm.
- Unpacking php5-fpm (from .../php5-fpm_5.4.4-14+deb7u12_amd64.deb) ...
- Selecting previously unselected package patch.
- Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
- Selecting previously unselected package liberror-perl.
- Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
- Selecting previously unselected package git-man.
- Unpacking git-man (from .../git-man_1%3a1.7.10.4-1+wheezy1_all.deb) ...
- Selecting previously unselected package git.
- Unpacking git (from .../git_1%3a1.7.10.4-1+wheezy1_amd64.deb) ...
- Selecting previously unselected package nginx-common.
- Unpacking nginx-common (from .../nginx-common_1.2.1-2.2+wheezy2_all.deb) ...
- Selecting previously unselected package nginx-full.
- Unpacking nginx-full (from .../nginx-full_1.2.1-2.2+wheezy2_amd64.deb) ...
- Selecting previously unselected package nginx.
- Unpacking nginx (from .../nginx_1.2.1-2.2+wheezy2_all.deb) ...
- Selecting previously unselected package rsync.
- Unpacking rsync (from .../rsync_3.0.9-4_amd64.deb) ...
- Processing triggers for man-db ...
- Setting up libcurl3-gnutls:amd64 (7.26.0-1+wheezy9) ...
- Setting up libxslt1.1:amd64 (1.1.26-14.1) ...
- Setting up php5-fpm (5.4.4-14+deb7u12) ...
- Creating config file /etc/php5/fpm/php.ini with new version
- Setting up patch (2.6.1-3) ...
- Setting up liberror-perl (0.17-1) ...
- Setting up git-man (1:1.7.10.4-1+wheezy1) ...
- Setting up git (1:1.7.10.4-1+wheezy1) ...
- Setting up nginx-common (1.2.1-2.2+wheezy2) ...
- Setting up nginx-full (1.2.1-2.2+wheezy2) ...
- Setting up nginx (1.2.1-2.2+wheezy2) ...
- Setting up rsync (3.0.9-4) ...
- update-rc.d: using dependency based boot sequencing
- root@vps84372:/home# curl -sS https://getcomposer.org/installer | php
- #!/usr/bin/env php
- All settings correct for using Composer
- Downloading...
- Composer successfully installed to: /home/composer.phar
- Use it: php composer.phar
- root@vps84372:/home# mv composer.phar /usr/local/bin/composer
- root@vps84372:/home# ls -l
- total 8
- dr-xr-x--x 2 user1 user1 4096 Aug 15 18:29 user1
- dr-xr-x--x 2 user2 user2 4096 Aug 15 17:22 user2
- root@vps84372:/home# mkdir -p /var/www/silex.dev/{public_html,logs}
- root@vps84372:/home# cd /var/www/silex.dev/public_html
- root@vps84372:/var/www/silex.dev/public_html# git clone https://github.com/silexphp/Silex-Skeleton.git .
- Cloning into '.'...
- remote: Counting objects: 172, done.
- remote: Total 172 (delta 0), reused 0 (delta 0)
- Receiving objects: 100% (172/172), 25.16 KiB, done.
- Resolving deltas: 100% (57/57), done.
- root@vps84372:/var/www/silex.dev/public_html# composer install
- Loading composer repositories with package information
- Installing dependencies (including require-dev)
- - Installing symfony/stopwatch (v2.5.3)
- Downloading: 100%
- - Installing twig/twig (v1.16.0)
- Downloading: 100%
- - Installing psr/log (1.0.0)
- Downloading: 100%
- - Installing symfony/debug (v2.5.3)
- Downloading: 100%
- - Installing symfony/http-foundation (v2.5.3)
- Downloading: 100%
- - Installing symfony/event-dispatcher (v2.5.3)
- Downloading: 100%
- - Installing symfony/http-kernel (v2.5.3)
- Downloading: 100%
- - Installing symfony/security (v2.5.3)
- Downloading: 100%
- - Installing symfony/twig-bridge (v2.5.3)
- Downloading: 100%
- - Installing symfony/routing (v2.5.3)
- Downloading: 100%
- - Installing symfony/web-profiler-bundle (v2.5.3)
- Downloading: 100%
- - Installing pimple/pimple (v1.1.1)
- Downloading: 100%
- - Installing silex/silex (v1.2.1)
- Downloading: 100%
- - Installing silex/web-profiler (v1.0.3)
- Downloading: 100%
- - Installing symfony/dom-crawler (v2.5.3)
- Downloading: 100%
- - Installing symfony/browser-kit (v2.5.3)
- Downloading: 100%
- - Installing symfony/class-loader (v2.5.3)
- Downloading: 100%
- - Installing symfony/filesystem (v2.5.3)
- Downloading: 100%
- - Installing symfony/config (v2.5.3)
- Downloading: 100%
- - Installing symfony/console (v2.5.3)
- Downloading: 100%
- - Installing symfony/css-selector (v2.5.3)
- Downloading: 100%
- - Installing symfony/finder (v2.5.3)
- Downloading: 100%
- - Installing symfony/property-access (v2.5.3)
- Downloading: 100%
- - Installing symfony/options-resolver (v2.5.3)
- Downloading: 100%
- - Installing symfony/intl (v2.5.3)
- Downloading: 100%
- - Installing symfony/icu (v1.0.1)
- Downloading: 100%
- - Installing symfony/form (v2.5.3)
- Downloading: 100%
- - Installing monolog/monolog (1.10.0)
- Downloading: 100%
- - Installing symfony/monolog-bridge (v2.5.3)
- Downloading: 100%
- - Installing symfony/process (v2.5.3)
- Downloading: 100%
- - Installing symfony/translation (v2.5.3)
- Downloading: 100%
- - Installing symfony/validator (v2.5.3)
- Downloading: 100%
- symfony/event-dispatcher suggests installing symfony/dependency-injection ()
- symfony/http-kernel suggests installing symfony/dependency-injection ()
- symfony/security suggests installing doctrine/dbal (For using the built-in ACL implementation)
- symfony/security suggests installing symfony/expression-language (For using the expression voter)
- symfony/security suggests installing ircmaxell/password-compat (For using the BCrypt password encoder in PHP <5.5)
- symfony/twig-bridge suggests installing symfony/templating (For using the TwigEngine)
- symfony/twig-bridge suggests installing symfony/yaml (For using the YamlExtension)
- symfony/twig-bridge suggests installing symfony/expression-language (For using the ExpressionExtension)
- symfony/routing suggests installing symfony/yaml (For using the YAML loader)
- symfony/routing suggests installing symfony/expression-language (For using expression matching)
- symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
- symfony/intl suggests installing ext-intl (to use the component with locales other than "en")
- symfony/form suggests installing symfony/framework-bundle (For templating with PHP.)
- monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
- monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
- monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
- monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
- monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
- monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
- monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
- monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
- symfony/translation suggests installing symfony/yaml ()
- symfony/validator suggests installing doctrine/annotations (For using the annotation mapping. You will also need doctrine/cache.)
- symfony/validator suggests installing doctrine/cache (For using the default cached annotation reader and metadata cache.)
- symfony/validator suggests installing symfony/yaml ()
- symfony/validator suggests installing egulias/email-validator (Strict (RFC compliant) email validation)
- symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
- Writing lock file
- Generating autoload files
- root@vps84372:/var/www/silex.dev/public_html# chown -R www-data: /var/www/yourwebsite.dev/public_html/var/cache/
- chown: cannot access `/var/www/yourwebsite.dev/public_html/var/cache/': No such file or directory
- root@vps84372:/var/www/silex.dev/public_html# chown -R www-data: /var/www/silex.dev/public_html/var/cache/ root@vps84372:/var/www/silex.dev/public_html# # /etc/nginx/sites-available/silex.dev
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html#
- root@vps84372:/var/www/silex.dev/public_html# cd /etc/
- Display all 144 possibilities? (y or n)
- root@vps84372:/var/www/silex.dev/public_html# cd /etc/n
- nail.rc nanorc network/ networks nginx/ nsswitch.conf
- root@vps84372:/var/www/silex.dev/public_html# cd /etc/n
- nail.rc nanorc network/ networks nginx/ nsswitch.conf
- root@vps84372:/var/www/silex.dev/public_html# cd /etc/nginx/
- root@vps84372:/etc/nginx# cd conf.d/
- root@vps84372:/etc/nginx/conf.d# ls -l
- total 0
- root@vps84372:/etc/nginx/conf.d# vim virtual.conf
- root@vps84372:/etc/nginx/conf.d# cd /var/www/silex.dev
- root@vps84372:/var/www/silex.dev# ls -l
- total 8
- drwxr-xr-x 2 root root 4096 Aug 15 19:05 logs
- drwxr-xr-x 10 root root 4096 Aug 15 19:07 public_html
- root@vps84372:/var/www/silex.dev# cd /var/www/silex.dev/public_html
- root@vps84372:/var/www/silex.dev/public_html# ln -s /etc/nginx/sites-available/yourwebsite.dev /etc/nginx/sites-enabled/yourwebsite.dev
- root@vps84372:/var/www/silex.dev/public_html# ln -s /etc/nginx/sites-available/silex.dev /etc/nginx/sites-enabled/silex.dev
- root@vps84372:/var/www/silex.dev/public_html# /etc/init.d/nginx restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement