Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Monday, 24 November 2014

Install both OpenJDK and Oracle Java on Fedora

Use the "alternatives" app to switch between the two.

http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/

Tuesday, 17 June 2014

Nginx with CPanel

http://cpxstack.sysally.net/

Cpxstack is a plugin to cPanel that completely replaces Apache with nginx (other plugins keeps apache and configure nginx as a reverse proxy).

To install cpxstack, you need Incron. For this you need to enable the EPEL repository (see previous article for this).

You also need to install php-devel. Cpanel prevents installing any php related packages through an "exclude" entry in yum.conf. Open yum.conf and remove "php*".

After upgrading to the latest stable PHP version, you should enable the Remi repository and the php55 remi repository. You can now install php-devel.

You can run the cpxstack.sh script as per instructions here: http://cpxstack.sysally.net/documentation.htm

For incron and php-devel you can alternatively directly run the cpxstack.sh script to see if it installs these packages automatically.

After the script has run, you should go to WHM, when you click on the cpxstack icon in the sidebar, it will ask you to change a setting in the Tweak Settings area.
You also need to go to cPanel and manually enable nginx for your site. Also in WHM change the default number of worker processes to a lower number (default is 15).

http://www.nginxtips.com/cpxstack-nginx-php-fpm-cpanel/

Monday, 16 June 2014

cPanel: Install php-devel

CPanel disables installation of php related packages using yum. To enable it:

nano /etc/yum.conf

Remove php* from the "exclude" line.

EPEL repositories for Fedora and Cent OS

Certain applications such as incron can't be found in the default repositories of Cent OS. To get this software, you need to enable the EPEL (Extra Packages for Enterprise Linux) repository:

https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F

http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x

Monday, 11 November 2013

Disable selinux temporarily

sudo setenforce 0

To check the status of selinux:

/usr/sbin/getenforce


Apache .htaccess directives not working

check the following settings in /etc/httpd/conf/httpd.conf

http://httpd.apache.org/docs/current/mod/core.html#allowoverride

Apache location of configuration file in Fedora

The httpd.conf file is located in

/etc/httpd/conf

Thursday, 24 October 2013

Configuring yum to use a proxy

http://docs.fedoraproject.org/en-US/Fedora_Core/5/html/Software_Management_Guide/sn-yum-proxy-server.html

Tuesday, 1 October 2013

Configuring Remote Desktop XRDP

http://sigkillit.com/category/linux/fedora-18/

if it doesn't work, try

https://mknowles.com.au/wordpress/2013/02/15/installing-xrdp-on-fedora-18-with-mate-desktop/

Saturday, 7 September 2013

Thursday, 5 September 2013

To open a port permanently in Fedora 19:

sudo firewall-cmd --zone=public --permanent --add-port=80/tcp

Monday, 26 August 2013

Setting up a mail server in Linux

http://rimuhosting.com/support/settingupemail.jsp?mta=postfix

http://en.kioskea.net/contents/300-intranet-installing-a-mail-server

http://ithelpblog.com/os/linux/redhat/fedora/howto-install-and-configure-postfix-mail-server-on-fedora-18/

Saturday, 17 August 2013

Installing MS Core Fonts in Fedora

Run the commands with sudo

cd /tmp
wget http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec
yum install rpm-build cabextract ttmkfdir
rpmbuild -bb msttcorefonts-2.5-1.spec
yum install /root/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm

Then go to the home folder of root and execute the rpm.

Fedora 19 mate Subpixel font rendering

After enabling rpm fusion, install freetype-freeworld

Right click, the desktop,  go to Change Desktop Background and enable slight hinting and rgb antialiasing.

Fedora 19: installing Apache, PHP, MySQL

In Yum Extender, select httpd, community-mysql-server, php, php-pecl-apc php-cli php-pear php-pdo php-mysqlnd  php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml, phpmyadmin

Run these commands after that:

service httpd start ## use restart after update

## Fedora ##
systemctl enable httpd.service


Then open port 80 to outside connections. Create a text file in /etc/sysconfig/iptables containing:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

service iptables restart

MySQL configuration:

systemctl start mysqld.service
systemctl enable mysqld.service
mysql -u root

set password for root@localhost=password('password');

set password for root@localhost=password('password');

#delete anonymous user
delete from mysql.user where user='';



Fedora Web Root Folder Permissions

You should add your account to the 'apache' group:

sudo usermod -a -G apache chetan

and then change the group for the /var/www/html folder to 'apache':

sudo chgrp -R apache /var/www/html
 
More info:
http://www.rackspace.com/knowledge_center/article/how-to-add-linux-user-with-document-root-permissions