0
PHP (Hypertext Preprocessor) is an open source general-purpose scripting language that allows mainly to develop web applications. PHP can be integrated easily with HTML.


1.1 PHP Installation

To install PHP on Fedora, open the terminal (Applications >> System Tools >> Terminal), then run this command:

    su -lc 'yum install php-cli'

1.2 Apache Module Setup

It's necessary to have first Apache installed and operational, then open the terminal and execute this command:

    su -lc 'yum install php'


Files and Directories to Know

- /etc/php.ini: Config file.

- /etc/php-cli.ini: The config file for the CLI version of PHP.

- /etc/php.d : The directory containing extra config files.

- /usr/lib[64]/php/modules: Modules written in C programming language.

- /usr/share/pear: PEAR modules written in PHP.

- /usr/share/php: Other modules written in PHP.

1.3 Basic Modules

To view the list of installed modules, then run this command:

    php --modules

Here are some of them:

- bz2
- calendar
- Core
- ctype
- curl
- date
- ereg
- exif
- fileinfo
- filter
- ftp
- gettext
- gmp
- hash
- iconv
- json
- libxml
- openssl
- pcntl
- pcre
- Phar
- readline
- Reflection
- session
- shmop
- SimpleXML
- sockets
- SPL
- standard
- tokenizer
- xml
- zip
- zlib

Post a Comment

 
Top