This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm on OSX and I've had this issue with both of my computers, I run MAMP XAMPP on one and activated PHP and Apache at the terminal on my other computer. I was testing out html locally and decided to add some php, saved it as .php, and refreshed the browser only to get source code info. I've googled the issue and it still doesn't seem to help. I should note that when I first did the install on both of these computers they worked fine. I've tried all on the httpd.conf file in my /etc/apache2/ dir:
Uncommenting php5 in httpd.conf (obvies)
No idea what these are doing here, is there a modules dir I should find? I added them in anyway and still no change...
AddModule mod_php.c
LoadModule php_module modules/mod_php.so
LoadModule php5_module modules/libphp5.so
I've even tried using AddHandler instead of AddType but no difference...
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I don't think it has anything to do with the short_open_tag thing since <?php echo info() ?> doesn't even work. Anything I'm missing? Could be super basic, like even 'hey you should be saving all your files in a certain directory' or something, it's been awhile since I've done this stuff, I did restart apache however and no change.
Again, it worked initially and I haven't changed anything so I'm really not sure, could it have something to do with a conflicting install or something?
Post Details
- Posted
- 11 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PHPhelp/com...