Jump to content
xisto Community

TavoxPeru

Members
  • Content Count

    865
  • Joined

  • Last visited

Posts posted by TavoxPeru


  1. I dont know if the hosting package matters but the package i have supports both databases Postgress and MySql so i check my cpanel to verify and it works fine, i can create databases, users, etc. Then i check the phpinfo() function and sorprise, Postgress support isnt installed, so i try to load it dynamically with the dl() function and this function is disabled for security reasons, so there are two problems here:

    Php support for Postgress databases is not installed.

    The order of the parameters are incorrect, check the function pg_connect:

    int pg_connect ( string host, string port, string options, string tty, string dbname )

    The solution, simply use MySql or if its absolutely necessary request the Postgress support of php.

     

    Best regards,


  2. Quatrux sorry for dont understand my post, what Niran says is correct, i want to do that, simply add my files for my newly subdomain and vujsa thanks for your reply.

     

    Now, i will explain better what im trying to do following the example given by vujsa.

    Create a Subdomain (done and is easy as simple insert the name and submit).

    subdomain name: intivoyage

    subdomain folder: /home/username/public_html/intivoyage/


    Add files to the subdomain. What im trying to do is to assign the folder /home/username/public_html/alex/ to be the default folder of this subdomain. But as vujsa said it is not possible because of the server.

    So, does the only thing that i can do is moving all the files in /home/username/public_html/alex/ to /home/username/public_html/intivoyage/????

    Or, can I use some kind of redirection either with an .htaccess file or with the cPanel????

     

    Best regards,


  3. I hadn't had to run a sql file before. So I didn't realize I was doing it wrong. The problem was in my method.
    In the box for the sql file in PHPMYADMIN I was entering the url instead of copying and pasting the contents of the file. Once I got that figured out it worked just fine.

    :)All part of the learning curve!

    Dont worry gin, as you say is all part of the learning curve and i'm sure that everybody still making errors including myself, for example, yesterday i spend 1 hour to debug a simple error that i made in an sql select -i forgot to put a single quoute- and my php script dont show anything.

    I think that we still learn everyday.

    Best regards,

  4. Hi all,

    Please check whether you can send mail using php! :P

    I cant send mails after the cPanel upgradation process! :P

    I dont know whats happened with that!!

    Is it for my account only or all are having the same problem??

    Please guys, check it now and confirm it!

    Niran

     

    Hi, you are right, i just check if i can send mail using php and i confirm that it dont works. :P

     

    Best regards,


  5. thanks to the admin's to fixing the CPanel, i'm 100% sure that everything is ok and no data lost, i just test if its works and everything is ok with the exception of the phpMyChat, it shows that the installation is complete and sucessfull but when i try to access it shows a 404 error page and also it only creates the database without any table.Best regards,


  6. OK, you did a webserver install, this was the job your customer asked you to do.Now, your customer needs a security audit.
    Security people are really strang people, which are rather paranoid, and spend their time thinking how a hacker could enter their customer site.
    So, you should really ask a security skilled guy to look at this network. The only thing you can tell your customer is "ask a specialist". And this specialist cannot be yourself.
    This is really a matter of philosophy.
    Because Apache is in the open world, everybody will be happy when everybody will be able to access everything everywhere in the word.
    Security people are very closed people. Their main dream is closing everything, so no intruder can come in.

    i agree with you absolutely.

    For instance, you disabled Microsoft Windows Firewall. This is OK for testing purposes : if you shutdown the firewall and your applican works, then you startup your wirerall and your application does not work any more, this means that your application is blocked by the firewall.Nice, great, for testing purposes you did the right thing, now you know that the firewall blocked your application. But you cannot leave the things like that, because if you leave the firewall down you leave your site without any protection.Of course, everybody know that Microsoft Windows firewall is a very weak protection ; however, it's a kind of protection, and if you remove it you have no protection at all.
    No, the correct way is : now you know that the firewall blocks the port 80 on your apache server, the next step is to turn the firewal on again, and ask the firewall to let you access the port 80 on the apache server. Even better thought, if your customer has very few computers (let's say ten computers with fixed IP address), you should ask the firewall to open the apache 80 port for only the computers which are supposed to access apache, and block all the other ones.
    The next step is to ask your customer to buy a "real" professionnal firewall. You will be really surprized if you read the firewall logs, how many computers from all around the world (japan, Canada, Fidji, etc...) try intering your computer.

    Yeah, you are right again, is incredible how many computers try to access a computer, i know it very well, what i dont really know is how to configure the microsoft firewall that comes with XP because i dont work with XP but i dont think it would be complicated, i hope that it compared with zone alarm -i work with sometime ago- will be more easy.

    So, for you own knowledge, you could start reading the Xisto forum network security pages, and install on your own PC a firewall like the free part of ZoneAlarm firewall.And, for your customer, give the only professional advice you could imagine : "please rent a network security specialist".
    If you try by yourself and somebody hacks your customer site, the customer will say that you did a bad job.
    If you tell the customer to rent a real network specialist, and the customer refuses, then an accident is the responsability of the customer, not yours.
    Regards
    Yordan

    Thats it, thanks a lot for your advices and i think that for others it will be helpful as well.

    Best regards,

  7. This topic i think was posted in another forum but dont remember exactly where :P but what i remember is the way you do it :P here is it:

    open the regedit tool, go to: start menu\run\regedit.exe and hit enter or click ok.

    Open HKEY_LOCAL_MACHINE\system\currentcontrolset\control\Session Manager\Memory management

    On the right hand side right click on the value ClearPageFileAtShutDown if there exists, if you dont see it then right click in the open section and add a DWORD value and name it ClearPageFileAtShutdown.

    Change value to 1.

    Finally to take effect simply Reboot your machine.

    Now, first of all i recommend you that backup your registry first, because if you do something wrong while editing the registry you can damage your system, and second notice that the shutdown process may be higher for slower computers.

     

    Best regards,


  8. Exactly like that.Yordan

    Thanks, yesterday i went into my clients office and test it to see what happens and happilly it works without any problem, but know comes other questions all related with the security, because this company access internet through its network and this machine acts as a webserver does i need something else to check and configure to avoid any kind of trouble like a hacker, virus, dos attacks, etc?????

    BTW, i know that XP comes with a firewall but i read in another forum that is better to disable it to work with apache, so when i install the apache i disabled it -the firewall- do you know if i need to reconfigure it to work with my application because of the security as i say before.

    Best regards,

  9. I know that all want to opt for a free hosting company especially Xisto but equally many people want to host their own website, totally free of cost with all sort of supports and software support like "ASP", "FTP", "phpMyAdmin", "MySQL", "phpBB" etc etc, and they simply do not know how to do it so they opt for a free web hosting company which displays irritating ads on the limited web space with a freehostingdomain.freehostingcompany.com/freemembers/you and also do not give you almost any support, now forget all that , you can host your own site on your own computer.
    Requirements:
    1. High speed internet connection (atleast a broadband)
    2. Respectable computer (you will surely not need an itanium or xenon server, but atleast a P4 with 512B RAM)

    You will have to:
    1. keep your pc 24 hours on (after all you are the server and its your responsblility to maintain uptime, a few hours downtime does not matter if you are just hosting a very small site for your friends)
    2. dedicate the computer to hosting ( you cannot play games and expect people to view your site simultaneously)

    well you got every thing then lets go

    step 1: web server
    you will need a web serving software to listen to the HTTP ports and serve the pages to requests

    i recommend a simple software like Abyss and i will demonstrate this tutorial with it.

    1. download abyss from here http://aprelium.com/abyssws/download.php

    2. install it (its very easy and self explanatory)

    3. now you will see a blue colored icon in you system tray right click and click console, you will be asked for username and password, enter the credentials you gave when abyss was getting installed.

    4. your hosting directory will be %abyss path&\htdocs
    eg if you choose the default option it will be C:\Program Files\Abyss\htdocs

    5. paste your site files and all the directory structure here. (it should have atleast one index.html page)

    6. now to view you page wich is hosted on your computer you have to enter your ip (not 127.0.0.1, its your localhost ip, and you cannot view pages over the net with this ip, so do not go around giving this ip to your friends.)
    see the http://forums.xisto.com/no_longer_exists/ page for more info

    7. go to http://www.abyssunderground.co.uk/ip.php to find out your ip now copy paste the real ip in you browser and voila you have your website ready

    8. now to give some respectable name go to freedomain.co.nr and register so that you have some site such as you.co.nr

    9. now enter you.co.nr and you will be serving pages, should your ip change go the member page on freedomain.co.nr and get the dynamic ip update link

    step 2: installation of server support

    1. go to http://www.abyssunderground.co.uk/ and install all the available support through the self explanatory tutorials.

    2. remember to do this step after installing php
    http://forums.xisto.com/no_longer_exists/

    3. you now have PHP, MySQL, phpMyAdmin, Ruby, Perl, Python, FTP, phpBB, and ASP support for you site

    you can enhance you site to the max and the the capability of enhancement are high,

    opt for an more professional web server like Apache if you plan to serve better pages...

    work on Linux servers they are more secure and useful.

    *** MODS PLEASE DELETE THIS THREAD IF YOU FEEL ITS USELESS, SORRY FOR THE EXTERNAL LINKS THEY WERE NECESSARY ***

    Last year i have the oportunity to test the abyss server but please tell me something, does the abyss webserver is good enough to install as a production server or as only a development server?

    best regards,

  10. Great ! Congratitulations !......Maye a workaround for your future clients could be to add the server's IP in the local hosts file on the PC's which cannot resolve automatically the server's name. Maybe you could just try this for your next client installation, and tell us the results.

    Thanks, and what you say is something that i think after i solve this problem, so tomorrow when i visit my client i will try this solution to see what happens.

    Tell me something, the file that you mention is this one???

    SYSTEMDRIVE:\SYSTEMROOT\System32\Drivers\etc\hosts

    and if i'm right, in this file i only need to put the ip number and the name of the machine, something like this???

    xxx.xxx.xxx.xxx name_of_the_pc_that_acts_as_webserver

    Best regards,


  11. It should work as localhost, because localhost is the system which will look inside the database in order to perform the login. However, don't you have something designing too precisely the original system, for instance the cookie domain and the cookie path ? Of course, these are the problem I usually have with phpbb, probably yours are quite different. Yordan


    Hi, thanks for your interest, well, i dont touch them in any manner, neither in my development systmen or at my client machine that acts as the webserver. Today i go to my clients office and i found the solution, i simply change the direct access properties by modifiying its URL, instead of /name i only put /machine and now everything works fine. :P Never wonder that the solution of this topic was so easy and simple. Best regards,



  12. Hi, i develop a web application that runs perfectly on my development machine -Win 2kPro- where i have Apache, Php and MySql installed. A few days ago i went to my client to install it in a Win XP machine that will act as the webserver, so i proceed to install the Apache 2.0.59 webserver, Php 5.1.x and MySql 5.x and my web application and everything installs and works fine without a problem. Then, i proceed to run my web application to test it and also to know if something gone bad, happily everything is fine and works perfectly :) As you thought this web application will run in a network environment so then i proceed to install in every machine -remote machines- that will access this machine -the webserver- a simple direct access, but as usual nothing is perfect and problems starts to show. When i access my web application via this direct access nothing happens, these remotes machines don't connect to the webserver and only shows a 404 error page, first i try with the URL LOCALHOST/my_web_application_name/ because this works at the webserver, and.... logically it doesn't gonna work at the remote machines because localhost refers only to the webserver so then i change the URL to name and it shows up my web application login screen :) so i proceed to login but nothing happens :D and everytime i try to login it always show me again the login page. does someone knows how to configure this direct access to get connected to the webserver or knows an URL that shows how to do this????? Best regards,

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.