Create Dynamic Database Driven CSS Navigation Menus with Dreamweaver, PHP and MySQL

to ausername @ localhost recognized by ‘theuserspassword’ with offer option


Let us have a look in the packages available.

# pkg-get -a

grep apache

With this tutorial we are setting up apache2

# pkg-get use apache2

Permit this to run for a short time and install all vital software. It could take some time. Just enter Yes towards the huge most of questions.

Since we used pkg-reach install apache2 it ought to be virtually just all set.

Let us first produce a folder for hosting our web files. Since Sun Solaris loves to put most your disk space throughout install within the /export/ partition, I’ll produce a world wide web folder inside your /export folder.

# mkdir /export/world wide web/

Now let us customize the config file that is situated here:

party-3. 00# emacs /opt/csw/apache2/etc/. conf

Alter the variables you need to set. I virtually just set the ServerName and ServerAdmin variables and enhanced the document root to another place then your default. Look for the key phrases to discover the aspect of the config file to alter.

DocumentRoot “/opt/csw/apache2/share/htdocs”

My spouse and i transformed this to DocumentRoot “/export/world wide web”

And you’ve got to alter your directory listing furthermore

# This should actually be transformed to anything you set DocumentRoot to


change to

Let us edit the types of files we’ll serve using the web server. Search regarding DirectoryIndex. It ought to seem like this:

DirectoryIndex catalog. html

let us then add other pages to satisfy.

DirectoryIndex catalog. html index. php index. htm

You can include your virtual hosts around the finish of the file as you desire too. Much more about this later.

Now let us restart the apache2 server.

let us check to ensure it’s loaded

# svcs cs

grep apache

When the response you receive may be the following then it is already running, make certain it is the cswapache2 service that’s running.

online 18: 03: 03 svc: /network/http: cswapache2

When not enabled and running it is best to problem the next command and appearance again:

# svcadm allow -rs cswapache2

Since we made changes around the . conf file a lot more problem a restart demand.

# svcadm reboot cswapache2

You should be all set to go. Because the directory lacks the files inside it nonetheless, if you want to your browser and kind the Ip for your Solaris server you need to look for a response with something by doing this:

Index of and

Congratulations! You may have now become your apache server going.


Now let us install php5.

# pkg-get -i php5

# pkg-get -i ap2_modphp5 mod_php5 php5_curl php5_gd php5_mcrypt php5_mysql php5_mysqli phpmyadmin

Permit this install and be sure you hit “Y” to follow the installation.

Let us today configure our configuration report.

# emacs /opt/csw/php5/lib/php. ini

You will have to uncomment the next line (just get rid of the semicolon):

extension=php_mysql. dll

Change these 3 lines to complement the below lines within the php. ini file

max_execution_time = 6000 Maximum execution duration of each one of these script, within minutes

max_input_time = 6000 Maximum time period each script may spend parsing request data

memory_limit = 128M Maximum quantity of memory a script might consume

Once you make any changes towards the php. ini file you will have to reboot the apache server.

Leave a comment

Your email address will not be published. Required fields are marked *