Please Help
Moderators: Developers, Moderators
Please Help
I upgraded my database to version 5.0.18 on mysql and after doing so I restored the data. Everything went well but now when I try to connect to my cacti server through my web interface I get page cannot be displayed. What else do I need to change or look at. Mysql administrator shows my database and it looks good. I have rebooted and restarted apache with no luck. Thanks
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What version of cacti are you running?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
There is something about turning on old database support in mysql 5.x that you need to do.
I'm sorry, I don't recall the post where I saw someone talking about that.
I'm sorry, I don't recall the post where I saw someone talking about that.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Here is my current setup:
PHP5
MySQL 5.0.18
Cacti 0.8.6h
Net-snmp 1.2x
RRD Tool 1.2.10
Windows 2000 Server SP4
IIS 5.0
Everything was working fine until I updated mysql from 5.0.7beta to 5.0.18. The upgrade went without any errors, afterwards I got page could not be displayed from the webinterface. I reinstalled apache 2.x and I got to index of / page. I couldn't figure out why or how to change it so I decided to install IIS and use that instead. Now I get the following error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Host 'somename@domain.com' is not allowed to connect to this MySQL server in C:\Inetpub\wwwroot\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 355
PHP has encountered a Stack overflow
Any suggestions please?
PHP5
MySQL 5.0.18
Cacti 0.8.6h
Net-snmp 1.2x
RRD Tool 1.2.10
Windows 2000 Server SP4
IIS 5.0
Everything was working fine until I updated mysql from 5.0.7beta to 5.0.18. The upgrade went without any errors, afterwards I got page could not be displayed from the webinterface. I reinstalled apache 2.x and I got to index of / page. I couldn't figure out why or how to change it so I decided to install IIS and use that instead. Now I get the following error:
Warning: mysql_pconnect() [function.mysql-pconnect]: Host 'somename@domain.com' is not allowed to connect to this MySQL server in C:\Inetpub\wwwroot\cacti\lib\adodb\drivers\adodb-mysql.inc.php on line 355
PHP has encountered a Stack overflow
Any suggestions please?
I think I'm getting closer to having this fixed. Now when I go to myserver@mydomain.com I get a directory listing of the files. I've inserted an image. What am I doing wrong?[/img]
- Attachments
-
- indexof.JPG (44.49 KiB) Viewed 2801 times
1) Your MySQL error can be fixed by adding the following to your my.ini file
#Use old password encryption method (needed for 4.0 and older clients).
old-passwords
2) I'm not an apache user, but I believe your getting the contents of the folder listed because of a misconfiguration of the <directory> option.
#Use old password encryption method (needed for 4.0 and older clients).
old-passwords
2) I'm not an apache user, but I believe your getting the contents of the folder listed because of a misconfiguration of the <directory> option.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Yep - sounds like the problem as Apache doesnt have it's default document type setup in the conf file and therefore just indexed the default directory...BSOD2600 wrote:1) Your MySQL error can be fixed by adding the following to your my.ini file
#Use old password encryption method (needed for 4.0 and older clients).
old-passwords
2) I'm not an apache user, but I believe your getting the contents of the folder listed because of a misconfiguration of the <directory> option.
The problem with the error message can be resolved by allowing the localhost and the full DNS of your server to connect,
Lard
---- lard007skype ----
My experience
I had the same issue you have, or had, and this is how I resolved it:
cd /www/conf
cat httpd.conf | grep DirectoryIndex
There should be only one entry there more or less like next line:
DirectoryIndex index.php default.htm default.html index.html index.html.var
You can edit the file with vi:
vi httpd.conf
then find the first time DirectoryIndex appears, if you are not an experienced Lunix user, just press Esc, the i. You are in Insert mode, change the line to what I told you.
save and exit.
Try your page, otherwise, make sure there is a index.php in the cacti directory.
That should resolve it.
cd /www/conf
cat httpd.conf | grep DirectoryIndex
There should be only one entry there more or less like next line:
DirectoryIndex index.php default.htm default.html index.html index.html.var
You can edit the file with vi:
vi httpd.conf
then find the first time DirectoryIndex appears, if you are not an experienced Lunix user, just press Esc, the i. You are in Insert mode, change the line to what I told you.
save and exit.
Try your page, otherwise, make sure there is a index.php in the cacti directory.
That should resolve it.
I forgot
There should only be one DirectoryIndex line in the httpd.conf file, if there are two or more, just delete them leaving one.
Who is online
Users browsing this forum: No registered users and 5 guests