| | |
Apache2 displaying PHP5 source code
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 0
I installed Apache2, PHP5, openssl, Mysql4.1 all from src(except MySql=>RPM). The problem I am having is with PHP ( well I think anyway ). When I start Apache it loads php without error, but when I point Firefox to localhost/test.php which contains
CODE:
<?php phpinfo(); ?>
,its displayed rather than executed.
Any Ideas, been beating my head for a two days with this. I am able to connect to mysql with out a problem also.
Thanks Demetri
CODE:
<?php phpinfo(); ?>
,its displayed rather than executed.
Any Ideas, been beating my head for a two days with this. I am able to connect to mysql with out a problem also.
Thanks Demetri
What disto? You will need to add to your apache2 conf. file.It is located in different places in different distro's.The above is for php and ssl support,that loads the modules when apache2 starts.
PHP Syntax (Toggle Plain Text)
APACHE2_OPTS="-D SSL -D PHP5"
Did you add the .php extension and the php module into apaches config file
Firefox: no, its not the end all solution, it has its own issues and in time it will be just as insecure as IE, when its hit Firefox 6, if it makes it that far. Oh, and AOL pays for it, incase you didn't know.
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
Microsoft & Windows: If you hate it so much, move to linux, or bsd, or anything else, stop complaning and move on.
Good starting places: Gentoo Novell SUSE Fedora Core Apple
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by comprookie2000
What disto? You will need to addto your apache2 conf. file.It is located in different places in different distro's.The above is for php and ssl support,that loads the modules when apache2 starts.PHP Syntax (Toggle Plain Text)
APACHE2_OPTS="-D SSL -D PHP5"
Shoot, I am sorry. I am running Suse 9.1. Also I tried the code above and when started Apache with error. Something like "error on line #### misspelled or enabled in a module". Apache was installed /usr/local/apache2, php5 /usr/local/php5, and openssl /usr/local/lib. If this helps, when I point firefox to an url that does not exist I get the apache file not found error. The last line states "apache 2 mod_ssl openssl php5" thats not word for word. The MySql installation was done with the seperate RPM packages from mysql.com.
•
•
Join Date: Jun 2005
Posts: 4
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Zachery
Did you add the .php extension and the php module into apaches config file
Yup did that. When I point firefox to http://localhost/phpinfo.php I am asked if i would like to download the file instead.
Dont get it LOLOL, must be something I am overlooking.
Thanks
Demetri
![]() |
Similar Threads
- Source code downloads (Visual Basic 4 / 5 / 6)
- Windows 2K source code? (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: Limitations of Moveable Type for newbies
- Next Thread: mysq_query on 2 dbs .. ?
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop open parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update upload url validation validator variable video web xml youtube





