- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache works. PHP not. (PHP modul problem)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 11:32 PM
12-14-2005 11:32 PM
I've installed the Web Server package v.2.0.55.00 (with PHP4 module support) via swinstall. After the installation I started apache and it worked.
Now I want to enable PHP support on the webserver. I followed the assignments on the FAQ site, but nothing changed. The PHP scripts I want to execute will be proffered for download.
What can I do?
Thank you for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 11:35 PM
12-14-2005 11:35 PM
Re: Apache works. PHP not. (PHP modul problem)
have you set the MIME type?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2005 11:35 PM
12-14-2005 11:35 PM
Re: Apache works. PHP not. (PHP modul problem)
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:13 AM
12-15-2005 12:13 AM
Re: Apache works. PHP not. (PHP modul problem)
The MIME types are defined with the following line in /opt/hpws/apache/conf/httpd.conf:
AddType application/x-httpd-php .php
I didn't change this line.
The PHP module is added with this line:
LoadModule php4_module modules/libphp4.so
This line was a comment.
I changed also the following comment in /opt/hpws/apache/bin/apachectl into active:
export LD_PRELOAD="$LD_PRELOAD:$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libja
va.sl"
Thats the description in this FAQ entry.
http://www.hp.com/products1/unix/webservers/apache/faqs/index.html#php3
The only "error" I get is, that I can download the *.php-files like *.zip-files (or something else) from the webserver. The code will not execute.
In the apache error log (/opt/hpws/apache/logs/error_log) are no errors.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:25 AM
12-15-2005 12:25 AM
Re: Apache works. PHP not. (PHP modul problem)
I assume you have ScriptAlias and Action clauses for the PHP in httpd.conf ?
Action application/x-httpd-php ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 12:45 AM
12-15-2005 12:45 AM
Re: Apache works. PHP not. (PHP modul problem)
No I haven't. What do I have to add?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 01:35 AM
12-15-2005 01:35 AM
Re: Apache works. PHP not. (PHP modul problem)
just before we start down this road. After doing your changes did you restart the apache server?
Also have a look at:
http://php.mirrors.ilisys.com.au/manual/en/install.unix.php
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 01:46 AM
12-15-2005 01:46 AM
Re: Apache works. PHP not. (PHP modul problem)
Yes I did.
What's the difference of PHP as a static and a shared module?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 02:06 AM
12-15-2005 02:06 AM
Re: Apache works. PHP not. (PHP modul problem)
Don't ask me why... but now it works...
I removed the package and installed it again. After a reboot I started apache and it worked.
Thanks for your help :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 02:31 AM
12-15-2005 02:31 AM
Solutionif you find out what the underlying problem was, please let us know.
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 08:44 PM
12-15-2005 08:44 PM
Re: Apache works. PHP not. (PHP modul problem)
Another question: How can I connect to an mysql database? Is the mysql support enabled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 08:52 PM
12-15-2005 08:52 PM
Re: Apache works. PHP not. (PHP modul problem)
http://www.hp.com/products1/unix/webservers/apache/faqs/index.html#php
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 09:25 PM
12-15-2005 09:25 PM
Re: Apache works. PHP not. (PHP modul problem)
Because I read that mysql is built in PHP.