Visit DeltaScripts
Manual Overview

PHP Classifieds 7

Download and Install

Grade 4 after 63 votesGrade 4 after 63 votesGrade 4 after 63 votesGrade 4 after 63 votesGrade 4 after 63 votes
Last updated: 2006.05.27

Get the latest version from the download page, and unpack it into your local computer. If you are using Winzip, make sure that you select "Use folder names", as the image on the left shows.

INSTALLATION

  1. Create a database in phpMyAdmin or telnet. Normally, if you are on a shared server which is most common, this database is already created for you. To install this program you need your database name, your db user name, db password, and your MySql host name. Host name can be localhost or a name like mysql.isp.com.

     
     
  2. Now upload local files to your web-server. Be default, WinZip extracts these files to a directory called classifieds. Rename this directory to whatever you want, later this can“t change.

     
     
  3. If you have Linux, you will need to set write permissions to two directories:

    /classifieds (root catalog)
    /classifieds/admin

     
     
  4. To do this on Linux servers, you can do it in one of two ways:

    1. Through FTP
    If you have a ftp client like cute-FTP, right-click the directories and select CHMOD. You will get a dialog box that says "Change file attributes". Type in 777 in the "Manual:" text field and click OK. If you get Internal Server Error when accessing the /admin directory later, the problem might be that your host does not allow higher permissions than 755. If so, type in 755 instead.




    2. Through SSH / Telnet / Shell
    To do this in Telnet/SSH, go to classifieds directory (cd /home/user/public_html/phpclassifieds) and type in the lines below, followed by enter for each line:

    chmod 777 classifieds
    chmod 777 classifieds/admin

     

    Important: If you have a Linux system with PHP, and have PHP running as cgi-binary (PHP Suexec) instead of the most common php-module, you need to set chmod to chmod 755 on the above two catalogs. You will also need to edit install.php and change the 0777 to 0755. If you do not do this, you will get Internal Server Error.

    Now that file permissions are set, it is time to run the installer.
    Access the installation with your web-browser, point it to http://www.domain.com/classifieds.

     
     
  5. You will now be confronted with license rules. Read them! Click Next.

     
     
  6. Now, a list will appear with file permissions you have. At the button, the script will tell you if you have made an error when doing chmod. If there are no errors (green text), chmod is done correctly, otherwise you must check your permissions (chmod) again. The script will show which directory does not have correct permissions. Note: Even though the program will show wrong permission on other directories than /classifieds and /classifieds/admin, you do only need to set permission on those two catalogs/directories. The program will be able to create all needed directories if you do that and push refresh.
    Click Continue.

     
     
  7. The next screen will create your database file which will make sure that you can connect to MySql. Enter host name (localhost), db user name, db password etc. When you are done, press the button. If this worked, it will show "db.php created". If you get an error in this or the next screen, such as "Couldn't connect to MySql database", you have either given the wrong host name, database name, user name or password (or your MySql might be down). Click the back button in the browser and try again.

     
     
  8. Now, you must choose the name of the tables that php classifieds will use. This is up to you. Note that a table named "template" will always be created in addition. Click Next when finished.

     
     
  9. If everything goes OK and there is no conflict with an existing database, you will get a Success message.

     
     
  10. Now you will get the settings-screen for path. Check that the path to your install is given correctly. This is VERY important. The path should be the full path. The full path is something like /home/username/public_html/phpclassifieds, or /usr/www/htdocs/phpclassifieds. This varies from host to host. Also, type in your domain name withouth http:// and finally your emailaddress. You will see a list of suggested tablenames. Let them be, and Click Continue. Configuration file is now created.

     
     
  11. The program is now installed. But you are not done yet.

    Follow the link to go to http://yourmain.com/classifieds/set.php. You will be redirected to a login page.

    Default username/password is:

    User: admin
    Password: admin

    In the menu to the left, visit General Settings and push Save. Then go to Option Settings and push Save there too. At last, do the same with Payment Settings.

    If you want to use the backup program, you should password-protect your config/backup directory. Most hosts have control-panels where you can create password protection on a certain catalog. If you have Cpanel, such a tool is included inside the control-panel. By not doing this, people can download your backup with users and passwords.



  12. Important: Delete Install.php, and set permission on Classifieds and Admin dir to chmod 644. Then, you are done!

    You should now get this when you log in:

Articles in this category

  1. Upgrading

Comments from our users

No user-contributed comments submitted so far.
Do you want to be the first?

Powered by PHP ManualMaker from DeltaScripts 2007