Visit Our UNIX and Linux User Community


Is PHP properly installed


 
Thread Tools Search this Thread
Top Forums Web Development Is PHP properly installed
# 1  
Old 01-07-2014
Is PHP properly installed

I Installed LAMP on Ubuntu according to instructions in this page Installing LAMP On Ubuntu For Newbies | HowtoForge - Linux Howtos and Tutorials ,
but now if I create any page in php under /var/www, and use address http://localhost...etc
all I get to see is a blank page,even if the page contains only a simple echo statement.
I can view html files, but not php files linked from those html files, so I guess apache must be properly working.
# 2  
Old 01-08-2014
Did you look in your apache2 and PHP error log files?
# 3  
Old 05-01-2014
why don't you try to re install with any server..
# 4  
Old 05-03-2014
Make sure that php is installed properly use php -v on your termianl,like this
Code:
akshay@Aix:~/Desktop$ php -v
PHP 5.5.9 (cli) (built: Feb 23 2014 03:00:50) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

akshay@Aix:~/Deskto$ php -r 'echo phpinfo();' | head -5
phpinfo()
PHP Version => 5.5.9

System => Linux Aix 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686
Build Date => Feb 23 2014 02:56:19


Previous Thread | Next Thread
Test Your Knowledge in Computers #843
Difficulty: Medium
HTTP cannot directly support file transfer.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies

2. Shell Programming and Scripting

How to use Grep properly?

Hi Forum Im making a script that takes multiple unix users and lists the users and the groups that the user is part of. the grouplist looks like this grouplst="example_group1|example_group2|example_group3|example_group4" I got most of it working but Im having trouble with a while loop... (4 Replies)
Discussion started by: ajetangay
4 Replies

3. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

4. AIX

OS Patches installed but they seem as not installed

Hello everyone: I've installed an OS patch into AIX 6.1 by running the following command: instfix -d /tmp/6100-02-03 -k "IZ41855" however it seem not installed instfix -i -k "IZ41855" There was no data for IZ41855 in the fix database. what am I doing wrong? (8 Replies)
Discussion started by: edgarvm
8 Replies

5. IP Networking

Not able to FTP properly

FTP error: Connected to 10.58.132.123 (10.58.132.123). 220 (vsFTPd 2.0.5) 331 Please specify the password. 230 Login successful. 550 Failed to change directory. 227 Entering Passive Mode (10,58,132,123,235,54) 150 Here comes the directory listing. 226 Transfer done (but failed to open... (0 Replies)
Discussion started by: weknowd
0 Replies

6. Web Development

Deny access from all users, except PHP application installed in same domain

Hi to all, Please, some help over here. IŽll try to be as much clear I can. In summary my problem is: I have a PHP application installed in a folder of my domain that reads CSV.txt files from another folder in my domain and I need to restrict direct access to see and download these CSV.txt... (0 Replies)
Discussion started by: cgkmal
0 Replies

7. UNIX for Advanced & Expert Users

Re-configuring PHP-already installed with new extensions

I have installed PHP and now it needs to be reconfigured with few extensions:eg: OCI8, XSL transformation etc. 1. Do I have to recompile PHP, or a few edits to config files will do. 2. Also how to list the options with which PHP is compiled. (1 Reply)
Discussion started by: kavera
1 Replies

8. Programming

y is this not working properly?

#include <stdio.h> #include <sys/types.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> struct stat s; main() { char c; if (fork()==0) { system("clear"); do { printf("myAI\\>§ "); scanf("%s",c); if(stat(c,&s)>-1) {... (3 Replies)
Discussion started by: C|[anti-trust]
3 Replies

Featured Tech Videos