- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: RedHat 8.0 & PHP
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
01-09-2003 05:21 AM
01-09-2003 05:21 AM
During installing RedHat 8.0, I also chose to install PHP.
But when I test PHP with the following "test.php" file, nothing is displayed on browser.
Content of "test.php"
phpinfo();
?>
Is there any command for me to start and stop PHP service, check the status of PHP service on RedHat 8.0?
Thanks in advance :)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 05:39 AM
01-09-2003 05:39 AM
Re: RedHat 8.0 & PHP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 05:49 AM
01-09-2003 05:49 AM
Re: RedHat 8.0 & PHP
PHP is a server-side web programming language that you can embed into HTML pages. When a user accesses a PHP-based page, PHP dynamically creates a web page that is then passed to the browser.
You can have a look on the following URL for getting more idea:
http://www.redhat.com/docs/manuals/database/RHDB-2.1-Manual/prog/c7773.html
Thanks :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 03:05 PM
01-09-2003 03:05 PM
Re: RedHat 8.0 & PHP
What does 'rpm -qa "php*"' report?
Is your web-server listening ? Confirm by issuing these two commands:
ps -fp $(netstat -ntlp | grep http
Did any errors show up when you started the web service? Look in /var/log/httpd/error_log
Restart the web server, and watch it if you're unsure ("service httpd restart").
Does the same thing happen if you use long tags, not short tags (change "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 07:15 PM
01-09-2003 07:15 PM
Re: RedHat 8.0 & PHP
I put "test.php" on the following folder:
/var/www/html
Following is the file and directory in /var/www/html:
[root@es1 html]# ls
test.php usage
I enter the following URL on the browser:
http://202.123.213.5/test.php
Follwing lines are the output I got:
[root@es1 kwng]# rpm -qa "php*"
php-4.2.2-8.0.5
php-imap-4.2.2-8.0.5
php-pgsql-4.2.2-8.0.5
php-ldap-4.2.2-8.0.5
[root@es1 kwng]# ps -fp $(UID PID PPID C STIME TTY TIME CMD
root 6395 1 0 2002 ? 00:00:01 /usr/sbin/httpd
[root@es1 kwng]# netstat -ntlp | grep http
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
6395/httpd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
6395/httpd
By the way, i do not understand the meaning of "use long tags". Should I put
"" in one line?
Thanks :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 08:04 PM
01-09-2003 08:04 PM
Solution*pokes it some more* wow..
Have a RH8 box here. Same thing. Never noticed.
*poke* Ahh.. Yes..
By default, RH8 configures PHP to require the use of 'long tags'.
You have two choices. One, use long tags:
phpinfo();
?>
Two, change PHP's configuration to use short tags:
/etc/php.ini, change:
short_open_tag = Off
to
short_open_tag = On
This should fix your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 09:00 PM
01-09-2003 09:00 PM
Re: RedHat 8.0 & PHP
Can I configure RedHat 8.0 to support both long tags and short tags?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2003 09:13 PM
01-09-2003 09:13 PM