| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Apache2 and LAMP - Can't Preview Website in a browser. |  |  
| Author |  |  
| wetinwales 
 
 
 Joined: 22 Sep 2006
 Posts: 8
 Location: Anglesey North Wales
 
 | 
|  Posted: Sun 07 Sep '08 13:10    Post subject: Apache2 and LAMP - Can't Preview Website in a browser. |   |  
| 
 |  
| Hi everybody. The purpose of installing Apache2 in LAMP is to preview my websiteA (php) in browsers so I can work on it. (WinXP has gone forever as has Microsoft.) and then just learn about Apache PHP and MySQL.
 
 Running Ubuntu 8.04 (Only) Working well. Love it!
 Installed LAMP following instructions at:-  https://help.ubuntu.com/community/ApacheMySQLPHP
 Created /home/user/public_html  and put in the index.html  ("It Works").
 Using http://localhost - and also http://localhost/index.html  all is good in Browser (Firefox)
 
 Then put in index.php ("Lumberjack") to test php in addition to the .html file.
 All good - by calling http://localhost/index.php
 (Now I can choose testing between either  file in public_html OK)
 
 So, enthusiastically, I copy a complete set of 'websiteA' files into public_html It uses a bit of php in places so it kicks off with index.php. (This site is a working live site which I wrote)
 
 Ooops.... I get this message:-
 Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
 Fatal error: Unknown: Failed opening required '/home/user/public_html/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
 
 Oh bother...
 
 OK I replace the websiteA files with another working live site I wrote entirely in html
 
 I get the same Warning/Permission denied message.
 
 Things I've tried:-
 Permissions in Ubuntu.... Nope
 chown -R 0777 /user/home/public_html ...  Nope (Un-did that one!)
 
 In php.ini the following is set (someone else asked me for these):-
 
 ; UNIX: "/path1:/path2"
 ;include_path = ".:/usr/share/php"
 ;
 ; Windows: "\path1;\path2"
 ;include_path = ".;c:\php\includes"
 
 AND...............................................
 
 ;open_basedir =
 
 in apache2.conf tried assigning the correct user name to USER and GROUP ...Nope (and reset them back again)
 
 Globals - either way ... Nope Now set to Off.
 
 At 0200hrs I asked the cat - but she simply blinked at me.
 
 Am I missing something awfully simple here?
 
 Wish I was a cat.
 
 can anyone help me?
 
 Thanks
 Wetinwales
 |  |  
| Back to top |  |  
| wetinwales 
 
 
 Joined: 22 Sep 2006
 Posts: 8
 Location: Anglesey North Wales
 
 | 
|  Posted: Sun 07 Sep '08 15:02    Post subject: |   |  
| 
 |  
| Hi Apaches 
 RESOLUTION. This was entirely my misunderstanding of the permissions methods in Ubuntu folders and files.
 
 wetinwales
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |