Author |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Tue 15 Dec '09 12:13 Post subject: Apache 2.2.14 on Windows 7 |
|
|
Hello!
I have a strange problem on Windows 7.
I install Apache 2.2.14, PHP 5.3.0, MySQL 5.1.41 and phpmyAdmin 3.2.4, PERL 5.10.1
Well, phpmyadmin is working fine, but then I upload website in php/html(I think is a dinamic site) and when I go to localhost and that folder where web site is, nothing happen.
The paga is blank(just white).
Do I need to install any other modules or something and how?
thanks
EDIT: When I try the other web site, than on a localhost/website
I can see in page just this:
Code: | logout(); } else { $iq = mysql_query("SELECT * FROM users WHERE username='{$signin_username}' AND password='{$signin_password}' AND suspended='0' LIMIT 1;"); $ir = mysql_fetch_array($iq); $_SESSION['me'] = $ir; } } } } else { die("The configuration did not recieve appropriate variables to accept your request."); } if ($set['next_clearup'] < time ()) { $next_clearup = time () + 60 * 60 * 24; mysql_query ('' . 'UPDATE settings SET set_value=\'' . $next_clearup . '\' WHERE set_name=\'next_clearup\' LIMIT 1;'); mysql_query ('UPDATE users SET ads_clicked=\'\' WHERE ads_clicked!=\'\''); } } ?> |
on a white page.
There are no headers, background, nothing. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7354 Location: Germany, Next to Hamburg
|
Posted: Tue 15 Dec '09 12:35 Post subject: |
|
|
in your php.ini
change
from
short_open_tag = Off
to
short_open_tag = On
or change in your script <? to <?php |
|
Back to top |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Tue 15 Dec '09 12:39 Post subject: |
|
|
OMG.
Thanks, it works! |
|
Back to top |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Thu 17 Dec '09 21:51 Post subject: |
|
|
Another problem.
I have instaled Perl 5.10 and If I ad in httpd.conf line
LoadModule perl_module modules/mod_perl.so
apache dont start. mod_perl.so I downloaded and copy file into Apache2.2/modules.
Now I have this two lines in httpd.conf:
LoadFile C:/PERL/bin/perl510.dll
#LoadModule perl_module modules/mod_perl.so |
|
Back to top |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Tue 05 Jan '10 21:16 Post subject: |
|
|
This with perl I solved with PERL 5.8.9 and mod_perl 2.0.0.4.
But now i have strange problem with website page/php script.
on Windows is not working all corectly.
I get some errors when something must wrote into database(Mysql)
Then I try the same script on VM on system CentOS 5.3(host is Windows 7) and this script is working just fine.
I just do not get it why on Windows is not working as on VMachine?
I installed on both Apache 2.2.13,php 5.2.10,MySQL 5.0.51b |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7354 Location: Germany, Next to Hamburg
|
Posted: Tue 05 Jan '10 23:14 Post subject: |
|
|
if you don't post a snippet there is no chance to help you and please open a new topic the scripting corner since that seems to be a scripting problem and not an apache problem. |
|
Back to top |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Wed 06 Jan '10 13:09 Post subject: |
|
|
Ok will open new topic just explain me what is "snippet"? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7354 Location: Germany, Next to Hamburg
|
Posted: Wed 06 Jan '10 16:38 Post subject: |
|
|
snippet is a code seqment. So you post the relevant piece of code. |
|
Back to top |
|