niota

fascinating. logical.

User Tools

Site Tools


niota-docs:niota_install_php

This is an old revision of the document!


upgrade or install PHP

Go to niota download page and download the pre configured PHP version or download an approved version from any official PHP download sites.

It's recommended to shut down Apache when you install/upgrade PHP.
Don't forget to restart it when you are finished.

Windows Server

Unpack the downloaded PHP-file and copy the unpacked folder to C:\Program Files\ (recommended)

Here we assume a PHP version number 7.3.8_x64.

Your PHP version number will be different. Check that you do not just copy the lines from here, but adapt it to you current version numbers.

  • Copy “php-7.3.8_x64” into folder: “C:\Program Files\”.

configure Apache

Open your Apache ..\conf\httpd.conf file and check if PHP settings are made correctly

  • check if PHP path is correct at those lines
    • LoadModule php_module
    • PHPiniDir
  • check that that handler are set
    • AddHandler
    • AddType
apache_phpconfig.txt
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html

LoadModule php7_module "C:/Program Files/php-7.3.8_x64/php7apache2_4.dll" 
PHPiniDir "C:/Program Files/ php-7.3.8_x64" 

After update from Version 7.x to version 8.y it could look like this:

apache_phpconfig.txt
AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php .html

LoadModule php_module "C:/Program Files/php-8.2.18_x64/php8apache2_4.dll"
PHPiniDir "c:/Program Files/php-8.2.18_x64"

configure PHP

Navigate to your PHP folder and open php.ini.

  • Verify if paths are set correctly:
    • session.save_path – set it to your apache temp directory
    • extension_dir = – set it to you PHP extension directory
phpconfig.txt
session.save_path = "c:\Apache24x64\tmp\"
extension_dir = "c:\Program Files\php-8.2.18_x64\ext"
niota-docs/niota_install_php.1750844515.txt.gz · Last modified: 2025/07/17 14:11 (external edit)