View Full Version : Httpd and Joomla on Fedora 9 server
Deonis
10th July 2008, 10:14 PM
Hello. I am running Fedora 9 as a home server for my website based on Joomla. My problem is to correctly display my Joomla web site on-line. It is working perfectly with fedora 9 on localhost but when I try to connect to it from another computer, the title page without images displayed. Also I can not go to any other pages. Maybe it is problem with httpd configuration settings or I missing something ??!?
I will appreciate any help
Thanks beforehand !!!
marcrblevins
11th July 2008, 03:36 AM
the title page without images displayed.
Can you show us a snapshot of it?
Can you run Shields Up from www.grc.com, it would show you the ports that are opened/closed.
Deonis
11th July 2008, 11:39 PM
This is output from grc.com and my web you should be able to see as : dsn.selfip.com
GRC Port Authority Report created on UTC: 2008-07-11 at 22:36:38
Results from scan of ports: 0-1055
2 Ports Open
0 Ports Closed
1054 Ports Stealth
---------------------
1056 Ports Tested
NO PORTS were found to be CLOSED.
Ports found to be OPEN were: 22, 80
Other than what is listed above, all ports are STEALTH.
TruStealth: FAILED - NOT all tested ports were STEALTH,
- NO unsolicited packets were received,
- NO Ping reply (ICMP Echo) was received.
Deonis
11th July 2008, 11:39 PM
Thanks for reply.This is output from grc.com and my web you should be able to see as : dsn.selfip.com
GRC Port Authority Report created on UTC: 2008-07-11 at 22:36:38
Results from scan of ports: 0-1055
2 Ports Open
0 Ports Closed
1054 Ports Stealth
---------------------
1056 Ports Tested
NO PORTS were found to be CLOSED.
Ports found to be OPEN were: 22, 80
Other than what is listed above, all ports are STEALTH.
TruStealth: FAILED - NOT all tested ports were STEALTH,
- NO unsolicited packets were received,
- NO Ping reply (ICMP Echo) was received.
marcrblevins
11th July 2008, 11:43 PM
So its telling you port 80 is set right, can be reached from outside.
Is your website pages under /var/www or /home/someusername/public_html?
If its under /home/username/public_html, you can use the forum's search for public_html. There was a thread about it yesterday and the day before. Very handy.
Deonis
11th July 2008, 11:49 PM
It is under /var/www/html/username
marcrblevins
11th July 2008, 11:52 PM
Can you run the following:
su -
ll /var/www/html
ls -Z /var/www/html
ll /var/www/html/username
ls -Z /var/www/html/username
getsebool -a | grep http
Deonis
12th July 2008, 12:04 AM
[root@localhost ~]# su -
[root@localhost ~]# ll /var/www/html
total 4
drwx--x--x 14 root root 4096 2008-07-07 21:14 denis
[root@localhost ~]# ls -Z /var/www/html
drwx--x--x root root unconfined_u:object_r:httpd_sys_content_t:s0 denis
[root@localhost ~]# ll /var/www/html/denis
total 264
drwxrwxrwx 10 root root 4096 2008-07-07 15:32 administrator
drwxrwxrwx 2 root root 4096 2008-07-07 15:32 cache
-rwxrwxrwx 1 root root 99938 2008-01-25 20:47 CHANGELOG.php
drwxrwxrwx 18 root root 4096 2008-07-07 15:33 components
-rwxrwxrwx 1 Denis Denis 2544 2008-07-07 21:14 configuration.php
-rw-rw-r-- 1 Denis Denis 2637 2008-07-07 16:08 configuration.php~
-rwxrwxrwx 1 root root 4251 2007-07-25 00:00 configuration.php-dist
-rwxrwxrwx 1 root root 3429 2008-01-25 20:46 COPYRIGHT.php
drwxrwxrwx 2 root root 4096 2008-07-07 15:32 editor
-rwxrwxrwx 1 root root 0 2008-06-21 17:58 error.log
-rwxrwxrwx 1 root root 3534 2008-01-25 20:47 globals.php
drwxrwxrwx 3 root root 12288 2008-07-07 15:33 help
-rwxrwxrwx 1 root root 4829 2007-07-25 00:00 htaccess.txt
drwxrwxrwx 6 root root 4096 2008-07-07 15:31 images
drwxrwxrwx 10 root root 4096 2008-07-07 15:33 includes
-rwxrwxrwx 1 root root 5223 2008-01-25 20:46 index2.php
-rwxrwxrwx 1 root root 8491 2008-01-25 20:46 index.php
-rwxrwxrwx 1 root root 4376 2008-01-25 20:47 INSTALL.php
drwxrwxrwx 2 root root 4096 2008-07-07 15:33 language
-rwxrwxrwx 1 root root 17977 2008-01-25 20:46 LICENSE.php
-rwxrwxrwx 1 root root 710 2008-01-25 20:46 mainbody.php
drwxrwxrwx 4 root root 4096 2008-07-07 15:33 mambots
drwxrwxrwx 2 root root 4096 2008-06-23 06:00 media
drwxrwxrwx 2 root root 4096 2008-06-23 06:00 modules
-rwxrwxrwx 1 root root 2474 2008-01-25 20:46 offlinebar.php
-rwxrwxrwx 1 root root 4929 2008-01-25 20:46 offline.php
-rwxrwxrwx 1 root root 709 2008-01-25 20:46 pathway.php
-rwxrwxrwx 1 root root 286 2007-07-25 00:00 robots.txt
drwxrwxrwx 5 root root 4096 2008-06-23 06:00 templates
[root@localhost ~]# ls -Z /var/www/html/denis
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 administrator
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 cache
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 CHANGELOG.php
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 components
-rwxrwxrwx Denis Denis unconfined_u:object_r:httpd_sys_content_t:s0 configuration.php
-rw-rw-r-- Denis Denis unconfined_u:object_r:httpd_sys_content_t:s0 configuration.php~
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 configuration.php-dist
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 COPYRIGHT.php
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 editor
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 error.log
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 globals.php
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 help
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 htaccess.txt
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 images
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 includes
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 index2.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 index.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 INSTALL.php
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 language
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 LICENSE.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 mainbody.php
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 mambots
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 media
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 modules
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 offlinebar.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 offline.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 pathway.php
-rwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 robots.txt
drwxrwxrwx root root unconfined_u:object_r:httpd_sys_content_t:s0 templates
[root@localhost ~]# getsebool -a | grep http
allow_httpd_anon_write --> off
allow_httpd_dbus_avahi --> off
allow_httpd_mod_auth_ntlm_winbind --> off
allow_httpd_mod_auth_pam --> off
allow_httpd_sys_script_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_network_connect --> off
httpd_can_network_connect_db --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> on
httpd_ssi_exec --> off
httpd_tty_comm --> on
httpd_unified --> on
httpd_use_cifs --> off
httpd_use_nfs --> off
marcrblevins
12th July 2008, 12:16 AM
First one to do is:
su -
cd /var/www/html
chmod 755 denis
Try your webpage now. Does it work?
Now the directories within the denis directory should be chmod 755 while the files itself need to be chmod 664.
Cause it appears to me that it was chmod 777 all over the place. That is bad.
May I ask how did you get those files into /var/www/html to begin with? ftp? sftp?
Deonis
12th July 2008, 12:41 AM
thanks for reply. I just use MC as root to copy web in to this folder from my home folder. I do not really know how to set all files in a folder in mode 664?! and seems like nothing in manual to chmod about it.
marcrblevins
12th July 2008, 12:48 AM
Are you using 'su -' its required.
chmod is part of coreutils.i386
Start your terminal adn try:
su -
yum install coreutils.i386
Then try the following while still in su - session.
cd /var/www/html/denis
chmod 664 *
chmod 755 administrator
chmod 755 cache
chmod 755 components
chmod 755 editor
chmod 755 help
chmod 755 images
chmod 755 includes
chmod 755 language
chmod 755 mambots
chmod 755 media
chmod 755 modules
chmod 755 templates
Now test your webpage.
Deonis
12th July 2008, 12:59 AM
Soorry. I thought a way exist to change permission of folder all together. You did my job ! :)
So I did, and it did change anything on my web.
[Denis@localhost html]$ sudo chmod 755 denis
[Denis@localhost html]$ cd denis
[Denis@localhost denis]$ sudo chmod 664 *
[Denis@localhost denis]$ su
[root@localhost denis]# chmod 755 administrator
[root@localhost denis]# chmod 755 cache
[root@localhost denis]# chmod 755 components
[root@localhost denis]# chmod 755 editor
[root@localhost denis]# chmod 755 help
[root@localhost denis]# chmod 755 images
[root@localhost denis]# chmod 755 includes
[root@localhost denis]# chmod 755 language
[root@localhost denis]# chmod 755 mambots
[root@localhost denis]# chmod 755 media
[root@localhost denis]# chmod 755 modules
[root@localhost denis]# chmod 755 templates
[root@localhost denis]#
Deonis
12th July 2008, 01:05 AM
Another try: So I changed a permissions of the folders and files but as I said it did not help much to me!
some Ideas ?!
marcrblevins
12th July 2008, 01:09 AM
I tried your site. Now I see what you are saying.
http://localhost/denis/images/M_images/rating_star_blank.png
Does this file exists?
ll /var/www/html/denis/images/M_images/rating_star_blank.png
marcrblevins
12th July 2008, 01:12 AM
Your site is looking better now, what did you do?
marcrblevins
12th July 2008, 01:15 AM
Check your Chemistry page.
http://dsn.my-place.us/mambots/editors/tinymce/jscripts/tiny_mce/ is missing.
Deonis
12th July 2008, 01:21 AM
Thank you very very much it works!!!! Now everything is working just fine I also change configuration.php -> mos_config_life_site = http://localhost/denis to http://dsn.selfip.com.
Thanks for help Good Sir !!!!
as for your question Yes file exist !!!!!!
Thanks again !!!!
Deonis
12th July 2008, 01:28 AM
Ups ?!?!?! May I ask you how come you know that my "tiny mce" is missing ???? and how come you know that I had a web site on dsn.my-place.us???? my domain now is dsn.selfip.com
marcrblevins
12th July 2008, 01:32 AM
When I saw your website running ok up front, I selected Chemistry and I was seeing RED check marks, no pictures. So I right click on the mouse, selected Properties. It shows you the link for that pictures.
Deonis
12th July 2008, 01:37 AM
AAAAA ok. Thanks allot Marc !!!
if you will need a help one day tell me!!
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.