Syndicate content

Pages with category Web Server

  • Let's start with my rant!

    I like Drupal, in general. But like most PHP code bases, if an "error" (mistake) occurs, nothing is reported.

    I spent hours trying to make one of my menu work (Note that the "menu" module is also called the "links" module.) It just did not want to go. In order to have the nice breadcrumb and other such features, you need to have menus with sub-sub-menus...

  • Got to setup a new server and first got the firewall to where I wanted it to be:

    • Block everything except ssh, Apache, SMTP, a few other things, but really not much more than that.
    • Block everything with IPv6 since we don't use it.

    Then I installed Apache and a couple of websites.

    The first one finally started to work, but it was so very slow to show up. I checked the code, the database, nothing wrong... And the database is lightning fast! ( in comparison to our previous server that is.)

    So I wondered and thought maybe that my Apache firewall is in the way. I turned it ...

  • Noticed today that I had an easy to use facebook URL. It goes like this:

    http://www.facebook.com/alexis.wilke

    So, the Facebook URL followed by my first and last name. Easy, hey?

    Another important thing, in your facebook privacy settings, make sure you select the necessary flags so people can see your page! If you make yourself totally private people won't find you and won't be able to see your page!

    You can also let Google, Yahoo!, MSN Live find your profile!

    Sample of where you need to click to get at the right place in Facebook:

    Settings and Privacy Flags to change to make sure people find you!

    It seems this should work with tools and ...

  • Have you seen animated icons in your tabs? This has been working for a while, with IE and FF and Co.

    All you have to do is create an animated GIF file as your "favicon.ico", and it is better to name it .gif, by the way.

    Because icons can now be pretty much any image format, not just .ico

    And if you need some favicon for your site, check this one out: http://www.favicon.cc

    Many of these are free!

  • Working on a PHP application setup, I stumble upon a problem. Going to the installation page, I got the dreadful error:

    Forbidden

    You don't have permission to access <root-path>/admin/install on this server.

    Looking at the error logs, the only thing reported was:

    client denied by server configuration

    The fact is that Apache does not tell you which setting actually forbids the access. I guess that's because once it gets checked by Apache, it is a blend of all the settings and not a tree being followed.

    Looking a round, and since I already had that error not too long ...

  • How to force a download of any file in a CGI script

    I have been wondering for a while, now I have the answer, so I can share it with you guys.

    Your script has to do the following steps:

    1. Print a header which at least includes:

      1. Content-Type: application/force-download

        (you can also use octet-stream instead of force-download)

  • What a surprise!

    Today, by mistake, I loaded a URL in gVIM instead of my browser. The mind going silly I guess since I had to type :e<space> to load, as usual...

    And to my surprised, it loaded something. Yes! It actually sent the necessary HTTP request and shown the reply in my gVIM window!

    What does this mean? Well! That means I can check out my websites directly in gVIM to see whether they worked as I expected.

    Fantastic! If you ask me... 8-)


    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

    Well... I knew that a firewall could generate a few problems, but this one, I did not expect!

    I just could not FTP anything from my FedoraCore box. I checked the source system firewall, tweaked all sorts of options in the vsftpd.conf file to no aval.

    The error I was getting was this:

    Mon Aug 11 21:31:57 2008 [pid 12033] CONNECT: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12032] [alexis] OK LOGIN: Client "192.168.2.11"
    Mon Aug 11 21:31:57 2008 [pid 12034] [alexis] FAIL DOWNLOAD: Client "192.168.2.11", \
                   "{fullpath to}/ubuntu-8.04.1-server-amd64.iso", 0.00Kbyte/sec
    

    I read that permissions could be wrong. Not the case.

    The firewall has some REJECT and DROP rules. None of which would increase when I was getting the FAIL DOWNLOAD message.

    The fact was that the FedoraCore system firewall was not accepting the connection. That's why it would fail. I thus opened the firewall a bit by adding a rule like this:

    -A INPUT -i eth0 -p tcp -m tcp -s 192.168.2.1 -d 192.168.2.2 --sport 20 -j ACCEPT

    Then it finally worked.

    Note that I am using FTP in non-passive mode. This is important because I do not want to open "random" ports on my server. There is nothing to control that in vsftpd as far as I know. Which sucks. My company's FTP server will automatically change the firewall and open ports as required. Once the FTP connection ends, the port is closed in the firewall. This means the port is open only very temporarily.

    Anyway, all that to say that the message FAIL DOWNLOAD blah means nothing when it could be telling you: could not connect to client. At least that way you'd know right away what's wrong.

  • I found the following in my logs, and thought it was very funny:

    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET / HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET /robots.txt HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:42 -0800] "GET /sitemap.xml HTTP/1.1" 444 5666 "-" "-"
    198.20.87.98 - - [22/Dec/2015:21:43:58 -0800] "quit" 405 5461 "-" "-"

    The person who wrote this robot is not sending me who he is (last ...

  • The other day I was looking for an error in Apache error logs and I noticed an error that was repeated over and over again:

    [info] Initial (No.1) HTTPS request received for child 5 (server secure.m2osw.com:443)
    [info] Initial (No.1) HTTPS request received for child 0 (server secure.m2osw.com:443)
    [info] Initial (No.1) HTTPS request received for child 7 (server secure.m2osw.com:443)
    [info] Initial (No.1) HTTPS request received for child 2 (server secure.m2osw.com:443)
    [info] Initial (No.1) HTTPS request received for child 4 (server secure.m2osw.com:443)

    Notice the pattern? Only one

  • This page is an extension to the InsertNode module available on Drupal.

    I include here a set of files that one may be interested in to enhance the experience with that module.

    If you have another file, let me know, and I might very well include it here (After reviewing the code!)

    Thank you.


    fckeditor-6.x-2.x-plugin.tar.gz

    This file adds two prompts to help enter your [node: ... ] tag. This is based on Zewa's work.


    fckeditor-6.x-1.x-plugin.zip

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • Jaunty
  • compiler
  • core
  • embedded

    Embedded software is a reference to software written to work in a piece of hardware equipment. At first, this was code written directly for a specialized processor such as an FPGA or a DSP. Today, regular computers will be used for applications such as a medical device or a kiosk and it is also called embedded software, even though these just are desktop applications...

  • zlib

    The Z library is a compression library based on an algorithm that compresses at best in some automated and simle way. For better performance, the entire input file is necessary. Note that you can get better results with other methods, this one is excellent for streaming, however.