PHP, Apache and Desktop program links opening as text?

volksman v0lksman69 at gmail.com
Wed Jul 2 04:46:55 UTC 2008


Can't sleep...hope this helps...

Looks like you changed your "DocumentRoot" to /var/www/Joomla/ which 
means that is where the web server now starts it's serving path.  So 
/var/www/test.php will never be served.  As far as the web server is 
concerned it doesn't exist for public consumption. 

You have two options:

1) You will need to change the apache default config you have below and 
remove Joomla from it.  This means that http://georutkay.homelinux.org 
will not respond with Joomla.  You will need to add the /Joomla to get 
there.
2) Keep it the way it is and know that your Document root for your web 
server is /var/www/Joomla (not /var/www), so anything you want web 
accessible resides under that directory.

Happy Canada Day (45 minutes too late... :) )

geo wrote:
> Permissions on that file as well as all other files and subdirectories, I've set them to be read-only for all others.
>
> Joomla seems to have taken over as my web root. Is this something that I would identify in /etc/apache2/sites-available/default?
>
> This is what is in my /etc/apache2/sites-available/default file and I was trying to get Joomla to show up when I type: http://georutkay.homelinux.org
>
> But I still expected directories OUT of the Joomla directory to remain accessible - these all fail to remain accessible once outside of Joomla and I end up with error messages that the link is outdated (or to that effect):
>
> NameVirtualHost *
> <VirtualHost *>
> 	ServerAdmin webmaster at localhost
> 	
> 	DocumentRoot /var/www/Joomla/
> 	<Directory />
> 		Options FollowSymLinks
> 		AllowOverride none
> 	</Directory>
> 	<Directory /var/www/Joomla/>
> 		Options Indexes FollowSymLinks MultiViews
> 		AllowOverride all
> 		Order allow,deny
> 		allow from all
> 	</Directory>
>
> 	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
> 	<Directory "/usr/lib/cgi-bin">
> 		AllowOverride All
> 		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
> 		Order allow,deny
> 		Allow from all
> 	</Directory>
>
> 	ErrorLog /var/log/apache2/error.log
>
> 	# Possible values include: debug, info, notice, warn, error, crit,
> 	# alert, emerg.
> 	LogLevel warn
>
> 	CustomLog /var/log/apache2/access.log combined
> 	ServerSignature On
>
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
>
> </VirtualHost>
>
>
>
> --- On Tue, 7/1/08, Andrew Mathenge <mathenge at gmail.com> wrote:
> From: Andrew Mathenge <mathenge at gmail.com>
> Subject: Re: PHP, Apache and Desktop program links opening as text?
> To: yaktur at yahoo.com, "The Canadian Ubuntu Users Community" <ubuntu-ca at lists.ubuntu.com>
> Cc: robitaille at gmail.com
> Date: Tuesday, July 1, 2008, 11:07 PM
>
> Interesting. Your Joomla! installation is working so your PHP/MySQL
> and Apache install is fine. You might be onto something suspecting
> file/folder permissions.
>
> What are the permissions set on the file /var/www/test.php?
>
> Also, who is running the apache2 service? Does it have access to that file?
>
> Andrew.
>
> On Tue, Jul 1, 2008 at 10:19 PM, geo <yaktur at yahoo.com> wrote:
>   
>> I ended up wiping the drive, reformatting everything (still 2 partitions)
>> and reinstalling the system again. :( That seemed to be the only way.
>>
>> First I tried to just delete user accounts, then reformat the larger
>> partition. Fortunately my backup is only 2 days old.
>>
>> But that made things only worse! I couldn't redo the accounts properly
>>     
> on
>   
>> the system - and it didn't make any sense. The problem got so bad I
>>     
> could
>   
>> only boot in command-line mode and then when I commanded the system to
>> restart (or reboot, whichever it is), then it went to the graphical login
>> screen!
>>
>> I know I repartitioned and reformatted before. I don't know what went
>>     
> wrong.
>   
>> Funny, this time 8.04 worked! I was curious so I gave it one more try. The
>> self-check on the CD said it was ok. So I tried to reinstall 8.04 and this
>> time it worked.
>>
>> The only glitch was that from my initial account it wouldn't let me
>>     
> access
>   
>> System/Administration/Login window.
>>
>> To do changes to the login window as I prefer them, I ended up going into
>> terminal window, typing "su" and entering the password I already
>>     
> assigned
>   
>> the super user.
>>
>> Then I typed into the terminal window "gksu /usr/sbin/gdmsetup"
>>     
> (which I
>   
>> copied out of the Login Window when I got properties on it).
>>
>> Then that allowed me to change things about the login window so I can
>>     
> login
>   
>> as root through the same login window and not have to waste time doing
>>     
> that
>   
>> silly rebooting nonsense into recovery mode.
>>
>> But now when I go to set up my web server stuff, I follow the exact same
>> instructions that I printed out when I got 7.10 working with PHP, Apache
>>     
> and
>   
>> MySQL....and I'm getting lousy performance.
>>
>> http://georutkay.homelinux.org/test.php doesn't work, it claims it
>>     
> can't
>   
>> find the file but I know that's baloney - it's right there:
>> /var/www/test.php
>>
>> Also I can't see my subdirectories.
>>     
> http://georutkay.homelinux.org/Projects/
>   
>> should lead me to two further subdirectories which I know exist in
>>     
> /var/www/
>   
>> I get the same results if I use http://localhost instead of
>> http://georutkay.homelinux.org
>>
>> The subdirectories are not being shown and I don't know why. I have
>> permissions set to read only for /var/www but even when I tried and set it
>> to read-write, it still didn't make any difference!
>>
>> Help?
>>
>> geo
>>
>>
>> --
>> ubuntu-ca mailing list
>> ubuntu-ca at lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ca
>>
>>
>>     
>
>
>       
>
>   




More information about the ubuntu-ca mailing list