Posts Tagged ‘few days’
Wednesday, August 14th, 2013
I have a busy Linux server with 24 cores each running on ..4 Ghz. Server is configured to server Apache and MySQL queries and a dozen of high traffic websites are hosted on it. Until just recently server worked fine and since about few days I started getting SMS notifications that server is inaccessible few times a day. To check what's wrong I checked in /var/log/apache2/error.log and there I found following error:
[error] [client 22.214.171.124] PHP Warning: Unknown: Input variables exceeded 1000.
To increase the limit change max_input_vars in php.ini. in Unknown on line 0 referer: http://www.site-domain-name.com/predict/2013-08-10
Before I check Apache error.log, I had a guess that ServerLimit of 256 (spawned servers max) is reached so solution would be raise of ServerLimit to more than MaxClients setting defined in /etc/apache2/apache2.conf. After checking /var/log/apache2/error.log I've realized problem is because the many websites hosted on server exceed maximum defined variables possible to assign by libphp in php.ini. maximum possible defined variables before PHP stops servering is set through max_input_vars variable
As I'm running a Debian Squeeze Linux server, here is what is set as default for max_input_vars in /etc/php5/apache2/php.ini:
; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000
So to fix it in php.ini just raised a bit setting to 1500, i.e.:
max_input_vars = 1500
Though I hit the error on Debian I assume same error occurs on Redhat RPM based (Fedora, CentOS, RHEL Linux) servers.
Hence I assume
max_input_vars = 1500
or higher should fix on those servers too. Looking forward to hear if same error is hit on RedHats.
Tags: apache, CentOS, cores, domain name, few days, guess, input variables, Linux, linux server, max input, notifications, referer, rhel, servers, squeeze, traffic websites
Posted in PHP, Web and CMS | 1 Comment »
Wednesday, January 18th, 2012
I had to make one old Samsung ML-2010P Laser Printer work on Xubuntu Linux . I've had some issues in installing it, I couldn't fine any step by step tutorial online, on how the printer can be made work fine on Linux. Therefore I took the time to experiment and see if I could make it work. Since the printer is old, not much people are interested any more in making the printer operational on Linux, hence I couldn't find too much relevant posts and sites on the net, anyways thanks God after a bit of pondering I finally succeeded to make the Samsung ML-2010P printer to print on Linux.This are the exact steps one has to follow to make this old bunch of hardware to play nice on Linux:
1. use lsusb to list the printer model
root@linux:~# lsusb |grep -i samsung
Bus 001 Device 003: ID 04e8:326c Samsung Electronics Co., Ltd ML-2010P Mono Laser Printer
You see the printer reports as Samsung Electronics Co., Ltd ML-2010P Mono Laser Printer
2. Install cups printing service required packages
root@linux:~# apt-get install cups cups-bsd cups-client cups-common
root@linux:~# apt-get install cups-driver-gutenprint ghostscript-cups
root@linux:~# apt-get install python-cups python-cupshelpers
3. Install foomatic packages
root@linux:~# apt-get install foomatic-db foomatic-db-engine foomatic-db-gutenprint
root@linux:~# apt-get install foomatic-filters python-foomatic
4. Install hpijs hplip printconfand other packages necesssery for proper printer operation
root@linux:~# apt-get install hpijs hplip hplip-data ijsgutenprint
root@linux:~# apt-get install min12xxw openprinting-pdds printconf foo2zjs
P.S. Some of the packages I list might already have been installed as a dependency to another package, as I'm writting this article few days after I've succeeded installing the printer, I don't remember the exact install order.
5. Install splix (SPL Driver for Unix)
Here is a quote taken from Spix's project website:
"SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language) printers.
If you have a such printer, you need to download and use SpliX. Moreover you will find documentation about this proprietary language.
root@linux:~# apt-get install splix
For more information on splix, check on Splix SPL driver for UNIX website http://splix.ap2c.org/
You can check on the projects website the Samsung ML 2010 Printer is marked as Working
Next step is to configure the Printer
6. Go to Cups interface on localhost in browser and Add the Samsung printer.
Use Firefox, SeaMonkey or any browser of choice to configure CUPS:
Type in the browser:
Next a password prompt will appear asking for a user/pass. The user/pass you have to use is the same as the password of the user account you're logged on with.
Click on the Add Printer button and choose to add the Samsung ML-2010.
Then restart the CUP Service (cupsd) to make it load the new settings:
root@linux:~# /etc/init.d/cups restart
Now give the printer a try in printing some page in SeaMonkey, Chrome or Firefox (the quickest way is through pressing CTRL + P )
Following this steps, I've managed to run the printer on Xubuntu Linux, though the same steps if followed should most probably make the Samsnung ML 2010 play nice with other Linux distributions with a little or no adjustments.
I'll be glad to hear if someone succeeded in making the printer work on other distributions, if so please drop me a comment.
That's all folks! Enjoy printing 😉
Tags: Auto, Bus, configure, dependency, Draft, Driver, exact steps, experiment, few days, foo, foomatic, GNU, grep, hplip, Install, Laser, Linux, ML, mono laser printer, operation, package, password, printer model, printer operation, printer work, printing, printing service, python, quot, relevant posts, root, root linux, samsung, samsung electronics, samsung electronics co, samsung electronics co ltd, samsung ml, Service, SPL, time, tutorial, work, Xubuntu
Posted in Linux, System Administration, Web and CMS | 2 Comments »
Tuesday, December 6th, 2011
Even though, I rarely use Windows to connect to remote servers using SSH or Telnet protocols in some cases I’m forced to do that (in cases I’m away from my Linux notebook). I’m doing my best to keep away from logging anywhere via SSH using Windows as when using Windows you never know what kind of spyware, malware or Viruses is already on the system, not to mention Microsoft are sniffing a lot if not everything which is typed on the keyboard… Anyways, usually I use Putty as a quick way to access a remote SSH, however pitily PuTTY lacks an embedded functionality for Tabs and each new connection to a server I had to run a new instance of PuTTY. This is okay if you need to access a single server but in some cases where access to multple servers is necessery lacking the tab functionality and starting 10 times putty is really irritating and one forgets what kind of connection is present on which PuTTY instance.
Earlier on, I’ve blogged about the existence of PuTTY Connection Manager PuTTY add-on program which is a PuTTY wrapper which enables PuTTY to be used with Connection Tabs feature, however installing two programs is quite inconvenient, especially if you have to do this every few days (in case if travelling a lot).
Luckily there is another terminal emulator free program for Windows called PodeRoSA which natively supports a tabbed Secure Shell connections.
If you want to get some experience with it check out Poderosa’s website , here is also a screenshot of the program running few ssh encrypted connections in tabs on a Windows host.
Another good reason that one might consider using Poderosa instead of PuTTY is the Apache License under which Poderosa is developed. Currently the Apache License is compatible with GPL free software license which makes the program fully free software. The PuTTY license is under BSD and MIT and some other weird custom license not 100% compatible with GPL and hence PuTTY can be considered less free software in terms of freedom.
Tags: apache license, blogged, BSD, connection, custom, everything, existence, feature, few days, free software license, freedom, functionality, good reason, host, instance, keyboard, Linux, linux notebook, Malware, Microsoft, multple, necessery, Putty, reason, screenshot, secure shell, servers, Shell, software, tab, tabs, telnet protocols, terminal, terminal emulator, Viruses, wrapper
Posted in System Administration, Windows | 2 Comments »
Thursday, August 11th, 2011
I’ve completed a qmail installation few days ago on a fresh installed Debian Squeeze 64 bit server. All is configured and works fine, except qmailadmin and vqadmin.
As the mail server was missing any kind of web mail administration panel, I needed to make at least one of the two above to make with qmail.
I decided to concentrate on qmailadmin and took the time to make it work. I used the following command lines and got the compile failure during make compilation:
debian:/usr/local/src/qmailadmin-1.2.15# ./configure --enable-cgibindir=/usr/lib/cgi-bin --enable-htmldir=/var/www/qmailadmin/ --enable-modify-quota
The source make failed with the following error:
In file included from template.c:45:
qmailadmin.h:37:1: warning: "MAX_FILE_NAME" redefined
In file included from template.c:28:
/home/vpopmail/include/vpopmail.h:146:1: warning: this is the location of the previous definition
template.c: In function "send_template_now":
template.c:505: error: "VERSION" undeclared (first use in this function)
template.c:505: error: (Each undeclared identifier is reported only once
template.c:505: error: for each function it appears in.)
make: *** [template.o] Error 1
make: Leaving directory `/usr/local/src/qmailadmin-1.2.15'
make: *** [all] Error 2
To workaround these compile issues, I’ve had to modify the C source file belonging to qmailadmin ( template.c ), e.g.:
debian:/usr/local/src/qmailadmin-1.2.15# vim template.c
In the file I had to add besides the line:
#define VERSION ""
Aterwards qmailadmin’s compile and install via make && make install-strip succeeded and now works perfectly fine 😉
Tags: Administration, administration panel, amp, bit, c source, code, compilation, configure, configured, failure, few days, file, function, identifier, installation, lib, Linux, location, mail administration, mail server, make, name, oncetemplate, panel, qmail installation, qmailadmin, quot, Quota, source file, squeeze, template, template c, time, undeclared identifier, util, version, vim, vqadmin
Posted in Linux, Qmail, System Administration, Web and CMS | 13 Comments »
Friday, April 8th, 2011
One of the SSL secured websites (https://) which I have recently accessed couldn’t be opened with an error message showing up:
Secure Connection Failed
An error occurred during a connection to www.domain.com.
Peer’s Certificate has been revoked.
(Error code: sec_error_revoked_certificate)
* The page you are trying to view can not be shown because the authenticity of the received data could not be verified.
* Please contact the web site owners to inform them of this problem. Alternatively, use the command found in the help menu to report this broken site.
That error catched my attention so I digged further in what the message means. Here is what I found as an explanation to what is certificate revocation online
What is a SSL Certificate revocation
Revocation of a certificate means that the Certificate Authority (CA) that issuer of the certificate for a website have decided that the certificate is no longer valid, even if it has not expired.
The information about revocation can be distributed in two ways: Certificate Revocation Lists (CRLs), or by using the Online Certificate Status Protocol (OCSP).
CRLs are (usually) large files that contain a list with information about all the currentely active (unexpired) certificates that are no longer valid. This file has to be downloaded from the CA by the client at regular intervals (usually at least a week apart), and may be quite large.
OCSP, on the other hand, means that the client asks the CA “Is this particular certificate still valid?”, and the server responds “Yes” or “No”. This method can usually be fairly well up to date, meaning the information is at most a few days old, as opposed to at least a week for CRLs.
All the major browsers support OCSP, but some (like Opera) does not currently support CRLs.
By this time most of the modern browsers (Firefox, Chrome, Opera and Internet explorer does support revocation lists and all of the aforementioned hsa enabled at least OCSP by default.
Why SSL revocation error might occur:
A CA can revoke a certificate due to a number of reasons:
– A new certificate has been issued to the website, meaning the old one is not going to be used anymore.
– The website with the certificate is being used for purposes that are not accepted by the CA.
– The certificate was issued based on incorrect information.
– The owner is no longer able to use the private key associated with the certificate, for example the password is lost, the key storage was destroyed somehow, etc.
– The private key has been compromised or stolen, which means traffic to the site is no longer secure.
– The certificate and key have been stolen and is actually being used for fraud while posing as a legitimate website …
Now after all above being said the error:
Secure Connection Failed Peer's, Certificate has been revoked., (Error code: sec_error_revoked_certificate)
is a sure indicator that the website which had the certificate problem as a one you could not trust to make money transactions or do any operation that has a direct relation to your personal private date.
However as there are still websites which use an SSL encryption and are entertainment websites or just a news websites, sometimes getting around the ssl revocation issue to check this website is a necessity.
Therefore to enable your Firefox 3.5 / Iceweasel browser with a website which has ssl certificate revocation issue you need to do the following:
Edit -> Preferences -> Advanced -> Encryption -> Validation
After you see the Certificate Validation screen remove the tick set on:
Use the Online Certificate Status Protocol (OCSP) to confirm the current validity of certificates
Now refresh the website and you will skip the certificate revocation issue error and the webpage will open up.
Note that even though this will work, it’s not recommended to use this work around!
Tags: authenticity, browsers support, certificate authority, certificate revocation, certificate status, Chrome, client, code, com, crls, default, encryption, error message, explanation, explorer, few days, file, Firefox, help, help menu, information, internet explorer, intervals, Lists, menu, modern browsers, number, ocsp, opera, page, Protocol, secure connection, ssl certificate, support, time, two ways, unexpired certificates
Posted in Various, Web and CMS | No Comments »
Wednesday, August 25th, 2010
I use VIM as an editor of choice for many years already.
Yet it's until recently I use it for a PHP ZF (Zend Framework) web development.
Few days ago I've blogged How to configure vimrc for a php syntax highlightning (A Nicely pre-configured vimrc to imrpove the daily text editing experience
This enhancements significantly improves the overall PHP code editing with VIM. However I felt something is yet missing because I didn't have the power and functunality of a complete IDE like for instance The Eclipse IDE
I was pretty sure that VIM has to have a way to be used in a similar fashion to a fully functional IDE and looked around the net to find for any VIM plugins that will add vim an IDE like coding interface.
I then come accross a vim plugin called VIM Prokject : Organize/Navigate projects of files (like IDE/buffer explorer)
The latest VIM Project as of time of writting is 1.4.1 and I've mirrored it here
The installation of the VIM Project VIM extension is pretty straight forward to install it and start using it on your PC issue commands:
1. Install the project VIM add-on
debian:~$ wget https://www.pc-freak.net/files/project-1.4.1.tar.gz
debian:~$ mv project-1.4.1.tar.gz ~/.vim/
debian:~$ cd ~/.vim/
debian:~$ tar -zxvvf project-1.4.1.tar.gz
2. Load the plugin
Launch your vim editor and type : Project(without the space between : and P)
You will further see a screen like:
3. You will have to press C within the Project window to load a new project
Then you will have to type a directory to use to load a project sources files from:
You will be prompted with to type a project name like in the screenshot below:
4. Next you will have to type a CD (Current Dir) parameter
To see more about the CD parameter consult vim project documentation by typing in main vim pane :help project
The appearing screen will be something like:
5. Thereafter you will have to type a file filter
File filter is necessary and will instruct the vim project plugin to load all files with the specified extension within vim project pane window
You will experience a screen like:
vim project plugin file filter screen
Following will be a short interval in which all specified files by the filter type will get loaded in VIM project pane and your Zend Framework, PHP or any other source files will be listed in a directory tree structure like in the picture shown below:
6. Saving loaded project hierarchy state
In order to save a state of a loaded project within the VIM project window pane you will have to type in vim, let's say:
Later on to load back the saved project state you will have to type in vim :r .projects/someproject
You will now have almost fully functional development IDE on top of your simple vim text editor.
You can navigate within the Project files loaded with the Project extension pane easily and select a file you would like to open up, whenever a source file is opened and you work on it to switch in between the Project file listing pane and the opened source code file you will have to type twice CTRL+w or in vim language C-w
To even further sophisticate your web development in PHP with vim you can add within your ~/.vimrc file the following two lines:
" run file with PHP CLI (CTRL-M)
:autocmd FileType php noremap <C-M> :w!<CR>:!/usr/bin/php %<CR>
" PHP parser check (CTRL-L)
:autocmd FileType php noremap <C-L> :!/usr/bin/php -l %>CR>
In the above vim configuration directovies the " character is a comment line and the autocmd is actually vim declarations.
The first :autocmd … declaration will instruct vim to execute your current opened php source file with the php cli interpreter whenever a key press of CTRL+M (C-m) occurs.
The second :autocmd … will add to your vim a shortcut, so whenever a CTRL+L (C-l) key combination is pressed VIM editor will check your current edited source file for syntax errors.
Therefore this will enable you to very easily periodically check if your file syntax is correct.
Well this things were really helpful to me, so I hope they will be profitable for you as well.
Tags: buffer, debian cd, Eclipse, eclipse ide, editor, enhancements, explorer, few days, file, FileType, freak, functunality, help project, IDE, Install, installation, instance, mv, Nicely, php code, php syntax, plugin, power, project 1, project documentation, project sources, project vi, screenshot, something, tar gz, time, type, vim editor, VIM Project (VI Improvied IDE Editor extension to facilitate web development with vi enhanced editor, wget, writting, Zend, zend framework, zf, zxvvf
Posted in Linux, Linux and FreeBSD Desktop, Programming, System Administration, Various | 5 Comments »
Tuesday, August 24th, 2010
Today when I was reviewing my daily visited websites I come across an interesting news.
This kind of meeting is quite a news because it is the first in line where Free software users and developmers fromall around the balkanies will meet to discuss,test,share and continue the free software code and ideals.
The first Free Software conference in the Balkanies is about to be hosted in Vlora University Albania .
The conference Free Software in Balkans (FreeSB2010) is an annual meeting of the free software users, developpers and supporters in the Balkan countries. It will travel from country to country, year to year to different locations. The Conference will gather professionals, academics and enthusiasts who share the vision that software should be free and open for the community to develop and customize to its needs, and that knowledge is a communal property and free and open to everyone.
This kind of event will build up the social network between free software fans and developers and will further help in the general spread of free software on the balkanies.
This kind of meeting are already for a long time a tradition in many states in America, so having it in the balkanies is quite a development.
You can read a bit more about the exact focus of Free Software in Balkans 2010 conference here
Pitily right now there is no published scheduled list of presentations which are about to be given in the conference, but I guess the conference schedule would be out in a few days time.
I’m not yet sure if I’ll have the time and opportunity to attend the conference, however I do hope that somebody of my balkan readers will got interested into the “fabulous” Free Software event and will support the event’s initiative by visiting it 🙂
Tags: event, few days, Free Software in Balkans 2010 (A free software conference on the Balkanies is approaching), kind, long time, meeting, network, news, read, share, support
Posted in Linux and FreeBSD Desktop, Various | No Comments »
Monday, September 1st, 2008
I woke up, washed my teeth, did my regular morning excersises then Ina came my room and we went out shopping. In Sunday all shopsare closed in the netherlands thus the near food store we usually shop from Alberheim is closed too. That’s why we moved to the center.We first ate in a place called “Subway”, the vegetarenian sort of hamburger costed 2 EU, then we walked through the shops in the center andresearched where is what and how the prices vary in the different stores. Ina bought sunglasses, a blouse and ear-rings. We were also happyto find 24 hours opened shop right in the center. It seems that usually in Sunday the only place where the shops are opened is the center.We took some beer and went and stood along a little lake enjoying the swan and the ducks and crows which moved and flewer aroud. Then we catched the way for home looking around for unlocked bikes which we may take (it’s common here in the Netherlands to just take unlocked bikes and make them yours even I heard a lot of people leave the old unusused bikes on the street unlocked so you can just take it and use it.On our way home Ina saw left old Zanussi fridge next to a trash bin with a note on it saying something in Dutch containing the Dutch word “wekrt” which literally translated means works. So we hoped the fridge is a working one. We called Koko and Sali to come end help us with the fridge. Then Koko and Sali came and helped us move the fridge to the Honigkamp 2 which is the building of the dormitory I live in. LaterI collected the dry laundry and went to take a shower, then I moved to the 5th floor’s kitchen (My room is in the 1st floor). Wherewe gather with Ina for breakfasts, lunch or dinner. It’s a common thing the last few days that all the Bulgarians that we live in Honigkamp just gather together with the laptops and listen to a different kinds of music and talking about stuff. Although is’s so nice in the Netherlands I’m homesick a little. I also feel like going in no concrete direction. It’s a common thing temptations come that tempt me to smoke again. Also a really terrible temptation I face is a one I faced a dozen of times. You know there are some girls that really are my type of girls unfortunately every time I look at that girls I start falling in love. This is just fine the bad thing is that I’m usually too “different”, unconventional etc. to fit nice with the girls I like. Day by day I search for truths and I’m not sure I’m able to reach them .. the poor man I’m ehh…END—–
Tags: Alberheim, aroud, Beer, bikes, blouse, bulgarians, center, crows, different kinds of music, dormitory, ducks, dutch word, ear rings, few days, flewer, food store, hamburger, help, kinds of music, Koko, laptops, laundry, lunch, netherlands, place, quot, right, Sali, shop, something, store, street, subway, sunglasses, swan, temptation, time, trash bin, type, wekrt
Posted in Everyday Life | No Comments »
Wednesday, March 19th, 2008
Today Ivailo a relative called me and asked me to go to their second hand furniture shop and help them translating things to a English customers, Just after that we had Marketing Planning with a Dutch guy. After that I went to the VoIP to speak with the leaseweb’s salesdepartment because a friend of mine is thinking of colocation of few servers. Yesterday and today were a quiet days Thanks to The Lord. I have to create two projects one is about Statistical Informational Systems (SPSS) in particular the other one is for Marketing Planning project which is on the topic of Marketing Plan about the Selling of a Marketing TextBook. First I should mention yesterday I prayed to the Lord to help to a friend of mine which desperately needed money to bless him with money and Hooray the Lord was fast. Today a guys who promised from an AutoWashing company called him and gave him the job on and he is now on a trial period. Praise the Lord and His Mighty Deeds! 🙂 Also now in the evening an Evolink techsupport called me to halt pozvanete’s server, because he had to mount the one 4 GB bank to the server. All went fine 🙂 I should also note that God is giving me his abundant grace eventhough I don’t deserve it.END—–
Tags: colocation, days thanks, dutch guy, english customers, few days, furniture shop, informational systems, leaseweb, marketing plan, marketing planning, planning project, quiet days, second hand furniture, techsupport, textbook, thanks to the lord, trial period, voip, yesterday and today
Posted in Everyday Life | No Comments »
Thursday, September 6th, 2007
Glory be to the Father, The Son and The Holy Spirit! The Lord is very merciful. I’ve thinked a lot about my life.And I’ve realized that I’ve done many mistakes and that I don’t strive to hear his voice. Nor to follow his path formy life. So recently I’m praying for the Lord to guide me and teach me how to hear and understand his voice!As he said in the Holy Bible: “My sheeps hear my voice”. He have to teach me howto hear his voice.Also I’ve prayed few days ago about a sallary increase and Hallelujah! Today When I went to Varna I saw howthe lord heard my prayer I have a sallary increase. But I was increadibly happy because the Lord is hearing my prayers.Currently I think that God is healing my physical sickness. For which Glory be to Him The One Ever Living Lord and Our Lord Jesus Christ. Also I was very happy that a friend (Stoian) with which we discussed the topics of Our Faith the last Yeastern has received Christ as a Saviour. And is also going to the Orthodox Church. He has something I have lost a lot of days before the Fire in me the Lord has fired when I believed. Thanks Lord ! for every mercy and blessing you’re doing towards me.Mostly the last days I start realizing that we are so sinful and our minds are so deluded that we try to explain The Existence of God ( Something I tried to do for a very long time ), without actually seeking God but using our human knowledge and understanding. Let God not give me to do this anymore. Blessed, Blessed, Blessed are you Lord Shabbaoth Glory to your Heavenly Throne! I even smiled today looking at the sky :] God is merciful!!! END—–
Tags: bible, blessing, days before the fire, end, existence of god, Father, few days, Fire, formy, glory be to the father, Hallelujah, heavenly throne, holy bible, holy spirit, human knowledge, knowledge, last days, life, looking at the sky, Lord, lord jesus christ, orthodox church, Path, physical sickness, prayer, prayers, saviour, seeking god, sheeps, sky, sky god, something, Spirit, Throne, time, today, Understanding, voice
Posted in Everyday Life | No Comments »