Tag Archives: apache
Hi,
when you have several virtualhosts with SSL enabled and also, the certificate has been generated with a pass phrase, you need to use SSLPassPhraseDialog to print to apache the password each time it starts, the problem comes as this directive can only be declared 1 time in the general configuration, so to use several password for each SSL generated, you can use this code:
#!/bin/sh
PASS1=”password1″
PASS2=”password2″case $1 in
www.url1.com:443) echo $PASS1;;
www.url2.com:443) echo $PASS2;;
esacexit 0
just replace the passwords and url with the one configured on your webserver, set them execution permission and add this to your apache conf:
SSLPassPhraseDialog exec:/path/to/bash/file
Regards,
Shadow.
Related Post
Hi,
i’m migratin a server, and i’m installing everything from source, so, the old server have subversion too, and after installing apache, mysql and php, i need it and configure it to use DAV for user authentication. for my surprise the apache source comes with the dav module do not include the mod_dav_svn and mod_authz_svn, and i found almost no info of how to make it work.
so to everyone who need it, just add the –with-apr flag when you configure the subversion source, like this:
./configure –with-apr=/usr/local/apache2/bin/apr-1-config
of course, your compiled version of apache needs to have apr, adding the flag “–with-included-apr” will do the trick
then use make and make install, automatically will place the modules on the apache module directory and you will be able to load it from there.
when you restart apache loading this modules, found any missing library or shared object error, check that the file is on /usr/local/lib and /usr/lib depending your apache configuration. it should be in at least 1 of those locations, to fix it, i just created a symbolic link of the file in the missing location and that fixed the problem.
i hope this will be useful for you
Regards,
Shadow.
Related Post
Hi,
i made other post’s about big blue button in the past, explaining you that was a great peace of open source software focused on delivering a e-learning platform. some days ago i was needed to install it on my job server as it will be integrated to a app we are working on.
so i followed the instructions here and i found some problem in the process that i will detail here, so you can save some time in the task:
bbb-conf don’t start the process:
i need to say that most of the process of installation have gone smoothly but the most biggest problem was that the script that should start everything never finished and get stuck at the start of the asterisk. the solution is to kill all the process that could maybe be working (tomcat,red5,openffice-headless,nginx,asterisk,activemq) and then start them manually in this order:
asterisk activemq bbb-openoffice-headless red5 tomcat6 nginx
bbb-openoffice-headless say that can’t open display X or don’t start
if this is happening to you, try with the commands described here. if that didn’t work, you need to install the package openoffice-headless, and then run:
bbb-openoffice-headless stop bbb-openoffice-headless start
BigBlueButton with apache and not nginx
if you have the same requirement like me, to run big blue button over apache and not nginx, you can follow this guide that is proved that works
if you find other problems, just follow the logic and check the logs of each one of the app’s involved on this (usually are on /var/log) when you found a specific problem there and don’t know how to solve it, you can post on the bbb-setup group for help. also, you can download the VM image their provide ready to use to compare that and your installation and find where is the problem.
i hope you find this useful
Regards,
Shadow.
Related Post
Hi,
as you see from previous post, i’m working installing some servers, and even i have some experience doing server administration, i’m learning a lot in this few days.
i’m using linux every day for the past 4 years, and i’m really happy. i need to say that i always used distribution linked in some way with debian, as ubuntu, kubuntu, linux mint etc.
in terms of servers, i always used centos, fedora or red hat, why’s that? why they was already installed, was the only option available or if i can choose, why other more experienced devs told me that was the standard in the web industry. i always made some server administration but now that i’m really touching deep on it i’d say that i will never use a centos or red hat derivated OS again, and i will fundament this with facts and experiences from the few days.
the most biggest flaws i see on distribution as centos, is the package system, yum. i think is far to be enough capable as apt is for debian. why i say that? the search of the package is not complete as apt is, the erase of packages could bring serious problem if you don’t pay a lot of attention, i even erased yum itself erasing secondary packages O_O.
the other big problem are the repositories, and maybe this problem is only specifically for centos, but really lack of a lot essential packages, where you need to depend from third party repositories or compiling yourself. didn’t even enabling the centos plus and extra repositories you are able to get something up to date (and i’m talking about stable version released a long time ago)
if some server admin read this is surely thinking “this is a noob” and maybe is right, but measure the utility of something from the things i can get from it and in the time it takes me to do it and i assure you that all the stuff i made on centos i could made it in the half of the time for the availability of compiled packages in the repositories and the utility of apt. i know that the beautiful of linux is if you don’t find something for your OS, you can compile it with the source, but seriously, is not nice when you are working, waste hours debugging for dependencies and stuff when can be solved with a simple apt-get.
so, from me, i say bye bye centos, for now i will only use debian whenever i can, and i regret the decision to use you in this new servers.
Regards,
Shadow.
Related Post
Hi,
some weeks ago someone told me that ngnix was better than apache as can handle more users and was more stable with big traffic. as i usually don’t discard the opinions and recommendations i receive, i started researching about this as i didn’t know anything about ngnix. for that, i wanted to write this post so can save you some time looking at the internet
. for my research i used sources as serverFault.com and other blog post where it benchmark different php scripts (custom and wordpress blogs).
Apache and ngnix, what is the diference?
the main difference between ngnix and apache is that the way both web servers handle the user requests. apache have a multi thread architecture and ngnix have a unique thread architecture to process the user request. this is the main difference between both, the other important difference are the config files and the rewrite rules, where the format is difference from apache and a new user need to learn this new way to format the htaccess and the config files. other than this, both can manage virtual hosts, aliases, etc..
Define the goal or purpose to choose.
i always say that there is no a complete tool or a ultimate language and technologies, each decision of what tool to use depends of the requirements of the project. in this case is the same, you need to evaluate your project to decide what to use.
after my research i found that ngnix have a greater performance, in terms of memory needed, when the ngnix is serving static content. static content is called all what are images, videos, flash, files etc.. and optimized and cached dynamic pages, like a wordpress blog with super cache plugin.
in term of speed both are almost equal, having a difference in favor to ngnix at serving static files.
Conclusion
when i started to research this, i have in mind 2 projects, one of them was a non-optimized sites and the other a highly optimized site that doesn’t have a lot of cached pages but have a lot of static content.
then my conclusion was that you need to choose depending of your project requirement, to use apache or ngnix or both (yes, both can be used at the same time).
if you have a crappy php site, don’t bother you, ngnix don’t going to give you any improvement, better, invest your time to improve the code.
if you have a highly optimized site and cached most of their pages and you don’t bother to rewrite any htaccess or config file in this new format, ngnix will give you a improvement in your server.
if you have a mixed site, highly optimized, but not too cached her pages, you can have both running, ngnix serving static content and apache serving the dynamic content, this will improve in some way your site with a better load balancing proportional of the percentage of static files are serving.
i hope this help you to decide in this matter, i’ll post later a tutorial of how to install ngnix and apache togheter
Regards,
Shadow
Related Post
Hi,
recently i needed to use subversion, i never used a control version before, so i proceed to look info about it.
the environment where need to be installed was a vps with centos 5 and WHM/Cpanel.
like cpanel dont install apache using yum the “easy way” can’t be possible.
searching in internet i found this useful guide: http://www.edugeek.net/forums/nix/26101-subversion-whm-cpanel-11-a.html all worked perfectly
i hope it helps
Regards,
Shadow.





