Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

w2ksp4.exe, WwwxxXdbf, procmail "FROM_MAILER" patch, Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF

Links

XODOX
Impressum

#1: Can not run PHP pages in Apache

Posted on 2007-11-06 18:02:52 by SFWahoo

First time poster, so please bear with me...

I have installed Apache 1.3 and PHP 5.2.4. I am now trying to install Zen
Cart. When accessing the Zen Cart setup, the PHP files are not read. I
simply get a directory listing of files instead of execution of the
index.php. Seems I have missed something in the config files. When I run
php -v, everything seems to be fine with PHP, I just do not run PHP files.

Any help is greatly appreciated.
--
View this message in context: http://www.nabble.com/Can-not-run-PHP-pages-in-Apache-tf4759 553.html#a13611132
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#2: Re: Can not run PHP pages in Apache

Posted on 2007-11-06 18:14:20 by parasane

On 11/6/07, SFWahoo <keith@mattioli.net> wrote:
> I have installed Apache 1.3 and PHP 5.2.4. I am now trying to install Zen
> Cart. When accessing the Zen Cart setup, the PHP files are not read. I
> simply get a directory listing of files instead of execution of the
> index.php. Seems I have missed something in the config files. When I run
> php -v, everything seems to be fine with PHP, I just do not run PHP files.

That sounds like your DirectoryIndex directive needs to be
updated. Check your httpd.conf file and make sure it looks
[something] like this:

<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml
index.jsp index.js index.jp index.php4 index.php3 index.php
index.phtml index.htm default.htm default.html home.htm
</IfModule>

Also be sure to check that you have these lines:
AddHandler application/x-httpd-php .php .php4 .php3 .phtml
AddHandler application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps

Once you've added those lines, just restart Apache.

Keep in mind (you, too, archive readers!) that this is httpd
1.3.x-specific, and the syntax won't work on 2.x.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#3: Re: Can not run PHP pages in Apache

Posted on 2007-11-06 23:00:17 by SFWahoo

Thanks. And this did work. Or at least I am able to access php pages.
Given your comment about 1.3 vs. 2.2, I upgraded to 2.2. And I now have a
different issue. When accessing a PHP page the Apache HTTP Server process
crashes or I get a memory error. Any ideas?


Daniel Brown-5 wrote:
>
> On 11/6/07, SFWahoo <keith@mattioli.net> wrote:
>> I have installed Apache 1.3 and PHP 5.2.4. I am now trying to install
>> Zen
>> Cart. When accessing the Zen Cart setup, the PHP files are not read. I
>> simply get a directory listing of files instead of execution of the
>> index.php. Seems I have missed something in the config files. When I run
>> php -v, everything seems to be fine with PHP, I just do not run PHP
>> files.
>
> That sounds like your DirectoryIndex directive needs to be
> updated. Check your httpd.conf file and make sure it looks
> [something] like this:
>
> <IfModule mod_dir.c>
> DirectoryIndex index.html index.wml index.cgi index.shtml
> index.jsp index.js index.jp index.php4 index.php3 index.php
> index.phtml index.htm default.htm default.html home.htm
> </IfModule>
>
> Also be sure to check that you have these lines:
> AddHandler application/x-httpd-php .php .php4 .php3 .phtml
> AddHandler application/x-httpd-php-source .phps
> AddType application/x-httpd-php .php .php4 .php3 .phtml
> AddType application/x-httpd-php-source .phps
>
> Once you've added those lines, just restart Apache.
>
> Keep in mind (you, too, archive readers!) that this is httpd
> 1.3.x-specific, and the syntax won't work on 2.x.
>
> --
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>
> If at first you don't succeed, stick to what you know best so that you
> can make enough money to pay someone else to do it for you.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--
View this message in context: http://www.nabble.com/Can-not-run-PHP-pages-in-Apache-tf4759 553.html#a13616858
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message

#4: Re: Can not run PHP pages in Apache

Posted on 2007-11-06 23:14:42 by parasane

On 11/6/07, SFWahoo <keith@mattioli.net> wrote:
>
> Thanks. And this did work. Or at least I am able to access php pages.
> Given your comment about 1.3 vs. 2.2, I upgraded to 2.2. And I now have a
> different issue. When accessing a PHP page the Apache HTTP Server process
> crashes or I get a memory error. Any ideas?
>
>
> Daniel Brown-5 wrote:
> >
> > On 11/6/07, SFWahoo <keith@mattioli.net> wrote:
> >> I have installed Apache 1.3 and PHP 5.2.4. I am now trying to install
> >> Zen
> >> Cart. When accessing the Zen Cart setup, the PHP files are not read. I
> >> simply get a directory listing of files instead of execution of the
> >> index.php. Seems I have missed something in the config files. When I run
> >> php -v, everything seems to be fine with PHP, I just do not run PHP
> >> files.
> >
> > That sounds like your DirectoryIndex directive needs to be
> > updated. Check your httpd.conf file and make sure it looks
> > [something] like this:
> >
> > <IfModule mod_dir.c>
> > DirectoryIndex index.html index.wml index.cgi index.shtml
> > index.jsp index.js index.jp index.php4 index.php3 index.php
> > index.phtml index.htm default.htm default.html home.htm
> > </IfModule>
> >
> > Also be sure to check that you have these lines:
> > AddHandler application/x-httpd-php .php .php4 .php3 .phtml
> > AddHandler application/x-httpd-php-source .phps
> > AddType application/x-httpd-php .php .php4 .php3 .phtml
> > AddType application/x-httpd-php-source .phps
> >
> > Once you've added those lines, just restart Apache.
> >
> > Keep in mind (you, too, archive readers!) that this is httpd
> > 1.3.x-specific, and the syntax won't work on 2.x.
> >
> > --
> > Daniel P. Brown
> > [office] (570-) 587-7080 Ext. 272
> > [mobile] (570-) 766-8107
> >
> > If at first you don't succeed, stick to what you know best so that you
> > can make enough money to pay someone else to do it for you.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Can-not-run-PHP-pages-in-Apache-tf4759 553.html#a13616858
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Did you recompile the module for Apache 2 and the apxs2 module?

In general, on a *nix-like system (i.e. - "non-Windows"), you
can't swap a module like PHP from one major version of Apache to
another. While a lot will work, most won't, and there can be some
serious repercussions, least of all being a segfault.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message