Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-11-07
2
Medium Priority
?
526 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 1000 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 1000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 count occurrences of each item in an array.
Suggested Courses

783 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