LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2010, 07:37 AM   #1
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Rep: Reputation: 0
how to run php3 on apache2?


dear all,
I have installed the following packages on Linux SUSE:
-Apache 2.2.13
-PHP5.3.3
-freeradius + dialupadmin (web interface for freeradius)

since the htdocs and whole dialupadmin are in .php3
i cannot open the web interface, firefox keep asking me if i want to save the file, or chose a specific program tu run....

does anyone knows how i can make my server understand *.php3 ??
 
Old 09-24-2010, 08:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

I guess you have already installed and the apache2-mod_php5 package

Quote:
does anyone knows how i can make my server understand *.php3 ??
You mean that the php files have the extension .php3. In that case, open /etc/apache2/conf.d/php5.conf, look for the line:
Code:
AddType application/x-httpd-php .php
and add .php3
The fact is that php5 might not be 100% compatible with the php3 code, so you'll get lots of errors

Regards
 
Old 09-24-2010, 08:21 AM   #3
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
thanks for your concern,
i already tried this and it's still not working.

ok, in the directory of the web interface i have many files, one is index.html, and others are, like, buttons.php3, user.php3, errors.php3... which must be services i can access to using this web interface, but unfortunatly, when i enter http://localhost/dialup/ it open the index.html, and ask me about buttons.php3, if i want to save it or open it with specific prog.

i hape i made myself clear, thanks for any help!!
 
Old 09-24-2010, 08:27 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
So I'm asking you again:
Have you installed the apache2-mod_php5 package?
 
Old 09-24-2010, 08:51 AM   #5
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
well, im deleting all php5, apache2, freeradius now
will re-install again to have clean conf files
i will check about the apache2-mod_php5 package
 
Old 09-24-2010, 09:06 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
You don't need to delete/uninstall anything. Just need this package, as it provides the php5 module for apache (libphp5.so). Without it you'll always be prompted to save a .php(3) page

Last edited by bathory; 09-24-2010 at 09:21 AM. Reason: typos
 
Old 09-24-2010, 09:11 AM   #7
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
i hope it will work, im installing allover, and i chose the apache2_php5 module too!
cross fingers
 
Old 09-24-2010, 09:21 AM   #8
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
mmm, still not working..
how can i be sure that apache is using libphp5.so??
 
Old 09-24-2010, 09:30 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
There are various ways:
1 Run
Code:
httpd -M|grep php
2. Search the config files for:
Code:
LoadModule php5_module /usr/lib/apache2/mod_php5.so
3. You can create a helloworld.php page in your DocumentRoot and see if apache can parse it without prompting for saving
Code:
<?php
echo 'Hello World!';
?>
Regards


### EDIT ###
From this, the module name on Suse is mod_php5.so

Last edited by bathory; 09-24-2010 at 09:35 AM. Reason: more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't run apache2 pk_kala Debian 2 09-03-2007 08:59 AM
blog with php3 and no MySQL netcrusher88 Linux - Software 1 10-01-2005 05:41 PM
Comparing php5 to php3 mrobertson Programming 9 06-23-2005 03:06 PM
.php works but not .php3 Reverborama Fedora 4 02-09-2004 02:49 AM
php3 extention support dkc_ace Linux - Software 2 11-04-2003 11:14 PM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration