Αναζήτηση αυτού του ιστολογίου

Εμφάνιση αναρτήσεων με ετικέτα FreeBSD. Εμφάνιση όλων των αναρτήσεων
Εμφάνιση αναρτήσεων με ετικέτα FreeBSD. Εμφάνιση όλων των αναρτήσεων

FreeBSD Various Tips

0 σχόλια

FreeBSD : Alias

0 σχόλια
#alias -> shows current alias
#alias cd..  cd .. -> maps cd .. to command cd.. (dos like). Hit cd.. and you are ready to go back one directory.
#alias lsd ls -ld -> using lsd instead of ls -ld
PS: ls -ld accepts even wildmarks(*)

Make Alias permanent: http://www.linfo.org/make_alias_permanent.html
Identidy Current Shell -> #echo $shell (default is bin/csh)
If you need scripting with shell, you have to load bash shell.
Available shells -> /etc/shells

Writing Aliases in csh and tcsh

Install Apache2.4 , PHP 5.5 and MySQL on FreeBSD 9.2 or 10

0 σχόλια
Official FreeBSD Instructions:
http://www.freebsd.org/doc/handbook/network-apache.html

User Tutorial:
http://blog.ataboydesign.com/2014/04/17/freebsd-10-installing-apache-2-4-mysql-5-5-and-php5-5-missing-libphp5-so/

Steps :
1.#portsnap fetch update

2.Install /user/ports/www/apache24 (#make install clean)
Once apache24 has been installed successfully, edit /etc/rc.conf to make the Apache server start automatically at system boot , by adding this line : apache24_enable="YES"
 
3.Install /user/ports/lang/php55
3.1 first run make config to select required options of php.
Minimum options should be CLI, CGI and LINKTHR.
Web suggests to enable even ZTS, but In my case (FreeBSD 9.2) , i had problems  with ZTS.
3.2 #make instal
Since it is quite possible, first php55 install to fail, better to avoid "make install clean", since "clean" option removes data after installation.

If installation fails, after you fix the failure cause, you can run make reinstall clean. If you need ZTS and this is the cause of the php55 installation failure (that was my case),this blog describes how ZTS problems and missing libphp5.so can be solved (PS: by the way i deselected ZTS, since this blog came to my attention later....)