|
||||||||||
|
|
How to install ASP.NET with Mysql in Linux server (cPanel)July 2, 2009 on 8:57 am | In ASP.NET, Apache, Cpanel | 2 CommentsYou should enable mod_mono in easyapache to enable ASP.NET. However, for using Mysql database with ASP.NET, you need to download and install a connector from Mysql site. Installation
Most of you forget the next step and the Mysql connector won’t work.
Restart Apache
Now you should be able to connect to mysql using .aspx scripts Here is a custom script to check the working.
Lets go to the script First, create a file called test.aspx in your web directory
Finally, you need a web.config file, in the same web directory where test.aspx . It should contain the following to enable the MySQL libraries to be loaded: Add the following to web.config
Now try accessing the file test.aspx using http://domainname.com/test.aspx If you need any help, please let me know. Install PHP-MemCache Module On CentOS 5.0 + RHELJanuary 17, 2009 on 3:27 pm | In Apache, Installation, PHP | No CommentsDownload wget http://pecl.php.net/get/memcache-2.1.2.tgz phpize && This should create memcache.so in your extenstion directory (/usr/lib/php/modules) If it is not done copy the file memcache.so to the default module directory. php -i| grep php.ini add the line ——————— Restart Apache /etc/rc.d/init.d/httpd restart check the module is working should show something like ============= Also, you can find it in your phpinfo page. /usr/java/jdkX.X.X_Xbin/java: not found + Install Java on Linux serversOctober 19, 2008 on 8:20 pm | In Apache, Centos, Cpanel, Installation, Linux | No CommentsIn some cases, the 3rd parts scripts in server requires java to be installed. It may not work properly if the binary of java installed in the server. You need to install JavaSDK So we present here the installation of Java in Linux server. Its as easy as you run upcp in a Cpanel server. Download the installation binary from Sun’s Java site J2SE for Linux http://java.sun.com/j2se/1.4.2/download.html.( Download J2SE SDK) You may need to register at the site and then they will send you the download link. Download the non-rpm binary cd /usr/local/src/ wget thebinary mv j2sdk-1_4_2_18-linux-i586.bin /usr/local/ cd /usr/local/ chmod 755 j2sdk-1_4_2_18-linux-i586.bin ./j2sdk-1_4_2_18-linux-i586.bin Now setup the environment variables. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME Also, you need to add these in the file /etc/profile. JAVA_HOME=/usr/local/j2sdk1.4.2_18 export JAVA_HOME XCache Installation Linux CpanelApril 24, 2008 on 9:07 am | In Apache, Cpanel, Installation, PHP | No Comments1) Download ============================== Find the php.ini file. php -i| grep php.ini Edit the php.ini file Add the line below. zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so Note the line proper path “/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ ” is received at the end of make install. Replace with that path. Go for Apache restart Check your PHP info page How to prevent DDos attacksApril 22, 2008 on 2:48 pm | In Apache, Cpanel, DDos | No CommentsHello everyone… >>>>>>>>>Install/Configure APF firewall Install/Configure APF firewall =========================== Step 2: Installation sh ./install.sh Install/Configure mod_evasive =========================== ====================== Compile in the mod_evasive apache module using apxs ====================== For Apache 1.3 If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path Edit your httpd.conf /usr/local/apache/conf/httpd.conf Add the lines below. ====================== /etc/init.d/httpd restart You can try another values for the above and obtain the best setting. Install mod_security Install this module via WHM WHM >> cPanel >> Addon Modules >> Select “modsecurity ” >>save Blocking IPs maintaining more connections =========================== ============================================ If you feel like there are inordinate amount of requests from a single ip, you ===== Using iptables, you can block the ip with : You can check out the ip to which maximum number of http requests are coming ================== Optimizing the httpd.conf file vi /usr/local/apache/conf/httpd.conf Change the values as follows. MaxKeepAliveRequests 50 Also edit the following options. Timeout Reduce the timeout, Maxclients etc. How to Install mod_evasiveApril 22, 2008 on 2:35 pm | In Apache, DDos, Installation | No CommentsDownload the source ====================== Compile in the mod_evasive apache module using apxs ====================== For Apache 1.3 If the apxs path is not /usr/local/apache/bin/apxs replace it with the appropriate path Edit your httpd.conf /usr/local/apache/conf/httpd.conf Add the lines below. ====================== /etc/init.d/httpd restart You can try another values for the above and obtain the best setting. Install and enjoy…. Apache failed to start “Document config file error” Plesk serverApril 19, 2008 on 3:51 pm | In Apache, Plesk | No CommentsWhen starting Apache the error is reported. [~]/etc/init.d/httpd start It is due to “httpd.include” file not found for the domain To regenerate the “httpd.include” file using the command given below. /usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=domain.com Now you can start the Apache without any problem. PHP mail error. Not able to send mail using script – Cpanel server.April 15, 2008 on 4:44 pm | In Apache, Cpanel, PHP | No CommentsFollow the steps below to sort out the problem. Check whether mail server is able to send mail. Next is to ================ If it is disabled. Next is to repair Exim. Backup the /etc/exim.conf and then repair exim ================ Most probably the issue should be fixed by now. Check the php.ini file. locate your php.ini file. ================ you will get the location from above command. Check whether mail() is included. if there, remove it and save. Then go for an Apache restart However, if all the above are OK and still not working. Check whether mod_security is installed. All the above are OK. If that too doesn’t work……………………. It should be fixed now. |
![]() Powered and designed by Presoon.com. |