خرید بک لینک

1st Hello all.
2nd What am I asking
I installed php with this commands

Code:

sudo apt-get install php5-common libapache2-mod-php5 php5-cli
 It installed

miky@media:/var/www/html$ /etc/init.d/apache2 stop
[ ok ] Stopping apache2 (via systemctl): apache2.service.


miky@media:/var/www/html$ sudo /etc/init.d/apache2 start
[sudo] password for miky: 
[ ok ] Starting apache2 (via systemctl): apache2.service.

miky@media:/var/www/html$ php -v
PHP 5.6.4-4ubuntu6.4 (cli) (built: Oct 28 2015 01:21:29) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
I created /var/www/html/phpinfo.php

Code:

miky@media:/var/www/html$ ls -ltotal 28
-rwxr-xr-x 1 root root 1692 Apr 17 16:12 about.html
-rwxr-xr-x 1 root root 3082 Apr 17 16:12 cont.html
drwxr-xr-x 2 root root 4096 Apr 16 13:35 css
drwxr-xr-x 3 root root 4096 Apr 16 03:46 images
-rwxr-xr-x 1 root root 1732 Apr 17 16:12 index.html
-rwxr-xr-x 1 root root   17 Apr 17 21:38 phpinfo.php
-rwxr-xr-x 1 root root 2971 Apr 17 16:12 serv.html
miky@media:/var/www/html$ cat phpinfo.php
<?
phpinfo();
?>
miky@media:/var/www/html$
As I was told that phpinfo.php should show me info about php in system if it is working correctly.
but on server's web browser i am typing 127.0.0.1/phpinfo.php page is completely blank.
I guessed something is not right I started digging and found this http://ubuntuforums.org/showthread.php?t=2220317

his solution was this.
aahmad@ubuntu-desktop:~$ cat /etc/apache2/sites-enabled/* | grep 'var/www'
DocumentRoot /var/www/html

I copied it and blindly pasted in terminal it executed as two separate commands

Know i do not know what I have messed up.

3rd extra info. i am completely noob when it comes to web services and programming.

I just created my 1st webpage ict.br.com(It is not done yet, actually far form it. but at least it is better than nothing right?)
I used HTML and CSS for this web page. I wanted to use little bit of database i Found out I need PHP for that.

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 30 فروردين 1395 ساعت: 14:59

صفحه بندی