Localhost is too Slow on ampps 3.8












0















I am using Ampps 3.8 for localserver and it was working fine at my office. It was nice and i could easily change php versions for test purposes.



But when i tried to access localhost or change php versions from my home network, it takes lots of time and many of my assets like css, images etc are not loading. I am doing a project in Codeigniter and php 7.



details of my configuration are as follows:



$config['base_url'] = 'http://192.168.43.122/projects/neewer';
$config['uri_protocol'] = 'REQUEST_URI';

//db config
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'neewer',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);


Can someone tell me what i am doing wrong?










share|improve this question





























    0















    I am using Ampps 3.8 for localserver and it was working fine at my office. It was nice and i could easily change php versions for test purposes.



    But when i tried to access localhost or change php versions from my home network, it takes lots of time and many of my assets like css, images etc are not loading. I am doing a project in Codeigniter and php 7.



    details of my configuration are as follows:



    $config['base_url'] = 'http://192.168.43.122/projects/neewer';
    $config['uri_protocol'] = 'REQUEST_URI';

    //db config
    $db['default'] = array(
    'dsn' => '',
    'hostname' => 'localhost',
    'username' => 'root',
    'password' => '',
    'database' => 'neewer',
    'dbdriver' => 'mysqli',
    'dbprefix' => '',
    'pconnect' => FALSE,
    'db_debug' => (ENVIRONMENT !== 'production'),
    'cache_on' => FALSE,
    'cachedir' => '',
    'char_set' => 'utf8',
    'dbcollat' => 'utf8_general_ci',
    'swap_pre' => '',
    'encrypt' => FALSE,
    'compress' => FALSE,
    'stricton' => FALSE,
    'failover' => array(),
    'save_queries' => TRUE
    );


    Can someone tell me what i am doing wrong?










    share|improve this question



























      0












      0








      0








      I am using Ampps 3.8 for localserver and it was working fine at my office. It was nice and i could easily change php versions for test purposes.



      But when i tried to access localhost or change php versions from my home network, it takes lots of time and many of my assets like css, images etc are not loading. I am doing a project in Codeigniter and php 7.



      details of my configuration are as follows:



      $config['base_url'] = 'http://192.168.43.122/projects/neewer';
      $config['uri_protocol'] = 'REQUEST_URI';

      //db config
      $db['default'] = array(
      'dsn' => '',
      'hostname' => 'localhost',
      'username' => 'root',
      'password' => '',
      'database' => 'neewer',
      'dbdriver' => 'mysqli',
      'dbprefix' => '',
      'pconnect' => FALSE,
      'db_debug' => (ENVIRONMENT !== 'production'),
      'cache_on' => FALSE,
      'cachedir' => '',
      'char_set' => 'utf8',
      'dbcollat' => 'utf8_general_ci',
      'swap_pre' => '',
      'encrypt' => FALSE,
      'compress' => FALSE,
      'stricton' => FALSE,
      'failover' => array(),
      'save_queries' => TRUE
      );


      Can someone tell me what i am doing wrong?










      share|improve this question
















      I am using Ampps 3.8 for localserver and it was working fine at my office. It was nice and i could easily change php versions for test purposes.



      But when i tried to access localhost or change php versions from my home network, it takes lots of time and many of my assets like css, images etc are not loading. I am doing a project in Codeigniter and php 7.



      details of my configuration are as follows:



      $config['base_url'] = 'http://192.168.43.122/projects/neewer';
      $config['uri_protocol'] = 'REQUEST_URI';

      //db config
      $db['default'] = array(
      'dsn' => '',
      'hostname' => 'localhost',
      'username' => 'root',
      'password' => '',
      'database' => 'neewer',
      'dbdriver' => 'mysqli',
      'dbprefix' => '',
      'pconnect' => FALSE,
      'db_debug' => (ENVIRONMENT !== 'production'),
      'cache_on' => FALSE,
      'cachedir' => '',
      'char_set' => 'utf8',
      'dbcollat' => 'utf8_general_ci',
      'swap_pre' => '',
      'encrypt' => FALSE,
      'compress' => FALSE,
      'stricton' => FALSE,
      'failover' => array(),
      'save_queries' => TRUE
      );


      Can someone tell me what i am doing wrong?







      php mysql performance codeigniter-3 ampps






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 17 '18 at 22:11









      Rick James

      68.4k559100




      68.4k559100










      asked Nov 14 '18 at 13:05









      compulsive codercompulsive coder

      447




      447
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Your Configs seems to be correct. Why are you using '192.168.43.122' instead of localhost? most porobably that will be the issue as u said ur system is working fine at your office and not at your home.



          maybe that ip address will be of your office network. Try changing it to your home networks ip address or just to localhost like below code and try again.



          $config['base_url'] = 'http://192.168.43.122/projects/neewer';


          to



          $config['base_url'] = 'http://localhost/projects/neewer';


          Hopefully this will do the trick if the issue is differences in IP Addresses. let us know if that doesnt help and if you need any help further.






          share|improve this answer
























          • Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

            – compulsive coder
            Nov 14 '18 at 13:18











          • that worked man. your minutes saved my hours!

            – compulsive coder
            Nov 14 '18 at 13:21











          • happy to know it helped :)

            – Rishad
            Nov 14 '18 at 13:26











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300935%2flocalhost-is-too-slow-on-ampps-3-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Your Configs seems to be correct. Why are you using '192.168.43.122' instead of localhost? most porobably that will be the issue as u said ur system is working fine at your office and not at your home.



          maybe that ip address will be of your office network. Try changing it to your home networks ip address or just to localhost like below code and try again.



          $config['base_url'] = 'http://192.168.43.122/projects/neewer';


          to



          $config['base_url'] = 'http://localhost/projects/neewer';


          Hopefully this will do the trick if the issue is differences in IP Addresses. let us know if that doesnt help and if you need any help further.






          share|improve this answer
























          • Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

            – compulsive coder
            Nov 14 '18 at 13:18











          • that worked man. your minutes saved my hours!

            – compulsive coder
            Nov 14 '18 at 13:21











          • happy to know it helped :)

            – Rishad
            Nov 14 '18 at 13:26
















          2














          Your Configs seems to be correct. Why are you using '192.168.43.122' instead of localhost? most porobably that will be the issue as u said ur system is working fine at your office and not at your home.



          maybe that ip address will be of your office network. Try changing it to your home networks ip address or just to localhost like below code and try again.



          $config['base_url'] = 'http://192.168.43.122/projects/neewer';


          to



          $config['base_url'] = 'http://localhost/projects/neewer';


          Hopefully this will do the trick if the issue is differences in IP Addresses. let us know if that doesnt help and if you need any help further.






          share|improve this answer
























          • Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

            – compulsive coder
            Nov 14 '18 at 13:18











          • that worked man. your minutes saved my hours!

            – compulsive coder
            Nov 14 '18 at 13:21











          • happy to know it helped :)

            – Rishad
            Nov 14 '18 at 13:26














          2












          2








          2







          Your Configs seems to be correct. Why are you using '192.168.43.122' instead of localhost? most porobably that will be the issue as u said ur system is working fine at your office and not at your home.



          maybe that ip address will be of your office network. Try changing it to your home networks ip address or just to localhost like below code and try again.



          $config['base_url'] = 'http://192.168.43.122/projects/neewer';


          to



          $config['base_url'] = 'http://localhost/projects/neewer';


          Hopefully this will do the trick if the issue is differences in IP Addresses. let us know if that doesnt help and if you need any help further.






          share|improve this answer













          Your Configs seems to be correct. Why are you using '192.168.43.122' instead of localhost? most porobably that will be the issue as u said ur system is working fine at your office and not at your home.



          maybe that ip address will be of your office network. Try changing it to your home networks ip address or just to localhost like below code and try again.



          $config['base_url'] = 'http://192.168.43.122/projects/neewer';


          to



          $config['base_url'] = 'http://localhost/projects/neewer';


          Hopefully this will do the trick if the issue is differences in IP Addresses. let us know if that doesnt help and if you need any help further.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 13:15









          RishadRishad

          175110




          175110













          • Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

            – compulsive coder
            Nov 14 '18 at 13:18











          • that worked man. your minutes saved my hours!

            – compulsive coder
            Nov 14 '18 at 13:21











          • happy to know it helped :)

            – Rishad
            Nov 14 '18 at 13:26



















          • Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

            – compulsive coder
            Nov 14 '18 at 13:18











          • that worked man. your minutes saved my hours!

            – compulsive coder
            Nov 14 '18 at 13:21











          • happy to know it helped :)

            – Rishad
            Nov 14 '18 at 13:26

















          Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

          – compulsive coder
          Nov 14 '18 at 13:18





          Thnks for your response @Rishad. Let me check that and will let you know at the earliest.

          – compulsive coder
          Nov 14 '18 at 13:18













          that worked man. your minutes saved my hours!

          – compulsive coder
          Nov 14 '18 at 13:21





          that worked man. your minutes saved my hours!

          – compulsive coder
          Nov 14 '18 at 13:21













          happy to know it helped :)

          – Rishad
          Nov 14 '18 at 13:26





          happy to know it helped :)

          – Rishad
          Nov 14 '18 at 13:26




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300935%2flocalhost-is-too-slow-on-ampps-3-8%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine