Jump to content

mstdmstdd

Members
  • Content Count

    136
  • Joined

  • Last visited

Everything posted by mstdmstdd

  1. mstdmstdd

    Make working properly metisMenu in vue app

    Sorry, I still search for decision, any idea why I failed to run properly MetisMenu in vuejs app? Who did such way ? MetisMenu is very popular ...
  2. Hello, I want to use SB Admin 2 template from https://github.com/dpwilhelmsen/sb-admin-2-bootstrap-4 In my Laravel 5.7 / Vuejs 2.6 / Vuex 3.1/ Bootstrap 4.3 app and I take some steps for it :As it is based in metismenu In console I run next commands : npm install --save metismenu npm i popper npm audit fix In resources/js/app.js I included metismenu: require('./bootstrap'); //require('popper'); /* If to uncomment line above in console I got lot of errors : WARNING in ./node_modules/popper/index.js 235:35-58 Critical dependency: the request of a dependency is an expression @ ./resources/js/app.js @ multi ./resources/js/app.js ./resources/sass/sb2/app.scss ./resources/sass/sb2/sb-admin-2.scss */ require('metismenu'); require('jquery'); window.Vue = require('vue'); ... In resources/js/helpers/commonFuncs.js which is used in all vue pages I init menu at method : export function checkAuthorization(store, router) { // console.log("-11 checkAuthorization::") router.beforeEach((to, from, next) => { jQueryInit(); next(); ... function jQueryInit() { // alert( "jQueryInit"+(-55) ) $(function () { // alert( "INSIDE::"+var_dump(-11) ) $('#side-menu').metisMenu(); console.log("Inside $('#side-menu')::") console.log($('#side-menu')) }); //Loads the correct sidebar on window load, //collapses the sidebar on window resize. // Sets the min-height of #page-wrapper to window size $(function () { var setupPage = function () { var topOffset = 50; console.log("++1 typeof window::") console.log(typeof window) console.log(window) var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; if (width < 768) { $('div.navbar-collapse').removeClass('show'); topOffset = 100; // 2-row-menu } else { $('div.navbar-collapse').addClass('show'); } console.log("++2 typeof window::") console.log(typeof window) console.log(window) var height = ((window.innerHeight > 0) ? window.innerHeight : screen.height) - 1; height = height - topOffset; if (height < 1) height = 1; if (height > topOffset) { $("#page-wrapper").css("min-height", (height) + "px"); } }; // debugger $(window).bind("load resize", setupPage); var url = window.location; var element = $('ul.nav a').filter(function () { return this.href == url; }).addClass('active').parent(); while (true) { if (element.is('li')) { element = element.parent().addClass('in').parent(); } else { break; } } setupPage(); }); alert( "AFTER jQueryInit"+(-55) ) } looking at console I do not see any JS errors and it looks that window is proper JS object. I suppose that is best place for init of metismenu. I did not attache any metisMenu.js / css files manually sopposing that command asbove require('metismenu'); made it. But layout of my page is broken. You can look at it live at http://hostels-tours.nilov-sergey-demo-apps.tk/admin/dashboard Please, pay attention at console output : https://imgur.com/a/xZ0EVNgI added style definition : #wrapper { width: 100%; background-color: yellow; border: 2px dotted red; } to be sure that styling in resources/sass/sb2/sb-admin-2.scss are applied. What is wrong and is it possible to work in vue app metisMenu.js ? Thanks!
  3. Hello! I found a very strange warning in new PhpStorm 2019.1.2 https://imgur.com/a/oTHQXMh I have 7.2 option installed : https://imgur.com/a/uqkcsP3 But why error? Some misconfigure in PhpStorm ? Thanks!
  4. Here https://github.com/vuejs/awesome-vue reviwed a lot and found only vuecsv . Could you please take a look or advice some ?
  5. Hello, in my laravel 5.8 / vuejs 2.5 app I need to upload csv file and I found this https://github.com/ynishi/vuecsv plugin and tried to install it. But installing it I got errors in JS console: $ npm install ynishi/vuecsv > core-js@2.6.9 postinstall /mnt/_work_sdb8/wwwroot/lar/wiznext/msg-laravel-application/node_modules/core-js > node scripts/postinstall || echo "ignore" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > bootstrap-vue@1.5.1 postinstall /mnt/_work_sdb8/wwwroot/lar/wiznext/msg-laravel-application/node_modules/bootstrap-vue > opencollective postinstall || exit 0 Thanks for installing bootstrap-vue Please consider donating to our open collective to help us maintain this package. Number of contributors: 227 Number of backers: 31 Annual budget: $774 Current balance: $1,190 Donate: https://opencollective.com/bootstrap-vue/donate npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) + vuecsv@0.0.10 added 44 packages from 32 contributors and audited 17038 packages in 87.476s found 1 high severity vulnerability run `npm audit fix` to fix them, or `npm audit` for details The output above was somewhat unuaual, but was it just advirtisement? Next I run : npm audit fix npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) up to date in 8.632s fixed 0 of 1 vulnerability in 17038 scanned packages 1 vulnerability required manual review and could not be updated After that package.json : { "private": true, "scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "watch": "npm run development -- --watch", "watch-poll": "npm run watch -- --watch-poll", "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", "prod": "npm run production", "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" }, "devDependencies": { "axios": "^0.18", "bootstrap": "^4.0.0", "cross-env": "^5.1", "jquery": "^3.4.1", "laravel-mix": "^4.0.7", "lodash": "^4.17.5", "popper.js": "^1.12", "resolve-url-loader": "^2.3.1", "sass": "^1.15.2", "sass-loader": "^7.1.0", "vue": "^2.5.17", "vue-template-compiler": "^2.6.10" }, "dependencies": { "cors": "^2.8.5", "remove": "^0.1.5", "v-tooltip": "^2.0.2", "vee-validate": "^2.2.5", "vee-validate-laravel": "^1.1.0", "vue-js-modal": "^1.3.31", "vue-moment": "^4.0.0", "vue-notification": "^1.3.16", "vue-router": "^3.0.6", "vue-select": "^3.1.0", "vue-slider-component": "^3.0.31", "vue2-filters": "^0.6.0", "vuecsv": "github:ynishi/vuecsv", "vuejs-paginate": "^2.1.0", "vuex": "^3.1.0" } } I tried to use this https://jsfiddle.net/ynishif/1ztu8x8q/ fiddle, But I Got error referenced at my file : app.js?dt=1560770053:2823 Uncaught ReferenceError: VueCSV is not defined at Module../node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Horizontal/personal/userLists/list.vue? in /Horizontal/personal/userLists/list.vue: <script> ... import Vue from 'vue'; Vue.component("csv-download", VueCSV.CsvDownload) I am very confused as VueCSV is not defined anywhere, but it works if mentioned fiddle. That seems somewhat tricky for me, as looks like I try to attach VueCSV with reference to its method and I do not see how it works in the fiddle above? What did I miss? Thanks!
  6. I got errors in console : $ npm install --save Vue npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/Vue - Not found npm ERR! 404 npm ERR! 404 'Vue@latest' is not in the npm registry. npm ERR! 404 Your package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /home/serge/.npm/_logs/2019-06-18T14_42_06_261Z-debug.log and in mentioned log file : 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--save', 'Vue' ] 2 info using npm@6.9.0 3 info using node@v10.15.3 4 verbose npm-session 7023bc00e3afa995 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 404 https://registry.npmjs.org/Vue 937ms 8 http fetch GET 404 https://registry.npmjs.org/Vue 824ms 9 silly fetchPackageMetaData error for Vue@latest 404 Not Found - GET https://registry.npmjs.org/Vue - Not found 10 timing stage:rollbackFailedOptional Completed in 1ms 11 timing stage:runTopLevelLifecycles Completed in 3721ms 12 verbose stack Error: 404 Not Found - GET https://registry.npmjs.org/Vue - Not found 12 verbose stack at res.buffer.catch.then.body (/usr/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15) 12 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7) 13 verbose statusCode 404 14 verbose pkgid Vue@latest 15 verbose cwd /mnt/_work_sdb8/wwwroot/lar/wiznext/msg-laravel-application 16 verbose Linux 4.15.0-51-generic 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--save" "Vue" 18 verbose node v10.15.3 19 verbose npm v6.9.0 20 error code E404 21 error 404 Not Found - GET https://registry.npmjs.org/Vue - Not found 22 error 404 23 error 404 'Vue@latest' is not in the npm registry. 24 error 404 Your package name is not valid, because 25 error 404 1. name can no longer contain capital letters 26 error 404 Note that you can also install from a 27 error 404 tarball, folder, http url, or git url. 28 verbose exit [ 1, true ]
  7. I am not sure that I understand you, after installing of vuecsv.min.js I have /node_modules/vuecsv/dist/vuecsv.min.js file and in my vue file I tried to make like : <script> import {bus} from '../../../../app'; import appMixin from '../../../../appMixin'; //import import VueCSV from '/vuecsv/dist/vuecsv.min.js'; // /node_modules/vuecsv/dist/vuecsv.min.js Vue.use(VueCSV); Vue.component("csv-download" , VueCSV.CsvDownload ) but in console I see error : ERROR in ./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js&) Module not found: Error: Can't resolve '/vuecsv/dist/vuecsv.min.js' in '/mnt/_work_sdb8/wwwroot/lar/wiznext/msg-laravel-application/resources/js/components/Horizontal/personal/userLists' @ ./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js&) 124:0-48 127:8-14 132:30-36 @ ./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& @ ./resources/js/components/Horizontal/personal/userLists/list.vue @ ./resources/js/routes.js @ ./resources/js/app.js @ multi ./resources/js/app.js ./resources/sass/Horizontal/app.scss ./resources/sass/Horizontal/style_lg.scss ./resources/sass/Horizontal/style_md.scss ./resources/sass/Horizontal/style_sm.scss ./resources/sass/Horizontal/style_xs_320.scss ./resources/sass/Horizontal/style_xs_480.scss ./resources/sass/Horizontal/style_xs_600.scss If i modify import line as : import VueCSV from 'vuecsv'; // /node_modules/vuecsv/dist/vuecsv.min.js I see error in npm console : This dependency was not found: * Vue in ./node_modules/vuecsv/dist/vuecsv.min.js To install it, you can run: npm install --save Vue sure I have vue installed. Which way is right?
  8. Yes, I tried to change in resources/views/index.blade.php : <script src="{{ asset('js/app.js') }}{{ "?dt=".time() }}"></script> <script type="text/javascript" src="{{ asset('js/vuecsv.min.js') }}"></script> Did you mean this? In this case erros in browser's console : app.js?dt=1560861461:2822 Uncaught ReferenceError: VueCSV is not defined at Module../node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (app.js?dt=1560861461:2822) at __webpack_require__ (app.js?dt=1560861461:20) at Module../resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (app.js?dt=1560861461:81388) at __webpack_require__ (app.js?dt=1560861461:20) at Module../resources/js/components/Horizontal/personal/userLists/list.vue (app.js?dt=1560861461:81352) at __webpack_require__ (app.js?dt=1560861461:20) at Module../resources/js/routes.js (app.js?dt=1560861461:81978) at __webpack_require__ (app.js?dt=1560861461:20) at Module../resources/js/app.js (app.js?dt=1560861461:80236) at __webpack_require__ (app.js?dt=1560861461:20) ./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& @ app.js?dt=1560861461:2822 __webpack_require__ @ app.js?dt=1560861461:20 ./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& @ app.js?dt=1560861461:81388 __webpack_require__ @ app.js?dt=1560861461:20 ./resources/js/components/Horizontal/personal/userLists/list.vue @ app.js?dt=1560861461:81352 __webpack_require__ @ app.js?dt=1560861461:20 ./resources/js/routes.js @ app.js?dt=1560861461:81978 __webpack_require__ @ app.js?dt=1560861461:20 ./resources/js/app.js @ app.js?dt=1560861461:80236 __webpack_require__ @ app.js?dt=1560861461:20 0 @ app.js?dt=1560861461:82391 __webpack_require__ @ app.js?dt=1560861461:20 (anonymous) @ app.js?dt=1560861461:84 (anonymous) @ app.js?dt=1560861461:87 app.js?dt=1560861461:75903 You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html DevTools failed to parse SourceMap: http://127.0.0.1:8000/js/vue-slider-component.umd.min.js.map vuecsv.min.js:1 Uncaught TypeError: Cannot read property 'use' of undefined at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1)
  9. Yes, it is in the end of resources/views/index.blade.php
  10. In first lines of resources/js/app.js :
  11. I tried this way and copied file vuecsv.min.js into my project as js/vuecsv.min.js. In my laravel container file resources/views/index.blade.php I include it after jquery and bootstrap files, but before app.js: @include('footer') <script src="{{ asset('js/jquery.min.js') }}"></script> <script src="{{ asset('js/bootstrap.bundle.min.js') }}"></script> <script type="text/javascript" src="{{ asset('js/vuecsv.min.js') }}"></script> <script src="{{ asset('js/metisMenu.min.js') }}"></script> <script src="{{ asset('js/waves.min.js') }}"></script> <script src="{{ asset('js/jquery.slimscroll.min.js') }}"></script> <script src="{{ asset('js/powerange.js') }}"></script> <script src="{{ asset('js/appInit.js') }}"></script> <script src="{{ asset('js/app.js') }}{{ "?dt=".time() }}"></script> </html> After that in browser's console I see errors : vuecsv.min.js:1 Uncaught TypeError: Cannot read property 'use' of undefined at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) at Object.<anonymous> (vuecsv.min.js:1) at n (vuecsv.min.js:1) (anonymous) @ vuecsv.min.js:1 n @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 n @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 n @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 n @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 n @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 (anonymous) @ vuecsv.min.js:1 DevTools failed to parse SourceMap: http://127.0.0.1:8000/js/waves.min.js.map DevTools failed to parse SourceMap: http://127.0.0.1:8000/js/metisMenu.js.map app.js?dt=1560852335:2822 Uncaught ReferenceError: VueCSV is not defined at Module../node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (app.js?dt=1560852335:2822) at __webpack_require__ (app.js?dt=1560852335:20) at Module../resources/js/components/Horizontal/personal/userLists/list.vue?vue&type=script&lang=js& (app.js?dt=1560852335:81388) at __webpack_require__ (app.js?dt=1560852335:20) at Module../resources/js/components/Horizontal/personal/userLists/list.vue (app.js?dt=1560852335:81352) at __webpack_require__ (app.js?dt=1560852335:20) at Module../resources/js/routes.js (app.js?dt=1560852335:81978) at __webpack_require__ (app.js?dt=1560852335:20) at Module../resources/js/app.js (app.js?dt=1560852335:80236) at __webpack_require__ (app.js?dt=1560852335:20) Any ideas why errors and how fix it ?
  12. Hello, In my Laravel 5.7 / Vuejs 2.6 / Vuex 3.1/ Bootstrap 4.3 app I want to use https://demos.creative-tim.com/vue-argon-design-system/ template and in it's docs https://demos.creative-tim.com/vue-argon-design-system/documentation/quick-start.html#quick-start I read : I added such lines in my resources/js/app.js : import Vue from 'vue'; ... import Argon from '@/plugins/argon-kit' Vue.use(Argon); I am not sure which files have I to copy into my project, I tried to copy files from /vue-argon-design-system/src/plugins subdirectory : /vue-argon-design-system/src/plugins$ ls -la -rwxrwxrwx 1 root root 415 тра 5 15:11 argon-kit.js -rwxrwxrwx 1 root root 1182 тра 5 15:11 globalComponents.js -rwxrwxrwx 1 root root 297 тра 5 15:11 globalDirectives.js into /resources/js/plugins subdirectory of my projectbut npm console command raised error : This dependency was not found: * @/plugins/argon-kit in ./resources/js/app.js To install it, you can run: npm install --save @/plugins/argon-kit ... ERROR in ./resources/js/app.js Module not found: Error: Can't resolve '@/plugins/argon-kit' in '/mnt/_work_sdb8/wwwroot/lar/Hostels2/resources/js' @ ./resources/js/app.js 12:0-40 13:8-13 @ multi ./resources/js/app.js ./resources/sass/BS4/app.scss I tried to install plugin as in message above: $ npm install --save @/plugins/argon-kit npm ERR! code ENOLOCAL npm ERR! Could not install from "@/plugins/argon-kit" as it does not contain a package.json file. ... Which is valid way to install argon into my app? Thanks!
  13. Hello! I installed latest version of PhpStorm and I have problem that syntax of envoy is not supported: PhpStorm 2019.1.2 Build #PS-191.7141.52, built on May 8, 2019 Licensed to PhpStorm Evaluator Expiration date: June 26, 2019 and imported all settings from prior versions. and syntax is not highlited at all : https://imgur.com/a/eIAvFxa I run menu item with all page selected Code->Reformat Code It did not help. Can it be some additive options/pluging? Blade syntax is supported ok for all my blade.php files. Who works in phpstorm with envoy? Do you use phpstorm or some other editors? Thanks!
  14. Hello, Could you please look at design issue : http://178.128.145.48/login demo@demo.com wdemo Page http://178.128.145.48/websites-blogs must be opened with preload data(Or click “Search” button). The problem is that if some rows have no image, bordered first letter must be shown, like : https://prnt.sc/nv9466 I tried to center letter in red border(which must be of fixed width), but failed. Which is the right way? Thanks!
  15. Hello, I install laravel 5.8 on new Ubuntu 16 instance under Digital Ocean. I need to install php 7.2 and for this I found this https://medium.com/andrewmmc-io/upgrade-php-version-to-7-2-from-7-0-c005a0926642 and after installing I got in console: # php -v PHP 7.2.18-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May 3 2019 09:23:41) ( NTS ) but phpinfo in browser shows : PHP Version 7.0.33-0ubuntu0.16.04.4 How to refresh it in browser? Thanks!
  16. That helped me! $ a2dismod php7.0 $ a2enmod php7.2 $ service apache2 restart
  17. Hello, Installing and running migration my laravel 5.8 app on new server under vultr vps I got error: https://imgur.com/a/87KgTQ4 php info is here : http://phpstack-231450-837582.cloudwaysapps.com/ How fix this error ? Thanks!
  18. Sure, not. But where did you find this option ? In printscreen or in phpinfo ? In phpinfo I see : mysqli->mysqli.default_host = "no value" Please, point which option is not valid and which option must be applied?
  19. Hello, I work with envoy installing, like https://dyrynda.com.au/blog/an-envoyer-like-deployment-script-using-envoy: and I run the script when ln command is run successfully # Import the environment config echo 'Linking .env file'; cd {{ $release_dir }}/{{ $release }}; ln -nfs {{ $base_dir }}/.env .env; # Symlink the latest release to the current directory echo 'Linking current release'; ln -nfs {{ $release_dir }}/{{ $release }} {{ $current_dir }}; As I see symbol link to newly release directory is created. But I am not sure how to use it? with apache installed on my ubuntu server I tried to create new config dir but running a2ensite hostels2.com.conf and restarting apache I got errors: Apr 30 12:29:46 nsn-do-lamp systemd[1]: Starting The Apache HTTP Server... Apr 30 12:29:46 nsn-do-lamp apachectl[6403]: AH00112: Warning: DocumentRoot [/var/www/html/Hostels2Deployed/current/public] does not exist Apr 30 12:29:46 nsn-do-lamp apachectl[6403]: (2)No such file or directory: AH02291: Cannot access directory '/var/www/html/Hostels2Deployed/current/storage/logs/' for error log of vhost defined at /etc/apache2/sites Apr 30 12:29:46 nsn-do-lamp apachectl[6403]: AH00014: Configuration check failed Apr 30 12:29:46 nsn-do-lamp apachectl[6403]: Action 'start' failed. Apr 30 12:29:46 nsn-do-lamp apachectl[6403]: The Apache error log may have more information. Apr 30 12:29:46 nsn-do-lamp systemd[1]: apache2.service: Control process exited, code=exited status=1 Apr 30 12:29:46 nsn-do-lamp systemd[1]: apache2.service: Failed with result 'exit-code'. Apr 30 12:29:46 nsn-do-lamp systemd[1]: Failed to start The Apache HTTP Server. In my /etc/apache2/sites-available/hostels2.com.conf : <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/Hostels2Deployed/current/public ServerName myurl ServerAlias myurl <Directory /var/www/html/Hostels2Deployed/current/public> AllowOverride All Order Deny,Allow Allow from all Require all granted </Directory> Options FollowSymLinks DirectoryIndex index.php ErrorLog /var/www/html/Hostels2Deployed/current/storage/logs/error.log CustomLog /var/www/html/Hostels2Deployed/current/storage/logs/access.log combined </VirtualHost> The output of my envoy command has. 7.4]: Step # 5 : Symlink set [lardeployer@138.68.107.4]: Step # 50 : /var/www/html/Hostels2Deployed/release/20190430151627 [lardeployer@138.68.107.4]: Step # 5 : Symlink has been set current_dir : /var/www/html/Hostels2Deployed/current But on my server I see wrong link, but I do not see why: cd /var/www/html/Hostels2Deployed/current https://imgur.com/a/Sw22oWh ? Thanks!
  20. Could you please to clarify which one? and why?
  21. Hello, Looking at the article https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04 I installed nginx under new ubuntu 18 installation under AWS and I want to make multiple domain names on 1 server. Fot this For this in AWS hosted zone in Route 53 console I created “sn.votes.demo.org” domain and I see https://prnt.sc/n1166s with domain names name servers at right. I suppose I have to use this domain name in my domain options. My /etc/nginx/sites-available/votes.com : upstream votes-backend { # Lets you define a group of servers server unix:/var/run/php7.2-fpm.sock; } server { listen 80; listen [::]:80; root /var/www/votes.com; index index.php; server_name nsn.votes.demo.org www.nsn.votes.demo.org; // domein created above # We keep this block, because it doesn't make sense to pass # everything to PHP. location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /index.php index.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # this defines a regular expression to separate the SCRIPT_FILENAME and PATH_INFO for later use try_files $uri =404; # OR Set cgi.fix_pathinfo=0 in php.ini (for security) fastcgi_pass votes-backend; # OR unix:/var/run/php7.2-fpm.sock OR 127.0.0.1:9000 fastcgi_index index.php; # appends index.php to a URI ending with a slash include fastcgi_params; } } In /etc/hosts : 127.0.0.1 localhost 127.0.0.2 localhost test.com ec2-13-NN-NN-NN.us-east-2.compute.amazonaws.com nsn.votes.demo.org www.nsn.votes.demo.org # is it correct ? # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Is it valid format ? I checked log files : /var/log/nginx/access.log, /var/log/nginx/error.log, /var/log/php7.2-fpm.log But did not find any errors. Opening www.nsn.votes.demo.orgin browser I see quite different site untergrund.net opened. I have nothing with it. and I see ref to this site by console command wirth sinilar ref error: $ curl www.nsn.votes.demo.org <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://www.untergrund.net">here</a>.</p> <hr> <address>Apache/2.2.15 (CentOS) Server at www.nsn.votes.demo.org Port 80</address> </body></html>
  22. Hello! I look at locale description https://www.tecmint.com/linux-locate-command-practical-examples/ but I did not find if there is a way to specify in which subdirectory to make search ? Thanks!
  23. Hello, If there is a way to import all mailchimp lists from one account to other? If yes, how? Thanks!
  24. Hello, I installed Ubuntu 18 instance under AWS and I found this article with nginx installation(I used this article with installation in Ubuntu 18 under Digital Ocean) https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/ I installed nginx, but I am not sure whioch must be servwer name in nginx configurations : server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name ec2-NN-NN-NN-NN.us-east-2.compute.amazonaws.com; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } location ~ /\.ht { deny all; } where my Publick DNS NN-NN-NN-NN.us-east-2.compute.amazonaws.comI checked nginx syntax and restarted php and nginx $ sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful $ sudo systemctl restart php7.2-fpm $ sudo service nginx restart But running url http://NN-NN-NN-NN.us-east-2.compute.amazonaws.com/I got error: But not nginx greeting page. Is it on AWS different and what did I miss? Thanks!
  25. Could, you please provide an example or a link to such file ?
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.