How to enable php
I am trying to enable php on my macbook with Lion 10.7. I have found and changed the http.conf file, but I can't save the changes. My computer tells me I don't have permission, but it doesn't give me any pop up to confirm my permission. Can anyone help.
Well, first make sure that you are accessing the PHP through the browser with an URL that begins with 'http' or 'https'. If you access it through Finder, or opening it directly in your browser, the web server (that would normally process the PHP script), is completely bypassed.
If that's not the issue, open Terminal.app. Type
grep -i php /etc/apache2/httpd.conf
The result should be
{quote}
LoadModule php5_module libexec/apache2/libphp5.so
{quote}
If you see a '#' at the beginning of the line, the PHP module was disabled. You need to edit /etc/apache2/httpd.conf and remove the '#' (in the terminal, type 'sudo nano /etc/apache2/httpd.conf').
While you are at it, also do
grep -i apache2/other /etc/apache2/httpd.conf
... and if it doesn't look like this
{quote}
Include /private/etc/apache2/other/*.conf
{quote}
Edit the file and add that line.
If that's OK, then type
cat /etc/apache2/other/php5.conf
That should look like this
{quote}
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
{quote}
... if not, edit that file and make it look like it is above. Once all that is done, go to System Preferences, click on the Sharing icon, and uncheck Web Sharing, then check it again a couple of seconds later (to restart the web server).
Similar Messages
-
How to enable php ziparchive extension in solaris 10
Hi,
I have to enable php_zip.so extension for my phpexcel .How could i do this without re configure php ?If the extension=zip.so line is not in php.ini file then you must configure php to accept this extension and restart the webserver.
-
How to enable php, mysql, and apache?
Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...
According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
Can somebody help me please.Please look at my second post. I corrected what I said:
macwiz1220 wrote:
O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*
Take a look at this article on LAMP on Leopard. -
Enable PHP Imap Extension on Lion Server (I Willing to Pay for the Service)
Can anyone teach me or know how to enable PHP Imap extension on my Lion 10.7 server?
I willing to pay for the service fee for this.
Kindly contact me asap [email protected], I need my server to have this feature as soon as possible.
I found a several blogs for this but still can't get it work exactly.
Thanks a millions!
JackI also want IMAP support in PHP on Lion Server.
I found the tutorials below:
http://www.september28.co.uk/blog/2011/11/24/php-imap-support-in-mac-os-x-lion-w ithout-recompiling-php/
or
http://blog.xeonxai.com/2009/12/03/160/
but honestly, with my limited knowledge of the command line and php installation, it's almost like trying to read chinese. I could probably follow the instructions, but if anything went wrong I'd be completely lost and I wouldn't know how to get back to square one. Looking for a "dummies" guide... -
I would like to enable php on my mac (and apache if necessary).
It needs to be simple.
I can do this on a pc (with XAMP).
I have some development with php to do?actually there are no cookies on mac's. only got CACHES:
go to Finder
choose Go (menu bar)
hold OPTION Button (keyboard)
choose Library
choose Caches -
Gatos - how to enable s-video output for ATI
i need to make s-video work on my laptop (want to connect laptop to big screen to present things - unfortunately this screen has no VGA but s-video)
in [extra] there is atitvout that should do this and also do so on my old computer (ATI mach64 chipset)
atitvout does not work on my thinkpad a31p - it does not recognize the card correctly and fails. for x.org i use the radeon driver and this works fine. it's a ATI FireGL 7800 that works fine with the "RV200" driver. but "radeon" does not have s-video output as far i know - no options how to enable s-video-out
after a long search on the internet, reading that most users that have my laptop never tried to make s-video work, i found GATOS:
under:
http://gatos.sourceforge.net/theater_out.php
there is a module that, if i understand it correctly, should make s-video work
what i don't know:
- how do you build this driver?
- how do you use it?
(anyone able to make a pkg work with newest xorg?)
nowhere documented is how to use it with xorg >6.8.0
anyone can help me?atitvout just works with the vesa driver ...
and try the option "atitvout -f t" (and remember to put the tv connected before booting)
but the gatos drivers would be much better -
How to enable smq2 automatic reprocessing
Hello
I wander how to enable smq2 automatic reprocessing in ERP system (messages are comming from xi system)check if following link helps you.
[http://esagenie.com/index2.php?option=com_content&do_pdf=1&id=49] -
How to enable oci8 plugin in RHEL5.3
Hi everyone,
I'm quite new to Oracle in Linux and had a problem.
Currently, I installed Oracle and PHP + Apache on my Red Hat Enterprise Linux 5.3 but I do not know how to enable oci extension for php.
Please help me with the simplest way !
This project is for running MapServer with ArcSDE and Oracle database. FGS is installed already.
MapServer: www.mapserver.org
FGS: http://maptools.org/fgs/
Thanks for your attentionThere is a set of unsupported PHP 5.2 RPMs that includes the OCI8 extension on http://oss.oracle.com/projects/php/
Or, if you have Linux support from Oracle (http://linux.oracle.com), you can get an OCI8 RPM pre-built for the operating system's default PHP 5.1.
Or you can use PECL to install OCI8:
pecl install oci8
See http://blogs.oracle.com/opal/2009/03/pecl_install_prompts_explained.html with the proviso that the version of PECL shipped by RH is old, so the prompts may be slightly different. -
Hello,
Is there a simple way to enable php and apache on my new imac? So I can test my website locally. Hopefully its not a lot of steps. I have seen a lot of tutorials by using google. But they involve terminal and I don't know that well to be able to mess with it. I don't want to ruin my computer. So any help would be appreciated.
Thanks,
Kash_MoneyAnd to answer your first question, "how can I use a .html extension page" see http://discussions.apple.com/thread.jspa?messageID=5850167�
which is, however, for Tiger. On Leopard, the relevant file is /etc/apache2/httpd.conf and it turns out that /etc/apache2/other/php5.conf is even more relevant for exactly what you want.
Specifically, first read the first paragraph therein for why you should do something else instead. However, the hopefully not too crazy instructions (sorry, but the only way I know how uses the Terminal and emacs, so due to your Terminal-phobia I'll give detailed instructions and hope I'm not insulting you too much), will be for what you want, not for what I think you should do. The Terminal+emacs instructions are needed because /etc/ is a hidden directory owned by root, which makes it hard to use TextEdit to edit it.
So open a Terminal , and type
sudo emacs /etc/apache2/other
emacs is a text editor that works inside the Terminal, and which, for the uninitiated, has weird key bindings. You'll probably see something like
<pre style="background: #eee">
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
</pre>
Press the down arrow key, ctrl-e, and type " .html". The file contents should now look like
<pre style="background: #eee">
<IfModule php5_module>
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
</pre>
Type ctrl-x ctrl-s to save, and then ctrl-x ctrl-c to exit.
Restart the web server, either by typing
sudo apachectl restart
or by going into System Preferences and unchecking, then checking web sharing. -
hello,
i'm using personal web sharing on os x, which still has PHP 4. i'd like to get version 5. can anyone tell me how to do this?
thanks!
CalebI have seen more folks fight to get Entropy's PHP ver5 working, and they have all given up.
Because they miss one piece of the instructions: they forget to go back into the Apache config file and disable the lines that enabled PHP 4 in the first place. Or they download the wrong version of PHP 5 for the version of Apache they have.
Otherwise, I think it's a relatively simple update if you use Marc's installer package: make sure you download the version for APache 1.3 if you're using the stock Apache that came with your Mac. And make sure you comment out these two lines in the Apache config file:
#LoadModule php4_module libexec/httpd/libphp4.so
#AddModule mod_php4.c
Those two lines don't appear together, by the way, but you can just search for them and make sure they have the "#" at the beginning.
The final step is that once you comment out the lines and install PHP5, you have to restart the Apache server. Some people forget that, too.
charlie -
Direct2D acceleration, heard it is in the b4 but how to enable it?
As the question stands is the Direct2D acceleration in this build and if so, how do you go about enabling it?
There is a lengthy discussion on Direct2D and DirectWrite, including details of how to enable them. See [http://forums.mozillazine.org/viewtopic.php?f=23&t=1775755 Direct2D & DirectWrite HW Acceleration For Minefield - Info • mozillaZine Forums] (Minefield is the code name for the development trunk builds that Firefox 4 betas come from)
-
How to preview php scripts on local/network browser?
Im teaching myself php. I just want to be able to write
simple scripts and test them to make sure they work.
How to??weazledude75 wrote:
> Im teaching myself php. I just want to be able to write
simple scripts and test them to make sure they work.
>
> How to??
You need to install a web server (preferably Apache) and PHP
on your
local computer. For Windows, Apache is available from
http://httpd.apache.org/download.cgi.
Use Apache HTTP Server 2.2.6. The
main page has a download link for Win32 Source. Don't use
that, but
click the Other Files link immediately below it, and follow
the links
for binaries and win32. The file you want is called
apache_2.2.6-win32-x86-no_ssl.msi.
Once you have downloaded it, just double-click, and install
like any
other program. When you come to a screen asking for server
information,
enter "localhost" (without the quotes) in both the Network
Domain and
Server Name fields. Otherwise, the default values are all
fine.
There are instructions for using the PHP Windows installer on
my site at
http://foundationphp.com/tutorials/php_installer.php.
Apache and PHP are preinstalled on Mac OS X Leopard, but are
not enabled
by default. To enable Apache, go to System Preferences >
Internet &
Sharing > Sharing, and select Personal Web Sharing.
Instructions for
enabling PHP on Leopard can be found on my site at
http://foundationphp.com/tutorials/php_leopard.php.
That's a brief outline. You can find much more detailed
information in
my books, the details of which can also be found on my site.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to enable a partner application for Single Sign-On?
Can someone please advise me on how to enable my existing J2EE web application for the Oracle Single Sign-On?
My requirement is i want to provide the single sign-on authentication service to my J2EE web application. For this, I would like to make my application as a partner application similar like the OracleAS Portal.
I am using Oracle 10g ( OralceAS, Oracle Infra, OID ...)
I found the following service/APIs which Oracle provides. I am not sure which one is suitable for me.
1. mod_osso ( Static)
--- In this case, I have to make a entry in mod_osso.config file to protect the URL. should I have to register the URL again through single sign on admin page ("Administer Partner Application") after make a entry in config file?
2. mod_osso ( Dynamic directive)
-- in this case, I have to modify the code by providing the directives like 401, 499.. etc. So i don't prefer this as i don't want to touch my app.
--If I go with this option, should i have to register the URL with Single sign on server through SSO admin page ( as mentioned in the above step#1) ?
3. SSO SDK
- Since it was deprecated and need java coding, i am prefer this option.
-- however, if i go with this option, i will develop code by using SDK. in this case i need to register the URL in SSO server through admin page.. am i right?
Note:- OSSO server integrated with Active Directory for the authentication.
Thanks,
-Senthilsharon38_74 wrote:
they said that our internal application needs to send a "login request" to etran via SSL with the user's information encoded in base 64 format. etran captures the HTTP header containing user authentication and authorization information, and parses the required information from the HTTP header.
My question is that how I set user information in HTTP header? From my understanding, once I am able to set the user information in HTTP header, it is in base 64 format?Your application need to act like a proxy. You can invoke a HTTP request programmatically using java.net.URLConnection. You can set request headers using URLConnection#setRequestProperty(). Also see the API docs: [http://java.sun.com/javase/6/docs/api/java/net/URLConnection.html]. You only need to know the header field name where to set the Base64-encoded value in. You need to Base64-encode the value yourself. -
How to enable excel downloading in ALV grid report.
Hi all,
How to enable excal downing in ALV grid report?
Thanks in Advance.
Siva Sankar.hi
check the following code
Example of a Simple ALV Grid Report
REPORT ZTUFI091 .
*& Report ZDEMO_ALVGRID *
*& Example of a simple ALV Grid Report *
*& The basic requirement for this demo is to display a number of *
*& fields from the EKKO table. *
*REPORT zdemo_alvgrid .
TABLES: ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select ebeln ebelp statu aedat matnr menge meins netpr peinh
up to 10 rows
from ekpo
into table it_ekko.
endform. " DATA_RETRIEVAL
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'EBELN'.
Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
hope it will help you
regards
sreelatha gullapalli -
How to enable the S-Video port on a Satelite M30X-154?
Hey does any one know how to enable the S-Video port on a Satellite SM30X-154 laptop?
If I press the FN+5 keys the only options I get is LCD and no S-VHS option. My TV is set up for it as I watch DVD's through the cable.
When I connect the cable to the laptop, nothing happens!!
HELPHi,
Sorry, my Tosh A100 has a Geforce 7600, I don't know what your GA is.
But on mine I have a NVidia Control Panel, where I can configure dualview,
which normally lets me choose between the builtin LCD and the extern monitor (VGA-Port).
When a TV is connected and not recognized, I can enforce recognition there.
On the next start of the panel, the TV is then available too.
Perhaps I could help you.
If not, note that with windows settings your TV will not be available.
Try to go to the User Interface of your graphics adapter...
Matz
Maybe you are looking for
-
How to execute CGI Programs in Tomcat Server
Hi, I am working on executing Perl Scrtipts(or CGI programs) in Tomcat Server. I have downloaded ActivePerl 5.8.0 6.0.3 build.I have modified some .jar files in tomcat\server\lib. I have changed conf\web.xml to access the CGIServlet.class that is in
-
Rounding float value to nearest 0.05
Hi, can you tell me if there is a convenient way to round off a float ot double to nearest 0.05. Example: 18.93 -->18.95 and 18.92 --> 18.90
-
Hi all, I have a 17" C2D Macbook pro that has just started to have this problem. When I close the lid it doesn't go to sleep (hear the HD and it gets hot) if I open the lid, the backlight is off but I can see that it has Kernel panicked by looking at
-
Error msg: Insufficient memory to compress SWF
When I publish SWF, export to HTML being the only checkbox checked, I get an error message: Your computer does not have sufficient memory resources to compress the SWF file. I am using Captivate V 4 (trial) on a fairly new PC, with 3.25 GB of RAM. Th
-
Hi, if is possible I want know how to get data from MySQL DB to Adobe Edge....Thx a million