Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to start php in redhat 8?

Status
Not open for further replies.

william6789

Technical User
Mar 14, 2003
21
0
0
CA
Hi,
I installed redhat 8.0, and I can start apache and mysql. But I do not know how to start my php service? I wrote a test.php file and saved it in var/ , but when I type 127.0.0.1/test.php, it does not work.
Can somebody tell me how to configure and start it? any advice and comments will be highly appreciated.

william
 
First, look to see if php is installed. The library should be shown by &quot;httpd -l&quot; if it's compiled in, or there should be a file in <apache root>/libexec like &quot;libphp4.so&quot;.

If the library file is there, make sure that it's being loaded by Apache. Look for
&quot;LoadModule php_module libexec/libphp4.so&quot;
or something similar in your httpd.conf file.

Also, Apache needs to know which pages to handle with php, whether it's loaded at runtime or compiled in. This is also in my httpd.conf file:
&quot;AddType application/x-httpd-php .php .php4&quot;

If php isn't installed, you can get it an Current version is 4.3.2

Lee.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top