Advertisement
Guest User

Untitled

a guest
Aug 15th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.60 KB | None | 0 0
  1. user1@vps84372:/home$ aptitude install curl
  2. E: /home/user1/.aptitude - mkdir (13: Permission denied)
  3. E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
  4. E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
  5. user1@vps84372:/home$ sudo aptitude install curl
  6. The following NEW packages will be installed:
  7. curl
  8. 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  9. Need to get 270 kB of archives. After unpacking 373 kB will be used.
  10. Get: 1 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main curl amd64 7.26.0-1+wheezy9 [270 kB]
  11. Fetched 270 kB in 0s (5,545 kB/s)
  12. Selecting previously unselected package curl.
  13. (Reading database ... 18435 files and directories currently installed.)
  14. Unpacking curl (from .../curl_7.26.0-1+wheezy9_amd64.deb) ...
  15. Processing triggers for man-db ...
  16. Setting up curl (7.26.0-1+wheezy9) ...
  17.  
  18. user1@vps84372:/home$ sudo curl -sS https://getcomposer.org/installer | php
  19. #!/usr/bin/env php
  20. All settings correct for using Composer
  21. Downloading...
  22. Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
  23. Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
  24. fwrite() expects parameter 1 to be resource, boolean given
  25. Downloading...
  26. Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
  27. Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
  28. fwrite() expects parameter 1 to be resource, boolean given
  29. Downloading...
  30. Could not create file /home/composer.phar: fopen(/home/composer.phar): failed to open stream: Permission denied
  31. Download failed: fopen(/home/composer.phar): failed to open stream: Permission denied
  32. fwrite() expects parameter 1 to be resource, boolean given
  33. The download failed repeatedly, aborting.
  34. user1@vps84372:/home$ su
  35. Password:
  36. root@vps84372:/home# apt-get install nginx php5-fpm php5-cli php5-gd php5-mcrypt git
  37. Reading package lists... Done
  38. Building dependency tree
  39. Reading state information... Done
  40. php5-cli is already the newest version.
  41. php5-cli set to manually installed.
  42. php5-gd is already the newest version.
  43. php5-mcrypt is already the newest version.
  44. The following extra packages will be installed:
  45. git-man libcurl3-gnutls liberror-perl libxslt1.1 nginx-common nginx-full patch rsync
  46. Suggested packages:
  47. gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk
  48. gitweb ed diffutils-doc php-pear
  49. The following NEW packages will be installed:
  50. git git-man libcurl3-gnutls liberror-perl libxslt1.1 nginx nginx-common nginx-full patch php5-fpm rsync
  51. 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
  52. Need to get 12.0 MB of archives.
  53. After this operation, 26.0 MB of additional disk space will be used.
  54. Do you want to continue [Y/n]? y
  55. Get:1 http://security.debian.org/ wheezy/updates/main php5-fpm amd64 5.4.4-14+deb7u12 [2,593 kB]
  56. Get:2 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main libcurl3-gnutls amd64 7.26.0-1+wheezy9 [321 kB]
  57. Get:3 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main libxslt1.1 amd64 1.1.26-14.1 [254 kB]
  58. Get:4 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main patch amd64 2.6.1-3 [121 kB]
  59. Get:5 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main liberror-perl all 0.17-1 [23.6 kB]
  60. 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]
  61. Get:7 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main git amd64 1:1.7.10.4-1+wheezy1 [6,683 kB]
  62. Get:8 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx-common all 1.2.1-2.2+wheezy2 [73.2 kB]
  63. Get:9 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx-full amd64 1.2.1-2.2+wheezy2 [435 kB]
  64. Get:10 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main nginx all 1.2.1-2.2+wheezy2 [61.3 kB]
  65. Get:11 http://mirror.ovh.net/ftp.debian.org/debian/ wheezy/main rsync amd64 3.0.9-4 [369 kB]
  66. Fetched 12.0 MB in 0s (12.2 MB/s)
  67. Selecting previously unselected package libcurl3-gnutls:amd64.
  68. (Reading database ... 18452 files and directories currently installed.)
  69. Unpacking libcurl3-gnutls:amd64 (from .../libcurl3-gnutls_7.26.0-1+wheezy9_amd64.deb) ...
  70. Selecting previously unselected package libxslt1.1:amd64.
  71. Unpacking libxslt1.1:amd64 (from .../libxslt1.1_1.1.26-14.1_amd64.deb) ...
  72. Selecting previously unselected package php5-fpm.
  73. Unpacking php5-fpm (from .../php5-fpm_5.4.4-14+deb7u12_amd64.deb) ...
  74. Selecting previously unselected package patch.
  75. Unpacking patch (from .../patch_2.6.1-3_amd64.deb) ...
  76. Selecting previously unselected package liberror-perl.
  77. Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
  78. Selecting previously unselected package git-man.
  79. Unpacking git-man (from .../git-man_1%3a1.7.10.4-1+wheezy1_all.deb) ...
  80. Selecting previously unselected package git.
  81. Unpacking git (from .../git_1%3a1.7.10.4-1+wheezy1_amd64.deb) ...
  82. Selecting previously unselected package nginx-common.
  83. Unpacking nginx-common (from .../nginx-common_1.2.1-2.2+wheezy2_all.deb) ...
  84. Selecting previously unselected package nginx-full.
  85. Unpacking nginx-full (from .../nginx-full_1.2.1-2.2+wheezy2_amd64.deb) ...
  86. Selecting previously unselected package nginx.
  87. Unpacking nginx (from .../nginx_1.2.1-2.2+wheezy2_all.deb) ...
  88. Selecting previously unselected package rsync.
  89. Unpacking rsync (from .../rsync_3.0.9-4_amd64.deb) ...
  90. Processing triggers for man-db ...
  91. Setting up libcurl3-gnutls:amd64 (7.26.0-1+wheezy9) ...
  92. Setting up libxslt1.1:amd64 (1.1.26-14.1) ...
  93. Setting up php5-fpm (5.4.4-14+deb7u12) ...
  94.  
  95. Creating config file /etc/php5/fpm/php.ini with new version
  96. Setting up patch (2.6.1-3) ...
  97. Setting up liberror-perl (0.17-1) ...
  98. Setting up git-man (1:1.7.10.4-1+wheezy1) ...
  99. Setting up git (1:1.7.10.4-1+wheezy1) ...
  100. Setting up nginx-common (1.2.1-2.2+wheezy2) ...
  101. Setting up nginx-full (1.2.1-2.2+wheezy2) ...
  102. Setting up nginx (1.2.1-2.2+wheezy2) ...
  103. Setting up rsync (3.0.9-4) ...
  104. update-rc.d: using dependency based boot sequencing
  105. root@vps84372:/home# curl -sS https://getcomposer.org/installer | php
  106. #!/usr/bin/env php
  107. All settings correct for using Composer
  108. Downloading...
  109.  
  110. Composer successfully installed to: /home/composer.phar
  111. Use it: php composer.phar
  112. root@vps84372:/home# mv composer.phar /usr/local/bin/composer
  113. root@vps84372:/home# ls -l
  114. total 8
  115. dr-xr-x--x 2 user1 user1 4096 Aug 15 18:29 user1
  116. dr-xr-x--x 2 user2 user2 4096 Aug 15 17:22 user2
  117. root@vps84372:/home# mkdir -p /var/www/silex.dev/{public_html,logs}
  118. root@vps84372:/home# cd /var/www/silex.dev/public_html
  119. root@vps84372:/var/www/silex.dev/public_html# git clone https://github.com/silexphp/Silex-Skeleton.git .
  120. Cloning into '.'...
  121. remote: Counting objects: 172, done.
  122. remote: Total 172 (delta 0), reused 0 (delta 0)
  123. Receiving objects: 100% (172/172), 25.16 KiB, done.
  124. Resolving deltas: 100% (57/57), done.
  125. root@vps84372:/var/www/silex.dev/public_html# composer install
  126. Loading composer repositories with package information
  127. Installing dependencies (including require-dev)
  128. - Installing symfony/stopwatch (v2.5.3)
  129. Downloading: 100%
  130.  
  131. - Installing twig/twig (v1.16.0)
  132. Downloading: 100%
  133.  
  134. - Installing psr/log (1.0.0)
  135. Downloading: 100%
  136.  
  137. - Installing symfony/debug (v2.5.3)
  138. Downloading: 100%
  139.  
  140. - Installing symfony/http-foundation (v2.5.3)
  141. Downloading: 100%
  142.  
  143. - Installing symfony/event-dispatcher (v2.5.3)
  144. Downloading: 100%
  145.  
  146. - Installing symfony/http-kernel (v2.5.3)
  147. Downloading: 100%
  148.  
  149. - Installing symfony/security (v2.5.3)
  150. Downloading: 100%
  151.  
  152. - Installing symfony/twig-bridge (v2.5.3)
  153. Downloading: 100%
  154.  
  155. - Installing symfony/routing (v2.5.3)
  156. Downloading: 100%
  157.  
  158. - Installing symfony/web-profiler-bundle (v2.5.3)
  159. Downloading: 100%
  160.  
  161. - Installing pimple/pimple (v1.1.1)
  162. Downloading: 100%
  163.  
  164. - Installing silex/silex (v1.2.1)
  165. Downloading: 100%
  166.  
  167. - Installing silex/web-profiler (v1.0.3)
  168. Downloading: 100%
  169.  
  170. - Installing symfony/dom-crawler (v2.5.3)
  171. Downloading: 100%
  172.  
  173. - Installing symfony/browser-kit (v2.5.3)
  174. Downloading: 100%
  175.  
  176. - Installing symfony/class-loader (v2.5.3)
  177. Downloading: 100%
  178.  
  179. - Installing symfony/filesystem (v2.5.3)
  180. Downloading: 100%
  181.  
  182. - Installing symfony/config (v2.5.3)
  183. Downloading: 100%
  184.  
  185. - Installing symfony/console (v2.5.3)
  186. Downloading: 100%
  187.  
  188. - Installing symfony/css-selector (v2.5.3)
  189. Downloading: 100%
  190.  
  191. - Installing symfony/finder (v2.5.3)
  192. Downloading: 100%
  193.  
  194. - Installing symfony/property-access (v2.5.3)
  195. Downloading: 100%
  196.  
  197. - Installing symfony/options-resolver (v2.5.3)
  198. Downloading: 100%
  199.  
  200. - Installing symfony/intl (v2.5.3)
  201. Downloading: 100%
  202.  
  203. - Installing symfony/icu (v1.0.1)
  204. Downloading: 100%
  205.  
  206. - Installing symfony/form (v2.5.3)
  207. Downloading: 100%
  208.  
  209. - Installing monolog/monolog (1.10.0)
  210. Downloading: 100%
  211.  
  212. - Installing symfony/monolog-bridge (v2.5.3)
  213. Downloading: 100%
  214.  
  215. - Installing symfony/process (v2.5.3)
  216. Downloading: 100%
  217.  
  218. - Installing symfony/translation (v2.5.3)
  219. Downloading: 100%
  220.  
  221. - Installing symfony/validator (v2.5.3)
  222. Downloading: 100%
  223.  
  224. symfony/event-dispatcher suggests installing symfony/dependency-injection ()
  225. symfony/http-kernel suggests installing symfony/dependency-injection ()
  226. symfony/security suggests installing doctrine/dbal (For using the built-in ACL implementation)
  227. symfony/security suggests installing symfony/expression-language (For using the expression voter)
  228. symfony/security suggests installing ircmaxell/password-compat (For using the BCrypt password encoder in PHP <5.5)
  229. symfony/twig-bridge suggests installing symfony/templating (For using the TwigEngine)
  230. symfony/twig-bridge suggests installing symfony/yaml (For using the YamlExtension)
  231. symfony/twig-bridge suggests installing symfony/expression-language (For using the ExpressionExtension)
  232. symfony/routing suggests installing symfony/yaml (For using the YAML loader)
  233. symfony/routing suggests installing symfony/expression-language (For using expression matching)
  234. symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
  235. symfony/intl suggests installing ext-intl (to use the component with locales other than "en")
  236. symfony/form suggests installing symfony/framework-bundle (For templating with PHP.)
  237. monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
  238. monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
  239. monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
  240. monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
  241. monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
  242. monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
  243. monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
  244. monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
  245. symfony/translation suggests installing symfony/yaml ()
  246. symfony/validator suggests installing doctrine/annotations (For using the annotation mapping. You will also need doctrine/cache.)
  247. symfony/validator suggests installing doctrine/cache (For using the default cached annotation reader and metadata cache.)
  248. symfony/validator suggests installing symfony/yaml ()
  249. symfony/validator suggests installing egulias/email-validator (Strict (RFC compliant) email validation)
  250. symfony/validator suggests installing symfony/expression-language (For using the 2.4 Expression validator)
  251. Writing lock file
  252. Generating autoload files
  253. root@vps84372:/var/www/silex.dev/public_html# chown -R www-data: /var/www/yourwebsite.dev/public_html/var/cache/
  254. chown: cannot access `/var/www/yourwebsite.dev/public_html/var/cache/': No such file or directory
  255. 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
  256. root@vps84372:/var/www/silex.dev/public_html#
  257. root@vps84372:/var/www/silex.dev/public_html#
  258. root@vps84372:/var/www/silex.dev/public_html#
  259. root@vps84372:/var/www/silex.dev/public_html#
  260. root@vps84372:/var/www/silex.dev/public_html#
  261. root@vps84372:/var/www/silex.dev/public_html#
  262. root@vps84372:/var/www/silex.dev/public_html# cd /etc/
  263. Display all 144 possibilities? (y or n)
  264. root@vps84372:/var/www/silex.dev/public_html# cd /etc/n
  265. nail.rc nanorc network/ networks nginx/ nsswitch.conf
  266. root@vps84372:/var/www/silex.dev/public_html# cd /etc/n
  267. nail.rc nanorc network/ networks nginx/ nsswitch.conf
  268. root@vps84372:/var/www/silex.dev/public_html# cd /etc/nginx/
  269. root@vps84372:/etc/nginx# cd conf.d/
  270. root@vps84372:/etc/nginx/conf.d# ls -l
  271. total 0
  272. root@vps84372:/etc/nginx/conf.d# vim virtual.conf
  273. root@vps84372:/etc/nginx/conf.d# cd /var/www/silex.dev
  274. root@vps84372:/var/www/silex.dev# ls -l
  275. total 8
  276. drwxr-xr-x 2 root root 4096 Aug 15 19:05 logs
  277. drwxr-xr-x 10 root root 4096 Aug 15 19:07 public_html
  278. root@vps84372:/var/www/silex.dev# cd /var/www/silex.dev/public_html
  279. root@vps84372:/var/www/silex.dev/public_html# ln -s /etc/nginx/sites-available/yourwebsite.dev /etc/nginx/sites-enabled/yourwebsite.dev
  280. root@vps84372:/var/www/silex.dev/public_html# ln -s /etc/nginx/sites-available/silex.dev /etc/nginx/sites-enabled/silex.dev
  281. root@vps84372:/var/www/silex.dev/public_html# /etc/init.d/nginx restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement