Solved

how in apache config file makes it run php on iseries?

Posted on 2014-11-07
2
433 Views
Last Modified: 2014-11-13
We use zend server now but need to put up another web partition that isn't running zend server.

What do I need to put in my configuration file to make it run php? Right now, when I have php statements, it just shows the source of the web page and doesn't run any part of the php scripts. I am assuming it is a configuration issue that I haven't set up correctly in my httpd.conf file.

Thanks in advance.
0
Comment
Question by:samic400
2 Comments
 
LVL 16

Assisted Solution

by:Chris Harte
Chris Harte earned 250 total points
ID: 40428262
These are all in httpd.conf. In your directory index you need to expose  php files, in this case along side html and htm

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php
    DirectoryIndex index.html
    DirectoryIndex index.htm
</IfModule>

Your php module needs to be pointed to. PHPInDir needs to be the path to your installation of php, the dll file should be in there.

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/utils/php/"
LoadModule php5_module "C:/utils/php/php5apache2_4.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

And I have the application type as well

##LoadModule php5_module php5apache2.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

I am assuming you have already updated your php.ini file to point at your php installation.
0
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 40430007
You need a PHP interpreter either loaded in apache or invoked by mod_fcgid
By iSeries you mean OS/400 ?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now