<? phpinfo(); ?>

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers <? phpinfo(); ?>
# 1  
Old 09-06-2001
<? phpinfo(); ?>

I had my my php working and and was using the above statement to run a php test page. I did not reboot, or restart httpd, but when i came back to play after a 6 day vacation i found that the page no longer displayed the php info. The statement only shows <? phpinfo(); ?> as a standard html.

I have rebooted, httpd restart stop and start, i have looked through my httpd.conf file and made sure that it is loading the php modules and did httpd -T and all is running right? But, i still am not getting display of php info.

Any suggestions.

# 2  
Old 09-06-2001

Look for spaces at the start and end of your php file. PHP can be touchy about that. You could open the file in Windows Notepad and do a CTRL-D to go to end. If the cursor zooms to a blank line, you have found the culprit
# 3  
Old 09-06-2001
No that was not it. It had worked and I had not altered anything. However, i did open the file in 'vi' and look for spaces or none char. Is there anyother way to test php?

# 4  
Old 09-06-2001
Make sure nobody changed your apache config file. You should have a line like:

AddType application/x-httpd-php .php4 .php3 .phtml .php

in there somewhere, or something similar. This is how the server knows that the .php files should be processed before being served.
# 5  
Old 09-07-2001
Ok, i have tryed the above---now for the extreme...I think.

How do i uninstall php, apache, mysql?

I know how to use the gnorpm, but it complaints about all the dependencies and does not like to get them. Is there a command line way that is a little more efficient?

When it comes back to installing what is the best way?

System redhat 7.1
Connection Cable
400 mgz
500 ram
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question