View Full Version : SEO and can't get out!
happz
31st July 2008, 05:17
Hey guys, i am having problems. I have a pretty new install of centos5.2 with ispconfig. i have about 15 domains as of today running. all are php sites with the possibility of seo config. I was at one time able to just add to the apache directive within ispconf the setting that falko instructed me to do which was to give "All" to Allowoverride. that would allow my social sites to display nice SEO link via .htaccess ..i.e. mysite/username but since reinstalling OS (centos5.2 and newer ver os ispconfig) when i add that line it is none effective. So my work around was to go to /etc/httpd/conf/Vhosts/Vhost_ispconfig.. and edit it from there to add the All rather than none. Well, this works! i was so happy. Went to my site..well, after restarting httpd and the seo friendly worked fine. Well, then after sometimes a few hours and sometimes the next day guess what? my seo won't work...so i went back to the file i mentioned and guess what? All the settings are back to "none". Why?
Who, what and where should i go to resolve this?
happz
till
31st July 2008, 08:54
First, never edit thr Vhost_iapconfig.conf file.
If you want to set AllowOverride All for all sites, change the setting at the end of the apache2.conf or httpd.conf file before the include of the Vhost_ispconfig.conf file. It is defined there for the normal websites and for the user websites.
happz
31st July 2008, 20:35
when i made the change where i described it made it work but then lost the setting in time. i did notice that when i make a change from ispconfig that the changes show in this file so why can i not edit this file? let me know what you think till!
thanks !
till
1st August 2008, 00:25
You can not make per site changes in httpd.conf, only global changes.
If you want to make a change per site, add the configuration directives in the apache directives field in ISPConfig.
happz
2nd August 2008, 01:16
Yes, it is true. I add the line in ispconfig and it does not work. i reboot but no go. i had the line to just that site in vhost folder's conf file and it works but then go to bed, wake up and changes have reversed over night. here is copy/paste:
######################################
# Vhost: www.!@#$!@#$!@#$:80
######################################
#
#
<VirtualHost i.p.a.d.d.r.e.ss:80>
<Directory /var/www/web6/web>
AllowOverride All
</Directory>
ServerName www.twebnamehereTill.com:80
ServerAdmin webmaster@again,hidden.com
DocumentRoot /var/www/web6/web
ServerAlias oops.com
DirectoryIndex index.html index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias /cgi-bin/ /var/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
<IfModule mod_ruby.c>
<Directory /var/www/web6/web>
Options +ExecCGI
</Directory>
RubyRequire apache/ruby-run
#RubySafeLevel 0
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
</IfModule>
<IfModule mod_python.c>
<Directory /var/www/web6/web>
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride None Order allow,deny
allow from all
in the bold...that is what i change and next day it is back to "none". Now you will notice that the begging of this had what i put into ispconfg but it doesn't do anything though it is the correct code..the line above must take authority on how it goes......what's your thought again? and i know you said to change this info somewhere else but when i did it too did nothing.
happz
till
2nd August 2008, 10:13
..that is what i change and next day it is back to "none".
Thats the correct and expected behaviour. The file Vhost_ispconfig.conf is NOT for manual editing.
What exactly did you enter in the ispconfig directives field that did not work. Please post the exact code, line by line.
allmywebsite1
2nd August 2008, 13:44
pls check the server config files something wrong with your configuration
happz
3rd August 2008, 00:37
this is what i entered into ispconfig directive:
<Directory /var/www/web6/web>
AllowOverride All
</Directory>
Which is why it shows in the begining. I do agree that i have a bad config somewhere. How can I re-do or resolve ispconfig problem?
Is this server (centos mis-config'd) or ISPConfig problem?
thanks!
till
3rd August 2008, 11:58
If you add this in the apache directives field and checj the Vhost_ispconfig.conf a few minutes later, does it got written into the vhost?
happz
4th August 2008, 02:11
Yes, it shows just as in this thread...you can see that it puts that in the begining but it is non effective. I am installing another server today and i will see how this one goes. Where in my server could be the problem?
happz
4th August 2008, 02:11
If you add this in the apache directives field and checj the Vhost_ispconfig.conf a few minutes later, does it got written into the vhost?
yes. but non effective.
till
4th August 2008, 11:29
Reinstalling the server will most likely not help.
Please try to define it in the apache2.conf file outside of the vhost to see if this makes a difference and then reload apache.
happz
5th August 2008, 01:33
Reinstalling the server will most likely not help.
Please try to define it in the apache2.conf file outside of the vhost to see if this makes a difference and then reload apache.
Okay but where is the this fill located? Can you give me the path i.e. /etc/... I have been editing httpd.confg file in the past. Where is the apache2.conf file?
falko
5th August 2008, 16:49
On Debian/Ubuntu it's /etc/apache2/apache2.conf.
happz
5th August 2008, 17:52
On Debian/Ubuntu it's /etc/apache2/apache2.conf.
So i have centos and that would mean that he is telling me to edit httpd.conf correct? If so, i will say that i did make the change there but it doesn't fix my issue.
falko
6th August 2008, 15:08
So i have centos and that would mean that he is telling me to edit httpd.conf correct?
Yes.
Did you restart Apache?
Are there any errors in Apache's error log?
happz
9th August 2008, 06:56
falko, i did restart apache. Now, i see many logs but maybe i'm in the wrong spot. centos 5.2, what is the path to the apache logs?
thaks
happz
falko
10th August 2008, 12:59
The overall logs are in /var/log/httpd, and then there are site-specific logs for each web site, e.g. in /var/www/web1/log.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.