Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

PHP server doesnt work properly

I installed my Apache server on my Redhat 8 machine, I also installed the PHP module.
When I put a page in place with the phpinfo() function, I receive a correct page (compared to my professional hosting).
When I make a little exercice with an HTML page that fills in a form and calls a PHP page to display the entries of the form, it doesn show the correct things.
When I upload this page to my payed hosting, it seems to do it correct.
What am I doing wrong ?


Thanks,


Oliver
0
oliware
Asked:
oliware
1 Solution
 
NoSanityCommented:
you need to check the settings in your PHP.ini file (on my windows box its C:\windows\php.ini but i dont know about linux cos i havnt got PHP or apache on it yet). If possible ask your host to send you a copy of their php.ini ifle and replace yours with it or vopy the contents
0
 
heskyttbergCommented:
Hi!

I'm not sure this has to do with php.ini, but it can be found in:
/etc

Full path:
/etc/php.ini

Check the settings there so they are waht you want them to be.

You should not take a php.ini file from any other computers, that is a BAD idea, since paths will most likely be diffrent.

Regards
/Hans - Erik Skyttberg
0
 
oliwareAuthor Commented:
Thanks for your answers, it still doesn't work.
I made another file with the phpinfo() function in it and this works great.
Can somebody with more or less the same config please send me their http.conf file and their php.ini file ?
Thankz,


GoldWing@beer.com
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
heskyttbergCommented:
Hi!

Why not backup httpd.conf and php.ini.

Then do this:
download apache* and php* from redhat updates.

rpm -Uvh --force --nodeps apache* php*

Edit /etc/httpd/conf/httpd.conf
set servername don't change anything else.

Start apache and try your php page.

Regards
/Hans - Erik Skyttberg
0
 
oliwareAuthor Commented:
It was not necessary.
The problem was that the variables were case-sensitive.

Thanks anyway
0
 
NetminderCommented:
PAQed, with points refunded (50)

Netminder
Site Admin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now