Solved

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

Posted on 2014-11-07
2
456 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 17

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 62

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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

685 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